/* style/game-rules.css */
.page-game-rules {
  font-family: 'Arial', sans-serif;
  background-color: #140C0C; /* Custom Background */
  color: #FFF1E8; /* Custom Text Main */
}

.page-game-rules__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-game-rules__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-game-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.page-game-rules__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
  border-radius: 8px;
  margin-top: -100px; /* Overlap slightly for visual effect, but not on image */
}

.page-game-rules__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #F3C54D; /* Gold color for main title */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-game-rules__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #FFF1E8;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-game-rules__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom Button */
  color: #FFF1E8;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-game-rules__btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #FFC06A 0%, #E87A24 100%);
}

.page-game-rules__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-game-rules__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #F3C54D;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-game-rules__image-full {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.page-game-rules__image-center {
  display: block;
  margin: 0 auto 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-game-rules p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #FFF1E8;
}

.page-game-rules__highlight {
  color: #FFB04A;
  font-weight: 700;
}

.page-game-rules__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #FFF1E8;
}

.page-game-rules__list li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.page-game-rules__game-rules-card {
  background-color: #2A1212; /* Custom Card BG */
  border: 1px solid #6A1E1E; /* Custom Border */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF1E8;
}

.page-game-rules__card-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #F3C54D;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.page-game-rules__card-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 25px;
  border-radius: 6px;
  object-fit: cover;
}

.page-game-rules__sub-title {
  font-size: 1.3rem;
  color: #FFB04A;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-rules__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background-color: #E53030; /* Auxiliary Color */
  color: #FFF1E8;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 20px;
  margin-right: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-game-rules__btn-secondary:hover {
  background-color: #C61F1F;
  transform: translateY(-1px);
}

.page-game-rules__terms-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #FFF1E8;
}

.page-game-rules__item-title {
  font-size: 1.4rem;
  color: #F3C54D;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-rules__item-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  object-fit: cover;
}

.page-game-rules__btn-tertiary {
  display: inline-block;
  padding: 8px 20px;
  background-color: #7E0D0D; /* Deep Red */
  color: #FFF1E8;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-game-rules__btn-tertiary:hover {
  background-color: #C61F1F;
}

.page-game-rules__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-game-rules__faq-list {
  margin-top: 30px;
}

.page-game-rules__faq-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF1E8;
}

.page-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F3C54D;
  cursor: pointer;
  list-style: none;
  background-color: #2A1212;
  transition: background-color 0.3s ease;
}

.page-game-rules__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-game-rules__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-rules__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFB04A;
}

.page-game-rules__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF1E8;
}

.page-game-rules__faq-answer p {
  margin-bottom: 0;
}

.page-game-rules__faq-item[open] .page-game-rules__faq-toggle {
  content: '−';
}

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

/* Mobile specific styles for all modules (max-width: 768px) */
@media (max-width: 768px) {
  .page-game-rules {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-rules__container {
    padding: 15px;
  }

  /* HERO 主图区域 */
  .page-game-rules__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 20px;
  }

  .page-game-rules__hero-content {
    margin-top: -50px; /* Adjust overlap for mobile */
    padding: 15px;
  }

  .page-game-rules__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-game-rules__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* 通用图片与容器 */
  .page-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-game-rules__section,
  .page-game-rules__game-rules-card,
  .page-game-rules__terms-item,
  .page-game-rules__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-rules__image-full,
  .page-game-rules__image-center,
  .page-game-rules__card-image,
  .page-game-rules__item-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* 按钮与按钮容器 */
  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary,
  .page-game-rules__btn-tertiary,
  .page-game-rules a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-right: 0 !important; /* Remove horizontal margin for stacking */
    margin-bottom: 10px; /* Add vertical margin for stacking */
  }

  .page-game-rules__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 其他内容模块 */
  .page-game-rules__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 25px;
  }

  .page-game-rules p,
  .page-game-rules__list li,
  .page-game-rules__faq-answer p {
    font-size: 1rem;
  }

  .page-game-rules__card-title {
    font-size: 1.4rem;
  }

  .page-game-rules__sub-title {
    font-size: 1.2rem;
  }

  .page-game-rules__item-title {
    font-size: 1.3rem;
  }

  .page-game-rules__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-game-rules__faq-answer {
    padding: 0 20px 15px;
  }

  .page-game-rules__list {
    margin-left: 20px;
  }

  .page-game-rules__game-rules-card,
  .page-game-rules__terms-item {
    padding: 20px;
  }
}