/* ===== CSS Variables ===== */
:root {
  --color-primary: #16110a;
  --color-secondary-1: #e8e4e1;
  --color-secondary-2: #838384;
  --color-secondary-3: #848c89;
  --color-accent: #c9a96e;
  --color-accent-dark: #a8873f;
  --color-bg-dark: #1a1410;
  --color-bg-card: #221c14;
  --color-bg-card-hover: #2a2318;
  --color-text: #e8e4e1;
  --color-text-muted: #838384;
  --color-border: rgba(200, 169, 110, 0.15);
  --color-border-hover: rgba(200, 169, 110, 0.35);
  --font-heading: 'Noto Sans SC', 'Segoe UI', sans-serif;
  --font-body: 'Noto Sans SC', 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-primary);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #e0c080;
}

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

ul, ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(22, 17, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.logo:hover {
  color: var(--color-accent);
}

/* Desktop Nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-accent);
  background: rgba(200, 169, 110, 0.08);
}

.nav-menu a i {
  font-size: 0.85rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 100px 0 50px;
  background: var(--color-primary);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -5%;
  right: -2%;
  width: 50%;
  height: 110%;
  background: url('img/hero-bg.png') top center/cover no-repeat;
  filter: brightness(0.55) saturate(0.85);
  mask-image:
    linear-gradient(to left, rgba(0,0,0,0.75) 10%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.15) 70%, transparent 90%),
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 85%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(to left, rgba(0,0,0,0.75) 10%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.15) 70%, transparent 90%),
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 85%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(180deg, rgba(22, 17, 10, 0.6) 0%, rgba(22, 17, 10, 0.2) 40%, rgba(22, 17, 10, 0.8) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(200, 169, 110, 0.06) 0%, transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(200, 169, 110, 0.12);
  border: 1px solid rgba(200, 169, 110, 0.25);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #e8e4e1, #c9a96e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-meta .meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--color-secondary-3);
}

.hero-meta .meta-tag i {
  color: var(--color-accent);
  font-size: 0.8rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-features .feature-tag {
  padding: 5px 12px;
  background: rgba(200, 169, 110, 0.08);
  border: 1px solid rgba(200, 169, 110, 0.15);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--color-accent);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(200, 169, 110, 0.3);
  text-decoration: none;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(200, 169, 110, 0.45);
  color: var(--color-primary);
}

.btn-download:active {
  transform: translateY(0);
}

/* ===== Section Titles ===== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

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

.section-title .title-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== News Section ===== */
.news-section {
  padding: 70px 0;
  background: var(--color-primary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.news-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.news-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-accent);
  margin-bottom: 10px;
}

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

.news-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
}

.news-link:hover {
  gap: 10px;
}

/* ===== Gallery Section ===== */
.gallery-section {
  padding: 70px 0;
  background: var(--color-bg-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 17, 10, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  color: var(--color-accent);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  transition: color var(--transition);
}

.lightbox-close:hover {
  color: var(--color-accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(200, 169, 110, 0.15);
  border: 1px solid rgba(200, 169, 110, 0.3);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  transition: all var(--transition);
}

.lightbox-nav:hover {
  background: rgba(200, 169, 110, 0.3);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ===== Reviews Section ===== */
.reviews-section {
  padding: 70px 0;
  background: var(--color-primary);
}

.reviews-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.review-tags span {
  padding: 6px 16px;
  background: rgba(200, 169, 110, 0.08);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--color-secondary-3);
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}

.review-slide {
  display: none;
  text-align: center;
  padding: 30px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.review-slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.review-stars {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

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

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

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-dots .dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* ===== Version History Section ===== */
.version-section {
  padding: 70px 0;
  background: var(--color-bg-dark);
}

.version-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.version-item {
  position: relative;
  padding: 24px;
  padding-left: 30px;
  border-left: 2px solid var(--color-border);
  margin-left: 12px;
}

.version-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 28px;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 2px solid var(--color-bg-dark);
}

.version-item:first-child::before {
  box-shadow: 0 0 0 4px rgba(200, 169, 110, 0.2);
}

.version-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.version-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
}

.version-date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.version-badge {
  padding: 3px 10px;
  background: rgba(200, 169, 110, 0.12);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--color-accent);
}

.version-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.version-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.version-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-secondary-3);
}

