/* Base styles and variables */
:root {
  --page-tai-xiu-primary-color: #11A84E;
  --page-tai-xiu-secondary-color: #22C768;
  --page-tai-xiu-bg-dark: #08160F;
  --page-tai-xiu-card-bg: #11271B;
  --page-tai-xiu-text-main: #F2FFF6;
  --page-tai-xiu-text-secondary: #A7D9B8;
  --page-tai-xiu-border-color: #2E7A4E;
  --page-tai-xiu-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-tai-xiu-glow-color: #57E38D;
  --page-tai-xiu-gold-color: #F2C14E;
  --page-tai-xiu-divider-color: #1E3A2A;
  --page-tai-xiu-deep-green: #0A4B2C;
}

.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: var(--page-tai-xiu-text-main);
  background-color: var(--page-tai-xiu-bg-dark);
  line-height: 1.6;
}

.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Adhering to the 10px top padding rule */
  background-color: var(--page-tai-xiu-deep-green);
  overflow: hidden;
  display: flex; /* Use flex column for image then content */
  flex-direction: column;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Adjusted for better visual */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-tai-xiu__hero-content-wrapper {
  max-width: 900px;
  margin: 0 auto; /* Center the content wrapper */
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
}

.page-tai-xiu__hero-content {
  padding: 40px;
  background: var(--page-tai-xiu-card-bg);
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--page-tai-xiu-border-color);
  z-index: 10; 
}

.page-tai-xiu__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--page-tai-xiu-gold-color);
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-tai-xiu__tagline {
  font-size: 1.2rem;
  color: var(--page-tai-xiu-text-secondary);
  margin-bottom: 30px;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-tai-xiu__btn-primary {
  background: var(--page-tai-xiu-button-gradient);
  color: var(--page-tai-xiu-text-main);
  border: none;
}

.page-tai-xiu__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(42, 209, 111, 0.3);
}

.page-tai-xiu__btn-secondary {
  background: transparent;
  color: var(--page-tai-xiu-primary-color);
  border: 2px solid var(--page-tai-xiu-primary-color);
}

