:root {
  --bg: #262828;
  --surface: #2f3135;
  --surface-soft: #383b40;
  --text: #f4efed;
  --muted: #ddc5bd;
  --subtle: #828594;
  --accent: #6ec764;
  --accent-strong: #4fb146;
  --border: rgba(221, 197, 189, 0.2);
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top right, #33353b 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(38, 40, 40, 0.88);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent), #a4e98f);
}

.brand-text {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  letter-spacing: 0.6px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.main-nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 2.8rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.2rem;
}

.hero-main,
.hero-panel,
.card,
.timeline-item,
.stat {
  background: linear-gradient(160deg, rgba(56, 59, 64, 0.86), rgba(47, 49, 53, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-main {
  padding: 1.2rem 1.3rem;
}

.hero-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-main h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.25;
}

.hero-desc {
  margin: 0.75rem 0 1rem;
  color: #eee4df;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #10210f;
}

.btn-secondary {
  border-color: var(--border);
  color: var(--muted);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.hero-panel {
  padding: 1.1rem 1rem;
}

.hero-panel h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
}

.meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.48rem;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed rgba(221, 197, 189, 0.2);
}

.meta-list span {
  color: var(--subtle);
}

.meta-list strong {
  text-align: right;
  font-size: 0.95rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.tag-row span {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.section {
  padding: 1.2rem 0 1.8rem;
}

.section-title {
  margin-bottom: 0.85rem;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
}

.section-title p {
  margin: 0.2rem auto 0;
  color: var(--subtle);
}

.news-grid,
.guide-grid,
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.card {
  padding: 1rem;
}

.news-date {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}

.card h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.04rem;
}

.card p {
  margin: 0 0 0.45rem;
  color: #e5d7d1;
}

.card a {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.93rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.gallery-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-item figcaption {
  padding: 0.55rem 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat {
  padding: 0.9rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
}

.stat span {
  color: var(--subtle);
}

.review-tags {
  margin-bottom: 0.7rem;
}

.review-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.review-track {
  position: relative;
  min-height: 130px;
}

.review-card {
  position: absolute;
  inset: 0;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(56, 59, 64, 0.84), rgba(47, 49, 53, 0.9));
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.review-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.review-card p {
  margin: 0 0 0.6rem;
}

.review-card span {
  color: var(--subtle);
  font-size: 0.9rem;
}

.timeline {
  display: grid;
  gap: 0.65rem;
}

.timeline-item {
  padding: 0.8rem 1rem;
}

.timeline-item h3 {
  margin: 0;
}

.timeline-item ul {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
  color: #e5d7d1;
}

.timeline-item a {
  color: var(--accent);
  font-weight: 700;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--accent);
  color: #10210f;
  border-color: transparent;
}

.guide-card span,
.chapter-card p:last-child {
  font-size: 0.88rem;
  color: var(--accent);
}

.faq-list {
  display: grid;
  gap: 0.6rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0.85rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.98rem;
}

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

.faq-answer p {
  margin: 0;
  padding: 0 0.9rem 0.9rem;
  color: #e5d7d1;
}

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  background: rgba(25, 26, 26, 0.9);
  padding: 1.25rem 0 0.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.footer-grid h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

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

.footer-copy {
  margin: 0.95rem 0 0;
  text-align: center;
  color: var(--subtle);
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

#lightboxImage {
  width: min(980px, 100%);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.pressable.is-pressed {
  transform: scale(0.97);
}

@media (max-width: 980px) {
  .hero-grid,
  .news-grid,
  .guide-grid,
  .chapter-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    right: 1rem;
    top: 72px;
    padding: 0.7rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #212323;
    flex-direction: column;
    align-items: flex-start;
    min-width: 180px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-grid,
  .news-grid,
  .guide-grid,
  .chapter-grid,
  .gallery-grid,
  .stats-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .review-carousel {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .carousel-btn {
    justify-self: center;
  }
}
