.page-sitemap {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background: #B71C1C; /* Custom Background */
  color: #FFF5E1; /* Custom Text Main */
}

.page-sitemap__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-sitemap__top-section {
  padding-top: 10px; /* Rely on body padding-top for header offset */
  padding-bottom: 40px;
  text-align: center;
  background: #C91F17; /* Main Red */
  color: #FFF5E1; /* Text Main */
}

.page-sitemap__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFF5E1;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sitemap__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sitemap__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-sitemap__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sitemap__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom Button */
  color: #7A0E0E; /* Deep Red for contrast on gold */
  border: 2px solid #F2B544; /* Custom Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sitemap__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-sitemap__btn-secondary {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Custom Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sitemap__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-sitemap__content-section {
  padding: 60px 0;
  background: #B71C1C;
  color: #FFF5E1;
}

.page-sitemap__section-heading {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #FFCC66; /* Glow for headings */
}

.page-sitemap__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sitemap__image-figure {
  margin: 30px auto;
  max-width: 800px;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-sitemap__image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-sitemap__image-caption {
  font-size: 0.9em;
  color: #FFD86A;
  padding: 10px 15px;
  background: #D32F2F; /* Card BG */
  border-top: 1px solid #F2B544;
}

.page-sitemap__links-section {
  padding: 60px 0;
  background: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
}

.page-sitemap__category-group {
  margin-bottom: 50px;
  background: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Custom Border */
}

.page-sitemap__category-group:last-of-type {
  margin-bottom: 0;
}

.page-sitemap__category-title {
  font-size: clamp(1.5em, 3vw, 2em);
  font-weight: 600;
  margin-bottom: 25px;
  color: #FFD86A; /* Gold */
  text-align: center;
  border-bottom: 2px solid #F2B544;
  padding-bottom: 15px;
}

.page-sitemap__link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-sitemap__list-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.page-sitemap__list-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-sitemap__link {
  font-size: 1.2em;
  font-weight: 700;
  color: #FFF5E1;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.page-sitemap__link:hover {
  color: #FFCC66; /* Glow on hover */
  text-decoration: underline;
}

.page-sitemap__link-description {
  font-size: 0.95em;
  color: rgba(255, 245, 225, 0.8);
  margin-left: 10px;
  text-align: justify;
}

.page-sitemap__link--inline {
  color: #FFD86A;
  text-decoration: underline;
  font-weight: 600;
}

.page-sitemap__link--inline:hover {
  color: #FFCC66;
}

.page-sitemap__final-text {
  font-size: 1.1em;
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #E53935;
  color: #FFF5E1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sitemap__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-sitemap__section-heading {
    font-size: clamp(1.6em, 4vw, 2.2em);
  }
  .page-sitemap__category-title {
    font-size: clamp(1.4em, 3.5vw, 1.8em);
  }
  .page-sitemap__container {
    padding: 0 15px;
  }
  .page-sitemap__category-group {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-sitemap__top-section {
    padding-top: 10px !important; /* Ensure consistent small top padding */
    padding-bottom: 30px;
  }
  .page-sitemap__main-title {
    font-size: 2em !important;
    margin-bottom: 10px;
  }
  .page-sitemap__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-sitemap__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-sitemap__btn {
    font-size: 1em !important;
    padding: 10px 20px !important;
    width: 100% !important; /* Ensure buttons fill width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. 单栏长文容器 */
  .page-sitemap__content-section,
  .page-sitemap__links-section {
    padding: 40px 0 !important;
  }
  .page-sitemap__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sitemap__text-block {
    font-size: 0.95em;
  }
  .page-sitemap__category-group {
    padding: 20px !important;
    margin-bottom: 30px;
  }

  /* 3. 通用图片与 figure */
  .page-sitemap__image-figure {
    margin: 20px auto;
    max-width: 100% !important;
  }
  .page-sitemap__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sitemap__image-caption {
    font-size: 0.85em;
  }

  /* 4. 按钮与按钮容器 (already covered in top-section's cta-buttons) */
  .page-sitemap__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sitemap__btn-primary, .page-sitemap__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 5. 注册教程与 FAQ 区块 (Sitemap doesn't have these specific blocks, but general list items are adapted) */
  .page-sitemap__section-heading {
    font-size: 1.8em !important;
    margin-bottom: 20px;
  }
  .page-sitemap__category-title {
    font-size: 1.5em !important;
    margin-bottom: 15px;
  }
  .page-sitemap__link {
    font-size: 1.1em;
  }
  .page-sitemap__link-description {
    font-size: 0.9em;
  }
  .page-sitemap__final-text {
    font-size: 1em;
    margin-top: 30px;
  }
}