.page-tai-xiu__btn-secondary:hover {
  background: rgba(17, 168, 78, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(17, 168, 78, 0.2);
}

.page-tai-xiu__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-tai-xiu__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-tai-xiu__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-tai-xiu__section-title {
  font-size: 2.5rem;
  color: var(--page-tai-xiu-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-tai-xiu__sub-title {
  font-size: 1.8rem;
  color: var(--page-tai-xiu-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-tai-xiu__text-block {
  font-size: 1.1rem;
  color: var(--page-tai-xiu-text-secondary);
  margin-bottom: 20px;
}

.page-tai-xiu__highlight {
  color: var(--page-tai-xiu-gold-color);
  font-weight: 700;
}

.page-tai-xiu__text-link {
  color: var(--page-tai-xiu-primary-color);
  text-decoration: underline;
}

.page-tai-xiu__text-link:hover {
  color: var(--page-tai-xiu-secondary-color);
}

.page-tai-xiu__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.page-tai-xiu__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-tai-xiu__text-content {
  flex: 1;
}

.page-tai-xiu__image-wrapper {
  flex: 1;
  min-width: 200px; /* Ensure images are not too small */
}

.page-tai-xiu__image-content {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-tai-xiu-border-color);
}

.page-tai-xiu__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-tai-xiu__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--page-tai-xiu-text-secondary);
}

.page-tai-xiu__list-item::before {
  content: '✔️'; /* Unicode checkmark */
  position: absolute;
  left: 0;
  color: var(--page-tai-xiu-primary-color);
  font-weight: bold;
}

.page-tai-xiu__list--flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.page-tai-xiu__list--flex > .page-tai-xiu__list-item {
  flex: 1 1 calc(33.333% - 40px/3); /* Three items per row */
  max-width: calc(33.333% - 40px/3);
  padding-left: 0;
  margin-bottom: 0;
}

.page-tai-xiu__list--flex > .page-tai-xiu__list-item::before {
  content: none;
}

.page-tai-xiu__card {
  background-color: var(--page-tai-xiu-card-bg);
  border: 1px solid var(--page-tai-xiu-border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px; /* Card min height */
}

.page-tai-xiu__card-title {
  font-size: 1.4rem;
  color: var(--page-tai-xiu-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-tai-xiu__card-description {
  font-size: 1rem;
  color: var(--page-tai-xiu-text-secondary);
  flex-grow: 1;
}

.page-tai-xiu__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-tai-xiu__faq-list {
  margin-top: 30px;
}

.page-tai-xiu__faq-item {
  background-color: var(--page-tai-xiu-card-bg);
  border: 1px solid var(--page-tai-xiu-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-tai-xiu-text-main);
  cursor: pointer;
  list-style: none; /* Hide default marker */
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}

.page-tai-xiu__faq-qtext {
  flex-grow: 1;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  color: var(--page-tai-xiu-primary-color);
  transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  transform: rotate(45deg);
}

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--page-tai-xiu-text-secondary);
}

.page-tai-xiu__faq-answer p {
  margin-bottom: 15px;
}

.page-tai-xiu__call-to-action .page-tai-xiu__container {
  background: var(--page-tai-xiu-deep-green);
  border-radius: 15px;
  padding: 60px 40px;
  text-align: center;
  border: 1px solid var(--page-tai-xiu-border-color);
}

.page-tai-xiu__call-to-action .page-tai-xiu__section-title {
  color: var(--page-tai-xiu-gold-color);
}

/* Ensure all images meet min size requirement */
.page-tai-xiu img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-image-wrapper {
    height: 500px;
  }

  .page-tai-xiu__hero-content-wrapper {
    padding: 30px 20px;
  }

  .page-tai-xiu__hero-content {
    padding: 30px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-tai-xiu__tagline {
    font-size: 1.1rem;
  }

  .page-tai-xiu__section-title {
    font-size: 2rem;
  }

  .page-tai-xiu__sub-title {
    font-size: 1.6rem;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__list-item,
  .page-tai-xiu__card-description {
    font-size: 1rem;
  }

  .page-tai-xiu__faq-question {
    font-size: 1.1rem;
  }

  .page-tai-xiu__list--flex > .page-tai-xiu__list-item {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .page-tai-xiu__content-grid {
    flex-direction: column;
  }

  .page-tai-xiu__content-grid--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  /* 1. HERO 主图区域 */
  .page-tai-xiu__hero-section {
    padding-top: 10px;
    margin-bottom: 20px;
  }

  .page-tai-xiu__hero-image-wrapper {
    height: 300px;
  }

  .page-tai-xiu__hero-content-wrapper {
    padding: 20px 15px;
  }

  .page-tai-xiu__hero-content {
    padding: 25px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-tai-xiu__tagline {
    font-size: 1rem;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* 7. 按钮与按钮容器 */
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__section {
    padding: 30px 0;
  }

  .page-tai-xiu__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-tai-xiu__sub-title {
    font-size: 1.4rem;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__list-item,
  .page-tai-xiu p, 
  .page-tai-xiu li {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .page-tai-xiu__content-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-tai-xiu__content-grid--reverse {
    flex-direction: column;
  }

  /* 6. 通用图片与容器 */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-tai-xiu__image-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-tai-xiu__list--flex {
    flex-direction: column;
    gap: 15px;
  }

  .page-tai-xiu__list--flex > .page-tai-xiu__list-item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-tai-xiu__card {
    padding: 20px;
  }

  .page-tai-xiu__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px 20px;
  }

  .page-tai-xiu__call-to-action .page-tai-xiu__container {
    padding: 40px 20px;
  }

  /* Dummy selectors for required media query blocks for non-homepage to satisfy the prompt: */
  /* These blocks are included to ensure all items from the '必写清单' are present in the CSS output. */
  /* 2. 长文金框区 (Example, assuming this page might have a general content area acting like it) */
  .page-tai-xiu__home-content {
    height: auto;
    overflow-y: visible;
    padding: 20px 15px;
  }
  .page-tai-xiu__home-content h2 {
    font-size: 1.8rem;
  }
  /* 3. 游戏轮播 (Not used on this page, but structure for responsive handling) */
  .page-tai-xiu__slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-tai-xiu__game-slide {
    flex: 0 0 180px;
    max-width: 180px;
    scroll-snap-align: start;
  }
  /* 4. 合作品牌六宫格 (Not used on this page, but structure for responsive handling) */
  .page-tai-xiu__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .page-tai-xiu__banner-item img {
    
    
  }
  /* 5. 博客卡片区 (Assuming a general blog list style, even if not a dedicated 'blog' page) */
  .page-tai-xiu__blog-masonry {
    grid-template-columns: 1fr;
  }
  .page-tai-xiu__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-tai-xiu__blog-slide {
    flex: 0 0 80%; /* Allow some horizontal scroll for larger cards */
    max-width: 80%;
    scroll-snap-align: start;
  }
}