.version-meta span i {
  color: var(--color-accent);
  font-size: 0.75rem;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: rgba(200, 169, 110, 0.1);
  border: 1px solid rgba(200, 169, 110, 0.25);
  color: var(--color-accent);
  font-size: 0.82rem;
  border-radius: 50px;
  transition: all var(--transition);
}

.btn-sm:hover {
  background: rgba(200, 169, 110, 0.2);
  color: var(--color-accent);
}

/* ===== Guide Section ===== */
.guide-section {
  padding: 70px 0;
  background: var(--color-primary);
}

.guide-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.guide-filters button {
  padding: 7px 18px;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.guide-filters button.active,
.guide-filters button:hover {
  background: rgba(200, 169, 110, 0.12);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.guide-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.guide-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.guide-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.guide-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.guide-difficulty {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.difficulty-easy {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
}

.difficulty-medium {
  background: rgba(255, 183, 77, 0.15);
  color: #ffb74d;
}

.difficulty-hard {
  background: rgba(229, 115, 115, 0.15);
  color: #e57373;
}

.guide-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-recommend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--color-accent);
}

.guide-category {
  font-size: 0.78rem;
  color: var(--color-secondary-3);
  padding: 3px 10px;
  background: rgba(132, 140, 137, 0.1);
  border-radius: 50px;
}

/* ===== Chapters Section ===== */
.chapters-section {
  padding: 70px 0;
  background: var(--color-bg-dark);
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.chapter-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.chapter-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow);
}

.chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.chapter-card:hover::before {
  opacity: 1;
}

.chapter-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.chapter-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 169, 110, 0.1);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

.chapter-title-wrapper h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.chapter-type {
  font-size: 0.75rem;
  color: var(--color-accent);
}

.chapter-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.chapter-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.chapter-info span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--color-secondary-3);
  padding: 4px 10px;
  background: rgba(132, 140, 137, 0.08);
  border-radius: 50px;
}

.chapter-info span i {
  color: var(--color-accent);
  font-size: 0.72rem;
}

.chapter-mood {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 50px;
}

.mood-tense {
  background: rgba(229, 115, 115, 0.1);
  color: #e57373;
}

.mood-warm {
  background: rgba(255, 183, 77, 0.1);
  color: #ffb74d;
}

.mood-mystery {
  background: rgba(149, 117, 205, 0.1);
  color: #9575cd;
}

.mood-action {
  background: rgba(66, 165, 245, 0.1);
  color: #42a5f5;
}

.mood-romantic {
  background: rgba(240, 98, 146, 0.1);
  color: #f06292;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: 70px 0;
  background: var(--color-primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--color-bg-card);
  cursor: pointer;
  transition: background var(--transition);
  gap: 12px;
}

.faq-question:hover {
  background: var(--color-bg-card-hover);
}

.faq-question h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.faq-question i {
  color: var(--color-accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

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

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-col ul li a i {
  font-size: 0.75rem;
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(200, 169, 110, 0.15);
  border: 1px solid rgba(200, 169, 110, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  backdrop-filter: blur(8px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(200, 169, 110, 0.3);
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.2rem;
  }

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

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

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 70px 20px 20px;
    gap: 2px;
    transition: right 0.35s ease;
    border-left: 1px solid var(--color-border);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu a {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
  }

  .mobile-overlay.active {
    display: block;
  }

  .hero {
    padding: 80px 0 40px;
  }

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

  .hero-desc {
    font-size: 0.9rem;
  }

  .hero-meta .meta-tag {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

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

  .reviews-stats {
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

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

  .section-title h2 {
    font-size: 1.6rem;
  }

  .lightbox-nav {
    padding: 8px 12px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-features .feature-tag {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .version-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
