/* ========================================
   特工17 (Agent17) 官网样式
   ======================================== */

/* CSS Variables */
:root {
  --primary: #4a3a36;
  --primary-light: #6b5550;
  --primary-dark: #2a2320;
  --secondary-1: #c4a38d;
  --secondary-2: #9b9c93;
  --secondary-3: #9a9394;
  --bg-dark: #1e1815;
  --bg-body: #f5f0eb;
  --bg-card: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #ffffff;
  --text-muted: #999999;
  --gradient-hero: linear-gradient(135deg, #2a2320 0%, #4a3a36 50%, #6b5550 100%);
  --gradient-accent: linear-gradient(135deg, #c4a38d, #9a9394);
  --gradient-btn: linear-gradient(135deg, #c4a38d, #b08e76);
  --shadow-sm: 0 2px 8px rgba(74, 58, 54, 0.1);
  --shadow-md: 0 4px 16px rgba(74, 58, 54, 0.15);
  --shadow-lg: 0 8px 32px rgba(74, 58, 54, 0.2);
  --shadow-xl: 0 12px 48px rgba(74, 58, 54, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 64px;
}

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

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

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

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

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

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(30, 24, 21, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 163, 141, 0.15);
  transition: all var(--transition);
  height: var(--header-height);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary-1);
  letter-spacing: 1px;
}

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

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

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--secondary-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary-1);
  background: rgba(196, 163, 141, 0.1);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary-1);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: var(--gradient-hero);
  padding: 100px 0 50px;
  position: relative;
  overflow: hidden;
  min-height: auto;
  background-image: linear-gradient(135deg, rgba(30,24,21,0.92) 0%, rgba(74,58,54,0.88) 50%, rgba(107,85,80,0.92) 100%), url('img/特工17-cover.webp');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 163, 141, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(154, 147, 148, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(196, 163, 141, 0.15);
  border: 1px solid rgba(196, 163, 141, 0.3);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--secondary-1);
  margin-bottom: 20px;
}

.hero-badge i {
  font-size: 0.75rem;
}

.hero h1 {
  font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 6px;
  letter-spacing: 2px;
  line-height: 1.2;
}

.hero h1 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--secondary-2);
  margin-bottom: 24px;
  line-height: 1.8;
}

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

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

.hero-meta-item i {
  color: var(--secondary-1);
  font-size: 0.8rem;
}

.hero-meta-item strong {
  color: var(--text-light);
  font-weight: 600;
}

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

.hero-tag {
  padding: 4px 14px;
  background: rgba(196, 163, 141, 0.12);
  border: 1px solid rgba(196, 163, 141, 0.2);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--secondary-1);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-btn);
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(196, 163, 141, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 163, 141, 0.5);
}

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

.btn-outline {
  background: transparent;
  color: var(--secondary-1);
  border: 1.5px solid rgba(196, 163, 141, 0.4);
}

.btn-outline:hover {
  background: rgba(196, 163, 141, 0.1);
  border-color: var(--secondary-1);
}

/* ========================================
   News Section
   ======================================== */
.news-section {
  padding: 72px 0;
  background: var(--bg-body);
}

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

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(74, 58, 54, 0.06);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

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

.news-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

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

.news-type {
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.news-type.update {
  background: rgba(196, 163, 141, 0.15);
  color: #b08e76;
}

.news-type.announce {
  background: rgba(74, 58, 54, 0.1);
  color: var(--primary);
}

.news-type.event {
  background: rgba(155, 156, 147, 0.15);
  color: #7a7b73;
}

.news-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.5;
}

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

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

.news-link:hover {
  color: var(--primary);
}

.news-link i {
  font-size: 0.75rem;
  transition: transform var(--transition);
}

.news-link:hover i {
  transform: translateX(3px);
}

/* ========================================
   Media Gallery
   ======================================== */
.gallery-section {
  padding: 72px 0;
  background: var(--primary-dark);
}

.gallery-section .section-title h2 {
  color: var(--text-light);
}

.gallery-section .section-title h2::after {
  background: var(--gradient-accent);
}

.gallery-section .section-title p {
  color: var(--secondary-2);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: rgba(196, 163, 141, 0.1);
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 24, 21, 0.6), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

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

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

.gallery-item .gallery-zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 163, 141, 0.9);
  color: var(--primary-dark);
  border-radius: 50%;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 2;
}

.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: translateY(0);
}

/* 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: 40px;
}

.lightbox.active {
  display: flex;
}

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

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ========================================
   User Reviews
   ======================================== */
.reviews-section {
  padding: 72px 0;
  background: var(--bg-body);
}

.reviews-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.reviews-score {
  text-align: center;
}

.reviews-score .score-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.reviews-score .score-stars {
  color: #e8a838;
  font-size: 1.1rem;
  margin: 8px 0;
  letter-spacing: 2px;
}

.reviews-score .score-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reviews-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-tag {
  padding: 6px 16px;
  background: rgba(196, 163, 141, 0.1);
  border: 1px solid rgba(196, 163, 141, 0.2);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--primary-light);
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.review-card {
  min-width: calc(33.333% - 16px);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(74, 58, 54, 0.06);
  flex-shrink: 0;
}

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

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-light);
}

.review-info h4 {
  font-size: 0.95rem;
  color: var(--primary);
}

