@import url('base.css');

.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(12, 10, 9, 0.7), var(--charcoal)),
    url('https://yqcdn.fuhua95.com/game/20250722/6bde4e439817b059de9ef726f22b2252.png');
  background-size: cover;
  background-position: center top;
  border-bottom: 1px solid var(--bone-gray);
}

.page-header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--stone-300);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 700px;
  margin: 0 auto;
}

.guide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 5rem;
}

@media (min-width: 768px) {
  .guide-layout {
    grid-template-columns: 280px 1fr;
  }
}

.toc {
  position: sticky;
  top: 90px;
  height: fit-content;
  background: var(--charcoal-card);
  border: 1px solid var(--bone-gray);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.toc h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--poison-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: var(--stone-300);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.toc a:hover,
.toc a.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--poison-green);
  border-left-color: var(--poison-green);
}

.guide-content {
  background: var(--charcoal-card);
  border: 1px solid var(--bone-gray);
  border-radius: 0.75rem;
  padding: 2rem;
}

.guide-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--poison-green);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(75, 85, 99, 0.4);
}

.guide-content h2:first-child {
  margin-top: 0;
}

.guide-content h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--ghost-orange);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.guide-content p {
  color: var(--stone-300);
  margin-bottom: 1rem;
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
}

.guide-content ul,
.guide-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--stone-300);
}

.guide-content li {
  margin-bottom: 0.5rem;
}

.guide-content strong {
  color: var(--poison-green);
}

.guide-tip {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--poison-green);
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
  color: var(--stone-300);
}

.guide-tip i {
  color: var(--poison-green);
  margin-right: 0.5rem;
}

@media (max-width: 767px) {
  .toc {
    position: static;
  }
}
