/* =====================================================
   女忍者训练师 (Kunoichi Trainer) - 游戏官网样式
   ===================================================== */

/* CSS Variables */
:root {
  --primary: #332a24;
  --secondary-1: #ddc9b9;
  --secondary-2: #764c46;
  --secondary-3: #8a7752;
  --bg-dark: #1a1612;
  --bg-card: #2a2320;
  --bg-card-hover: #3a322c;
  --text-light: #f5efe9;
  --text-muted: #b0a89e;
  --accent-glow: rgba(138, 119, 82, 0.4);
  --border-color: rgba(221, 201, 185, 0.15);
  --gradient-hero: linear-gradient(135deg, #1a1612 0%, #332a24 50%, #2a1f1a 100%);
  --gradient-accent: linear-gradient(135deg, #8a7752, #764c46);
  --gradient-btn: linear-gradient(135deg, #8a7752, #9d8a60);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* 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', 'Segoe UI', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--secondary-3);
}

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

ul, ol {
  list-style: none;
}

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

/* Section Common */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-light);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 50px;
}

/* =====================================================
   Header / Navigation
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 22, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

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

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

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

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-light);
  background: rgba(221, 201, 185, 0.08);
}

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

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

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(138, 119, 82, 0.2);
  border: 1px solid rgba(138, 119, 82, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--secondary-3);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-title-en {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 16px;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(221, 201, 185, 0.08);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 15px rgba(138, 119, 82, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 119, 82, 0.45);
  color: #fff;
}

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

.btn-outline {
  background: transparent;
  color: var(--secondary-1);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(221, 201, 185, 0.08);
  color: var(--text-light);
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* =====================================================
   Features Tags (under hero)
   ===================================================== */
.features-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.feature-chip i {
  color: var(--secondary-3);
}

/* =====================================================
   News Section
   ===================================================== */
.news {
  background: var(--bg-dark);
}

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

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

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

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--secondary-3);
  margin-bottom: 10px;
}

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

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

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

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

/* =====================================================
   Gallery Section
   ===================================================== */
.gallery {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--primary) 100%);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.gallery-overlay span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 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-md);
  box-shadow: var(--shadow-lg);
}

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

.lightbox-close:hover {
  transform: scale(1.2);
}

/* =====================================================
   Reviews Section
   ===================================================== */
.reviews {
  background: var(--primary);
}

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

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

.review-stat .number {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.review-tag {
  background: rgba(221, 201, 185, 0.08);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

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

.review-card {
  min-width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.review-card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  max-width: 700px;
  margin: 0 auto;
}

.review-stars {
  color: #f0b952;
  margin-bottom: 12px;
  font-size: 1rem;
}

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

.review-author {
  font-size: 0.85rem;
  color: var(--secondary-3);
  font-weight: 600;
}

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

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.carousel-btn:hover {
  background: var(--secondary-2);
}

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

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

.carousel-dot.active {
  background: var(--secondary-3);
  width: 24px;
  border-radius: 4px;
}

/* =====================================================
   Version History
   ===================================================== */
.version-history {
  background: var(--bg-dark);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-accent);
  border: 3px solid var(--bg-dark);
}

.timeline-item:first-child .timeline-dot {
  box-shadow: 0 0 0 4px rgba(138, 119, 82, 0.3);
}

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

.timeline-version {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
}

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

.timeline-badge {
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(138, 119, 82, 0.2);
  color: var(--secondary-3);
}

.timeline-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.timeline-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

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

.timeline-meta span i {
  color: var(--secondary-3);
}

/* =====================================================
   Guide / Strategy Section
   ===================================================== */
.guides {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--primary) 100%);
}

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

.guide-filter-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.guide-filter-btn:hover,
.guide-filter-btn.active {
  background: var(--gradient-btn);
  color: #fff;
  border-color: transparent;
}

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

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

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

.guide-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(138, 119, 82, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--secondary-3);
  font-size: 1.2rem;
}

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

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

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

.guide-difficulty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--secondary-3);
}

.guide-recommend {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =====================================================
   Chapters Section
   ===================================================== */
.chapters {
  background: var(--primary);
}

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

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

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

.chapter-number {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(221, 201, 185, 0.05);
  line-height: 1;
}

.chapter-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.badge-main {
  background: rgba(138, 119, 82, 0.2);
  color: var(--secondary-3);
}

.badge-character {
  background: rgba(118, 76, 70, 0.25);
  color: #c47a72;
}

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

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

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

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

.chapter-info span i {
  color: var(--secondary-3);
  font-size: 0.75rem;
}

.chapter-mood {
  font-size: 0.78rem;
  color: var(--secondary-2);
  font-style: italic;
}

/* =====================================================
   FAQ Section
   ===================================================== */
.faq {
  background: var(--bg-dark);
}

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

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(221, 201, 185, 0.04);
}

.faq-question i {
  font-size: 0.8rem;
  color: var(--secondary-3);
  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.3s ease;
}

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

.faq-answer-content {
  padding: 0 22px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

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

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

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

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}

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

.footer-col a {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}

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

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

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

.footer-legal {
  display: flex;
  gap: 16px;
}

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

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

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(26, 22, 18, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 12px 16px;
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-title {
    font-size: 1.9rem;
  }

  .section {
    padding: 50px 0;
  }

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

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

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

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

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

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

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

  .reviews-summary {
    gap: 24px;
  }
}

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

  .hero-meta {
    gap: 6px;
  }

  .meta-tag {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

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