.review-info .review-stars {
  color: #e8a838;
  font-size: 0.8rem;
}

.review-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
}

.review-card .review-date {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: normal;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1.5px solid rgba(74, 58, 54, 0.15);
  border-radius: 50%;
  color: var(--primary);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.85rem;
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

/* ========================================
   Version History
   ======================================== */
.versions-section {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--bg-body), #ede7e0);
}

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

.version-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary-1), var(--secondary-2), transparent);
}

.version-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 36px;
}

.version-item:last-child {
  margin-bottom: 0;
}

.version-dot {
  position: absolute;
  left: 16px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 3px solid var(--secondary-1);
  z-index: 1;
}

.version-item.latest .version-dot {
  background: var(--secondary-1);
  box-shadow: 0 0 0 4px rgba(196, 163, 141, 0.2);
}

.version-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(74, 58, 54, 0.06);
  transition: box-shadow var(--transition);
}

.version-card:hover {
  box-shadow: var(--shadow-md);
}

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

.version-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

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

.version-badge {
  padding: 2px 10px;
  background: rgba(196, 163, 141, 0.15);
  color: #b08e76;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.version-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.version-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.version-changes {
  margin-bottom: 16px;
}

.version-changes li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.6;
}

.version-changes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--secondary-1);
  border-radius: 50%;
}

.version-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  background: rgba(196, 163, 141, 0.1);
  color: var(--primary-light);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition);
}

.version-download:hover {
  background: var(--secondary-1);
  color: var(--primary-dark);
}

/* ========================================
   Game Guide
   ======================================== */
.guide-section {
  padding: 72px 0;
  background: var(--bg-body);
}

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

.guide-filter-btn {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1.5px solid rgba(74, 58, 54, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.guide-filter-btn.active,
.guide-filter-btn:hover {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

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

.guide-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(74, 58, 54, 0.06);
  transition: all var(--transition);
}

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

.guide-card-top {
  height: 8px;
  background: var(--gradient-accent);
}

.guide-card-body {
  padding: 24px;
}

.guide-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 163, 141, 0.12);
  color: var(--secondary-1);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.guide-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
}

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

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

.guide-difficulty {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
}

.guide-difficulty .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary-2);
}

.guide-difficulty .dot.filled {
  background: var(--secondary-1);
}

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

.guide-recommend i {
  color: #e8a838;
}

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

.chapters-section .section-title h2 {
  color: var(--text-light);
}

.chapters-section .section-title p {
  color: var(--secondary-2);
}

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

.chapter-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(196, 163, 141, 0.12);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.chapter-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(196, 163, 141, 0.25);
  transform: translateY(-2px);
}

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

.chapter-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  background: rgba(196, 163, 141, 0.15);
  color: var(--secondary-1);
  border-radius: 50px;
}

.chapter-type {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 50px;
}

.chapter-type.main {
  background: rgba(196, 163, 141, 0.2);
  color: var(--secondary-1);
}

.chapter-type.character {
  background: rgba(154, 147, 148, 0.2);
  color: var(--secondary-3);
}

.chapter-card h3 {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.chapter-card .chapter-desc {
  font-size: 0.85rem;
  color: var(--secondary-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.chapter-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.chapter-meta-item i {
  color: var(--secondary-1);
  font-size: 0.75rem;
  width: 14px;
}

.chapter-mood {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.mood-tag {
  padding: 2px 10px;
  background: rgba(155, 156, 147, 0.12);
  border-radius: 50px;
  font-size: 0.72rem;
  color: var(--secondary-2);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
  padding: 72px 0;
  background: var(--bg-body);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(74, 58, 54, 0.06);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  gap: 16px;
}

.faq-question span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.5;
}

.faq-question i {
  font-size: 0.8rem;
  color: var(--secondary-1);
  transition: transform var(--transition);
  flex-shrink: 0;
}

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

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

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

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

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--secondary-2);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(196, 163, 141, 0.1);
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--secondary-3);
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 163, 141, 0.1);
  border-radius: 50%;
  color: var(--secondary-2);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--secondary-1);
  color: var(--primary-dark);
}

.footer-col h4 {
  font-size: 0.92rem;
  color: var(--secondary-1);
  margin-bottom: 18px;
  font-weight: 600;
}

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

.footer-col a {
  font-size: 0.85rem;
  color: var(--secondary-3);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--secondary-1);
}

.footer-col a i {
  font-size: 0.7rem;
  width: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

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

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

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

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--secondary-1);
  color: var(--primary-dark);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-card {
    min-width: calc(50% - 12px);
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    padding: 80px 24px 32px;
    transition: right var(--transition);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .main-nav a {
    padding: 12px 16px;
    font-size: 0.92rem;
  }

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

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

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .hero-meta {
    gap: 8px 14px;
  }

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

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

  .review-card {
    min-width: calc(100% - 0px);
  }

  .reviews-stats {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .reviews-tags {
    justify-content: center;
  }

  .version-timeline::before {
    left: 14px;
  }

  .version-item {
    padding-left: 44px;
  }

  .version-dot {
    left: 6px;
  }

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

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

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

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

  .hero-meta-item {
    font-size: 0.78rem;
  }

  .hero-tag {
    font-size: 0.72rem;
    padding: 3px 10px;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.88rem;
  }

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

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

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

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

/* Utility: overlay for mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

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