/* style/blog-t888-official-website-guide.css */

:root {
  --t888-primary-color: #C91F17;
  --t888-secondary-color: #E53935;
  --t888-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --t888-card-bg: #D32F2F;
  --t888-background-color: #B71C1C;
  --t888-text-main: #FFF5E1;
  --t888-border-color: #F2B544;
  --t888-glow-color: #FFCC66;
  --t888-gold-color: #F4D34D;
  --t888-deep-red: #7A0E0E;
}

.page-blog-t888-official-website-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--t888-text-main); /* Default text color for the page */
  background-color: var(--t888-background-color); /* Main background color */
}

.page-blog-t888-official-website-guide__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Minimal top padding, relying on body padding-top from shared.css */
  padding-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog-t888-official-website-guide__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for desktop hero image */
  overflow: hidden;
}

.page-blog-t888-official-website-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog-t888-official-website-guide__hero-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
  z-index: 1;
  background-color: var(--t888-deep-red); /* Darker background for text for contrast */
  border-radius: 8px;
  margin-top: -80px; /* Overlap slightly with image for visual appeal, but not covering text */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-blog-t888-official-website-guide__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  color: var(--t888-gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px var(--t888-glow-color);
}

.page-blog-t888-official-website-guide__description {
  font-size: 1.1em;
  color: var(--t888-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-t888-official-website-guide__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog-t888-official-website-guide__btn-primary,
.page-blog-t888-official-website-guide__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-blog-t888-official-website-guide__btn-primary {
  background: var(--t888-button-gradient);
  color: #000000; /* Dark text for gold gradient button */
  border: 2px solid var(--t888-gold-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-blog-t888-official-website-guide__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-blog-t888-official-website-guide__btn-secondary {
  background: var(--t888-deep-red);
  color: var(--t888-gold-color);
  border: 2px solid var(--t888-gold-color);
}

.page-blog-t888-official-website-guide__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: var(--t888-primary-color);
  color: var(--t888-text-main);
}

.page-blog-t888-official-website-guide__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--t888-primary-color); /* Lighter background for content for contrast */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  color: var(--t888-text-main); /* Ensure light text on dark background */
  margin-top: 40px; /* Space from hero section */
}

.page-blog-t888-official-website-guide__container {
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.page-blog-t888-official-website-guide__section-title {
  font-size: 2.2em;
  color: var(--t888-gold-color);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.page-blog-t888-official-website-guide__section-title:first-of-type {
  margin-top: 0;
}

.page-blog-t888-official-website-guide__sub-title {
  font-size: 1.6em;
  color: var(--t888-gold-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog-t888-official-website-guide__text-block {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: var(--t888-text-main);
}

.page-blog-t888-official-website-guide__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

.page-blog-t888-official-website-guide__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--t888-text-main);
}

.page-blog-t888-official-website-guide__list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-blog-t888-official-website-guide__list li strong {
  color: var(--t888-gold-color);
}

.page-blog-t888-official-website-guide__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-blog-t888-official-website-guide__game-card {
  background-color: var(--t888-card-bg); /* Card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--t888-text-main);
  min-height: 300px; /* Ensure minimum card height */
}

.page-blog-t888-official-website-guide__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-blog-t888-official-website-guide__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-blog-t888-official-website-guide__game-title {
  font-size: 1.4em;
  color: var(--t888-gold-color);
  margin: 15px 10px 10px;
  font-weight: 700;
}

.page-blog-t888-official-website-guide__game-title a {
  color: var(--t888-gold-color);
  text-decoration: none;
}

.page-blog-t888-official-website-guide__game-title a:hover {
  text-decoration: underline;
}

.page-blog-t888-official-website-guide__game-description {
  font-size: 0.95em;
  color: var(--t888-text-main);
  padding: 0 15px;
}

.page-blog-t888-official-website-guide__faq-list {
  margin-top: 30px;
}

.page-blog-t888-official-website-guide__faq-item {
  background-color: var(--t888-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--t888-text-main);
}

.page-blog-t888-official-website-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--t888-gold-color);
  background-color: var(--t888-deep-red);
  border-bottom: 1px solid var(--t888-primary-color);
  list-style: none; /* For details/summary */
}

.page-blog-t888-official-website-guide__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-t888-official-website-guide__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text selection from interfering with click */
}

