/* style/g.css */
.page-g {
  background-color: #140C0C; /* Background */
  color: #FFF1E8; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-g__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #140C0C;
  text-align: center;
  position: relative;
}

.page-g__hero-image-wrapper {
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-g__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-g__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-g__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-g__hero-description {
  font-size: 1.1rem;
  color: #FFF1E8;
  margin-bottom: 30px;
}

.page-g__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-g__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-g__cta-button--primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff; /* White text for contrast */
  border: none;
}

.page-g__cta-button--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-g__section-title {
  font-size: 2.5rem;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-g__section-subtitle {
  font-size: 1.8rem;
  color: #FFB04A;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-g__section-description {
  font-size: 1.1rem;
  color: #FFF1E8;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-g__content-text {
  font-size: 1rem;
  color: #FFF1E8;
  margin-bottom: 20px;
}

.page-g__content-text strong {
  color: #FFB04A; /* Highlight important text */
}

.page-g__link {
  color: #F3C54D;
  text-decoration: underline;
}

.page-g__link:hover {
  color: #FFB04A;
}

.page-g__list,
.page-g__numbered-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-g__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: #FFF1E8;
  font-size: 1rem;
}

.page-g__list-item::before {
  content: '✓';
  color: #F3C54D; /* Gold checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-g__numbered-list .page-g__list-item::before {
  content: counter(list-item) '.';
  counter-increment: list-item;
  color: #F3C54D;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.page-g__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-g__card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-g__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block; /* Ensure no extra space below image */
}

.page-g__card-title {
  font-size: 1.5rem;
  color: #FFB04A; /* Gold */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-g__card-description {
  font-size: 0.95rem;
  color: #FFF1E8;
  flex-grow: 1; /* Allow description to take available space */
}

.page-g__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
}

.page-g__faq-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-g__faq-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-g__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFB04A; /* Gold */
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
}

.page-g__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-g__faq-question {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.page-g__faq-toggle {
  font-size: 1.8rem;
  margin-left: 15px;
  line-height: 1;
  color: #F3C54D; /* Gold */
}

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

.page-g__faq-answer {
  padding: 0 25px 25px 25px;
  font-size: 1rem;
  color: #FFF1E8;
  line-height: 1.7;
}

/* General image styling */
.page-g img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-g__hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-g__section-title {
    font-size: 2rem;
  }
  .page-g__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-g__card-title {
    font-size: 1.3rem;
  }
  .page-g__faq-item summary {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-g__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-g__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    text-align: center;
  }

  .page-g__hero-description {
    font-size: 1rem;
    text-align: center;
  }

  /* 按钮与按钮容器 */
  .page-g__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-g__cta-button,
  .page-g__button {
    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; /* Add padding for readability */
    padding-right: 15px !important;
  }

  /* 通用图片与容器 */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-g__hero-image-wrapper,
  .page-g__section,
  .page-g__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 产品展示图区域 (grid for gameshows) */
  .page-g__grid {
    grid-template-columns: 1fr !important; /* Single column for gameshows */
    gap: 20px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-g__section-title {
    font-size: 2rem !important;
    padding: 0 15px !important;
  }

  .page-g__section-subtitle {
    font-size: 1.5rem !important;
  }

  .page-g__section-description,
  .page-g__content-text {
    font-size: 1rem !important;
    padding: 0 15px !important;
  }

  .page-g__card-image {
    height: 180px !important; /* Adjust height for mobile cards */
  }

  .page-g__card-title {
    font-size: 1.2rem !important;
  }

  .page-g__card-description {
    font-size: 0.9rem !important;
  }

  .page-g__faq-item summary {
    font-size: 1rem !important;
    padding: 15px 20px !important;
  }

  .page-g__faq-answer {
    padding: 0 20px 20px 20px !important;
    font-size: 0.95rem !important;
  }

  .page-g__list-item {
    font-size: 0.95rem !important;
  }
}