/* ============================================================
   异世界幻想 (Isekai Fantasy) — Portal Theme
   Magical violets + portal blues on light parchment background
   Fantasy world-map aesthetics, adventure-journey feel
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --portal-blue: #4a6cf7;
  --portal-blue-dark: #3451d1;
  --portal-blue-light: #818cf8;
  --magical-violet: #7c3aed;
  --violet-dark: #5b21b6;
  --violet-light: #a78bfa;
  --gold: #c9a030;
  --gold-light: #e2c65a;
  --parchment: #faf5eb;
  --parchment-dark: #ede0cc;
  --parchment-light: #fefcf7;
  --ink: #2d1b4e;
  --ink-light: #5a3e85;
  --text: #3d2e5c;
  --text-muted: #7a6e8a;
  --white: #ffffff;
  --bg-header: #1a0f3c;
  --bg-footer: #140a2e;
  --shadow: 0 2px 12px rgba(74, 108, 247, 0.1);
  --shadow-lg: 0 8px 32px rgba(44, 27, 78, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font-heading: 'Georgia', 'Noto Serif SC', 'SimSun', serif;
  --font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --transition: 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--parchment);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Parchment texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74, 108, 247, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(201, 160, 48, 0.04) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 105, 20, 0.015) 2px, rgba(139, 105, 20, 0.015) 4px);
}

a { color: var(--portal-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--violet-dark); }
img { max-width: 100%; height: auto; display: block; }

/* --- Utility --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.pb-0 { padding-bottom: 0; }

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 3px solid var(--portal-blue);
  box-shadow: 0 2px 16px rgba(44, 27, 78, 0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--portal-blue);
  box-shadow: 0 0 12px rgba(74, 108, 247, 0.4);
}
.logo:hover { color: var(--portal-blue-light); }

/* Navigation */
nav { display: flex; align-items: center; gap: 8px; }
nav a {
  color: rgba(255,255,255,0.8);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
nav a:hover, nav a.active {
  color: var(--white);
  background: rgba(74, 108, 247, 0.2);
}
.nav-cta {
  background: linear-gradient(135deg, var(--portal-blue), var(--magical-violet)) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 12px rgba(74, 108, 247, 0.4);
  transition: all var(--transition);
}
.nav-cta:hover {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1a0f3c 0%, #2d1b69 40%, #3a2080 70%, #1a0f3c 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(74, 108, 247, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 75% 60%, rgba(124, 58, 237, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(201, 160, 48, 0.1) 0%, transparent 60%);
  animation: portalPulse 6s ease-in-out infinite;
}
@keyframes portalPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Portal ring decoration */
.hero::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 2px solid rgba(74, 108, 247, 0.15);
  box-shadow:
    0 0 60px rgba(74, 108, 247, 0.1),
    inset 0 0 60px rgba(124, 58, 237, 0.08);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px;
  max-width: 700px;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--portal-blue-light) 40%, var(--violet-light) 70%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-tags span {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
}
.btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, var(--portal-blue), var(--magical-violet));
  color: var(--white);
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(74, 108, 247, 0.4);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
  color: var(--white);
}

/* --- Page Hero (sub-pages) --- */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, #1a0f3c, #2d1b69);
  padding: 60px 24px;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(74, 108, 247, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 50%);
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.page-hero p {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
}

/* --- Sections --- */
section { padding: 64px 0; position: relative; z-index: 1; }
.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* Portal divider */
.portal-divider {
  width: 60px;
  height: 3px;
  margin: 0 auto 40px;
  background: linear-gradient(90deg, var(--portal-blue), var(--magical-violet), var(--gold));
  border-radius: 2px;
}

/* Map-glow divider */
.map-divider {
  text-align: center;
  font-size: 1.2rem;
  color: var(--violet-light);
  margin: 40px 0;
  letter-spacing: 12px;
}

/* --- Info Cards --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border-top: 3px solid var(--portal-blue);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--magical-violet);
}
.info-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Feature Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--portal-blue);
  transition: all var(--transition);
}
.feature-card:hover {
  border-left-color: var(--magical-violet);
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.gallery-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid var(--parchment-dark);
}
.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--portal-blue);
}

/* --- Story Blocks --- */
.story-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--magical-violet);
}
.story-block h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.story-block p {
  color: var(--text-muted);
  line-height: 1.8;
}
.story-block .chapter-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--portal-blue), var(--magical-violet));
  color: var(--white);
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* --- Character Cards --- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.char-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border-top: 3px solid var(--magical-violet);
}
.char-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.char-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 24px auto 12px;
  border: 3px solid var(--violet-light);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(74,108,247,0.1), rgba(124,58,237,0.1));
}
.char-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  text-align: center;
  color: var(--ink);
  margin-bottom: 4px;
}
.char-card .char-role {
  text-align: center;
  font-size: 0.85rem;
  color: var(--magical-violet);
  font-weight: 600;
  margin-bottom: 12px;
}
.char-card .char-desc {
  padding: 0 20px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}
