.page-lich-su-uy-tin {
  background-color: var(--background-color, #0A0A0A); /* Inherit from shared or default dark */
  color: #FFF6D6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-lich-su-uy-tin__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-lich-su-uy-tin__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-lich-su-uy-tin__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-lich-su-uy-tin__hero-content {
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px; /* Space between image and text */
}

.page-lich-su-uy-tin__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  color: #F2C14E;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-lich-su-uy-tin__description {
  font-size: 1.1rem;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lich-su-uy-tin__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-lich-su-uy-tin__btn-primary,
.page-lich-su-uy-tin__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-lich-su-uy-tin__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for light button background */
  border: none;
}

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

.page-lich-su-uy-tin__btn-secondary {
  background: #111111; /* Card BG color */
  color: #F2C14E; /* Main accent color */
  border: 2px solid #F2C14E;
}

.page-lich-su-uy-tin__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #F2C14E;
  color: #111111;
}

.page-lich-su-uy-tin__content-section {
  padding: 40px 0;
  background-color: #0A0A0A; /* Ensure dark background for content */
}

.page-lich-su-uy-tin__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-lich-su-uy-tin__section-title {
  font-size: 2.2rem;
  color: #F2C14E;
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-lich-su-uy-tin h3 {
  font-size: 1.8rem;
  color: #FFD36B;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lich-su-uy-tin p {
  margin-bottom: 15px;
  color: #FFF6D6; /* Light text for dark background */
  font-size: 1.05rem;
}

.page-lich-su-uy-tin__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-lich-su-uy-tin__list li {
  margin-bottom: 10px;
  color: #FFF6D6;
}

.page-lich-su-uy-tin__list li strong {
  color: #FFD36B;
}

.page-lich-su-uy-tin a {
  color: #FFD36B; /* Link color */
  text-decoration: underline;
}

.page-lich-su-uy-tin a:hover {
  color: #F2C14E;
}

.page-lich-su-uy-tin__figure {
  margin: 30px auto;
  max-width: 680px;
  background-color: #111111; /* Card BG */
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-lich-su-uy-tin__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-lich-su-uy-tin__figcaption {
  text-align: center;
  font-style: italic;
  margin-top: 10px;
  color: #AAA; /* Slightly lighter text for caption */
  font-size: 0.95rem;
}

.page-lich-su-uy-tin__call-to-action-box {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-lich-su-uy-tin__box-title {
  font-size: 2rem;
  color: #F2C14E;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lich-su-uy-tin__box-description {
  font-size: 1.1rem;
  color: #FFF6D6;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-lich-su-uy-tin__cta-buttons--box {
  margin-top: 20px;
}

/* --- Responsive Styles --- */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-lich-su-uy-tin__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-lich-su-uy-tin__hero-content {
    padding: 15px;
  }

  .page-lich-su-uy-tin__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-lich-su-uy-tin__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-lich-su-uy-tin__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container */
  }

  .page-lich-su-uy-tin__btn-primary,
  .page-lich-su-uy-tin__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px;
    font-size: 0.95rem;
  }

  /* 2. 单栏长文容器 */
  .page-lich-su-uy-tin__article-wrap {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  .page-lich-su-uy-tin__content-section {
    padding: 30px 0;
  }

  .page-lich-su-uy-tin__section-title {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-lich-su-uy-tin h3 {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-lich-su-uy-tin p {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .page-lich-su-uy-tin__list {
    margin-left: 15px;
    margin-bottom: 15px;
  }

  .page-lich-su-uy-tin__list li {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  /* 3. 通用图片与 figure */
  .page-lich-su-uy-tin img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-lich-su-uy-tin__figure {
    margin: 20px auto;
    padding: 10px;
    border-radius: 8px;
    max-width: 100%; /* Ensure figure container is responsive */
    width: 100%;
    box-sizing: border-box;
  }

  .page-lich-su-uy-tin__figcaption {
    font-size: 0.85rem;
  }

  /* 4. 按钮与按钮容器 */
  .page-lich-su-uy-tin__cta-buttons,
  .page-lich-su-uy-tin__button-group,
  .page-lich-su-uy-tin__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px; /* Adjust gap for stacked buttons */
  }

  .page-lich-su-uy-tin__cta-buttons--box {
    flex-direction: column; /* Stack buttons in box */
    gap: 10px;
  }

  /* 5. 注册教程与 FAQ 区块 (N/A for this page, general styles apply) */
  .page-lich-su-uy-tin__call-to-action-box {
    padding: 20px;
    margin-top: 30px;
  }

  .page-lich-su-uy-tin__box-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  .page-lich-su-uy-tin__box-description {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }
}

/* Ensure content containers are responsive */
.page-lich-su-uy-tin__content-area,
.page-lich-su-uy-tin__text-block,
.page-lich-su-uy-tin__section,
.page-lich-su-uy-tin__card,
.page-lich-su-uy-tin__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Contrast Fixes (as per instructions) */
.page-lich-su-uy-tin__dark-bg {
  color: #ffffff; /* Deep dark backgrounds */
  background: #F2C14E; /* Example usage, typically for accents */
}
.page-lich-su-uy-tin__light-bg {
  color: #333333; /* Light backgrounds */
  background: #ffffff;
}
.page-lich-su-uy-tin__medium-bg {
  color: #000000; /* Medium backgrounds */
  background: #FFD36B; /* Example usage, typically for accents */
}

/* Ensure general text contrast */
.page-lich-su-uy-tin p,
.page-lich-su-uy-tin li,
.page-lich-su-uy-tin__figcaption {
  color: #FFF6D6; /* Light text on dark background */
}