.page-blog-t888-official-website-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  pointer-events: none; /* Prevent toggle from interfering with click */
}

.page-blog-t888-official-website-guide__faq-item[open] .page-blog-t888-official-website-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-blog-t888-official-website-guide__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.0em;
  color: var(--t888-text-main);
  background-color: var(--t888-card-bg);
}

.page-blog-t888-official-website-guide__faq-answer p {
  margin: 0;
}

.page-blog-t888-official-website-guide__cta-buttons--bottom {
  margin-top: 50px;
  margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog-t888-official-website-guide__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

  .page-blog-t888-official-website-guide__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

  .page-blog-t888-official-website-guide__description {
    font-size: 1em;
  }

  .page-blog-t888-official-website-guide__content-area {
    padding: 40px 15px;
  }

  .page-blog-t888-official-website-guide__section-title {
    font-size: 2em;
  }

  .page-blog-t888-official-website-guide__sub-title {
    font-size: 1.4em;
  }

  .page-blog-t888-official-website-guide__game-card {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .page-blog-t888-official-website-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-blog-t888-official-website-guide__hero-section {
    padding-top: 10px !important; /* Minimal top padding */
    padding-bottom: 0 !important;
  }

  .page-blog-t888-official-website-guide__hero-image-wrapper {
    max-height: 400px;
  }

  .page-blog-t888-official-website-guide__hero-content {
    margin-top: -40px !important; /* Adjust overlap for mobile */
    padding: 25px 15px !important;
    border-radius: 0 !important; /* Remove border-radius on mobile for full width */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-t888-official-website-guide__main-title {
    font-size: clamp(1.6em, 7vw, 2.2em) !important;
    margin-bottom: 15px !important;
  }

  .page-blog-t888-official-website-guide__description {
    font-size: 0.95em !important;
    margin-bottom: 25px !important;
  }

  /* 按钮与按钮容器 */
  .page-blog-t888-official-website-guide__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-t888-official-website-guide__btn-primary,
  .page-blog-t888-official-website-guide__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 其他内容模块 */
  .page-blog-t888-official-website-guide__content-area {
    padding: 30px 15px !important;
    margin-top: 20px !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-t888-official-website-guide__container {
    padding-left: 0px !important; /* Inner container padding for mobile */
    padding-right: 0px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-t888-official-website-guide__section-title {
    font-size: 1.8em !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
  }

  .page-blog-t888-official-website-guide__sub-title {
    font-size: 1.2em !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
  }

  .page-blog-t888-official-website-guide__text-block,
  .page-blog-t888-official-website-guide__list li,
  .page-blog-t888-official-website-guide__game-description,
  .page-blog-t888-official-website-guide__faq-answer p {
    font-size: 0.95em !important;
  }

  /* 产品展示图区域 */
  .page-blog-t888-official-website-guide__games-grid {
    grid-template-columns: 1fr !important; /* Single column layout for games */
    gap: 20px !important;
    margin-top: 20px !important;
    margin-bottom: 30px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-blog-t888-official-website-guide__game-card {
    min-height: auto !important; /* Allow height to adjust */
    padding-bottom: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-t888-official-website-guide__game-image {
    height: 180px !important; /* Adjust image height for mobile cards */
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-blog-t888-official-website-guide__game-title {
    font-size: 1.2em !important;
    margin: 10px 10px 8px !important;
  }

  /* 通用图片与容器 */
  .page-blog-t888-official-website-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-blog-t888-official-website-guide__faq-question {
    padding: 15px 20px !important;
    font-size: 1.05em !important;
  }

  .page-blog-t888-official-website-guide__faq-answer {
    padding: 10px 20px 15px !important;
  }

  .page-blog-t888-official-website-guide__faq-toggle {
    font-size: 1.3em !important;
  }

  .page-blog-t888-official-website-guide__cta-buttons--bottom {
    margin-top: 40px !important;
  }
}