.char-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0 20px 20px;
}

/* --- Tags --- */
.tag { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 0.78rem; font-weight: 500; }
.tag-blue { background: rgba(74, 108, 247, 0.1); color: var(--portal-blue); }
.tag-violet { background: rgba(124, 58, 237, 0.1); color: var(--magical-violet); }
.tag-gold { background: rgba(201, 160, 48, 0.12); color: var(--gold); }
.tag-green { background: rgba(34, 197, 94, 0.1); color: #16a34a; }

/* --- Guide Steps --- */
.guide-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.guide-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--portal-blue), var(--magical-violet));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}
.guide-step-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.guide-step-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Tip Box --- */
.tip-box {
  background: linear-gradient(135deg, rgba(74,108,247,0.05), rgba(124,58,237,0.05));
  border-left: 4px solid var(--portal-blue);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}
.tip-box p { color: var(--text-muted); font-size: 0.9rem; }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  font-family: var(--font-body);
  transition: background var(--transition);
}
.faq-question:hover { background: rgba(74, 108, 247, 0.03); }
.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--portal-blue), var(--magical-violet));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.3s;
  margin-left: 12px;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-header) 0%, #2d1b69 100%);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(74,108,247,0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(124,58,237,0.2) 0%, transparent 50%);
}
.cta-banner h2 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-banner p {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  font-size: 1rem;
}
.cta-banner .btn-hero { position: relative; z-index: 1; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 16px 0;
}
.breadcrumbs a { color: var(--portal-blue); }
.breadcrumbs span { color: var(--text-muted); }

/* --- Review Cards --- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.review-card .reviewer {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.review-card .stars { color: var(--gold); margin-bottom: 8px; }
.review-card p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Stats Row --- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  text-align: center;
}
.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--portal-blue);
  font-weight: 900;
}
.stat-item p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-table th {
  background: linear-gradient(135deg, rgba(74,108,247,0.08), rgba(124,58,237,0.08));
  font-weight: 700;
  color: var(--ink);
  padding: 14px 20px;
  text-align: left;
  font-size: 0.9rem;
}
.info-table td {
  padding: 12px 20px;
  border-top: 1px solid var(--parchment-dark);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Footer --- */
footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
  border-top: 3px solid var(--magical-violet);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 5, 25, 0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(74, 108, 247, 0.3);
  border: 2px solid rgba(74, 108, 247, 0.3);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* --- Version Table --- */
.version-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.version-table th, .version-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--parchment-dark);
}
.version-table th {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
}
.version-table td { color: var(--text-muted); font-size: 0.9rem; }

/* --- Blockquote --- */
blockquote {
  border-left: 4px solid var(--gold);
  background: rgba(201, 160, 48, 0.05);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-light);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--portal-blue), var(--magical-violet));
}
.timeline-item {
  position: relative;
  margin-bottom: 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--portal-blue);
  box-shadow: 0 0 8px rgba(74, 108, 247, 0.4);
}
.timeline-item h4 { color: var(--ink); margin-bottom: 4px; }
.timeline-item p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Requirements Table --- */
.req-table { width: 100%; max-width: 600px; margin: 0 auto; }
.req-table tr td:first-child { font-weight: 600; color: var(--ink); padding: 8px 12px; }
.req-table tr td:last-child { color: var(--text-muted); padding: 8px 12px; }

/* --- Ending Cards --- */
.ending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.ending-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.ending-card h3 { color: var(--ink); margin-bottom: 8px; }
.ending-card p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--bg-header);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.4);
  }
  nav.active { right: 0; }
  nav a { display: block; padding: 12px 16px; }
  .nav-cta { border-radius: var(--radius-sm) !important; }

  .hero { min-height: 380px; }
  .hero-content { padding: 60px 20px; }
  .page-hero { padding: 40px 20px; }
  .page-hero h1 { font-size: 1.6rem; }
  section { padding: 40px 0; }
  .section-title { font-size: 1.4rem; }

  .feature-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .char-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 20px; }
  .guide-step { flex-direction: column; gap: 12px; }
  .guide-step-num { width: 40px; height: 40px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .logo { font-size: 1rem; }
  .container { padding: 0 16px; }
  .hero-content h1 { font-size: 1.5rem; }
  .btn-hero { padding: 12px 28px; font-size: 1rem; }
  .info-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 20px; }
  .cta-banner h2 { font-size: 1.3rem; }
}
