/* style/index.css */

/* --- General Styles & Typography --- */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* Light background for the page */
}

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

.page-index__section-title {
  font-size: 36px;
  color: #26A9E0; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #26A9E0; /* Primary color background */
  color: #ffffff;
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-index__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-index__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-index__cta-button--primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-index__cta-button--primary:hover {
  background: #d46c00;
  border-color: #d46c00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
  background: #ffffff;
  color: #26A9E0; /* Primary color */
  border: 2px solid #26A9E0;
}

.page-index__cta-button--secondary:hover {
  background: #f0f0f0;
  color: #1a88b8;
  border-color: #1a88b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Introduction Section --- */
.page-index__introduction-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-index__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure responsiveness */
  height: auto; /* Ensure responsiveness */
}

.page-index__feature-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-index__feature-text {
  font-size: 16px;
  color: #666666;
}

/* --- Quick Access Section --- */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary color background */
  color: #ffffff;
}

.page-index__quick-access-section .page-index__section-title,
.page-index__quick-access-section .page-index__section-description {
  color: #ffffff;
}

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

.page-index__access-link-card {
  display: block;
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__access-link-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.page-index__access-link-title {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #ffffff;
}

.page-index__access-link-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* --- Games Section --- */
.page-index__games-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
}

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

.page-index__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  max-width: 100%; /* Ensure responsiveness */
}

.page-index__game-title {
  font-size: 22px;
  color: #26A9E0;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-index__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-index__game-title a:hover {
  text-decoration: underline;
}

.page-index__game-text {
  font-size: 15px;
  color: #666666;
  padding: 0 15px 20px;
}

.page-index__game-button {
  display: inline-block;
  background: #26A9E0;
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-index__game-button:hover {
  background: #1a88b8;
}

/* --- Promotions Section --- */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary color background */
  color: #ffffff;
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__section-description {
  color: #ffffff;
}

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

.page-index__promotion-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__promotion-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  max-width: 100%; /* Ensure responsiveness */
}

.page-index__promotion-title {
  font-size: 22px;
  color: #ffffff;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-index__promotion-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-index__promotion-title a:hover {
  text-decoration: underline;
}

.page-index__promotion-text {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 15px 20px;
}

.page-index__promotion-button {
  display: inline-block;
  background: #EA7C07; /* Login color */
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-index__promotion-button:hover {
  background: #d46c00;
}

.page-index__view-all-promotions {
  margin-top: 60px;
  text-align: center;
}

/* --- Security & Customer Service Section --- */
.page-index__security-cs-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-index__security-cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-index__security-cs-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__security-cs-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__security-cs-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure responsiveness */
  height: auto; /* Ensure responsiveness */
}

.page-index__security-cs-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-index__security-cs-text {
  font-size: 16px;
  color: #666666;
}

.page-index__contact-us-cta {
  margin-top: 60px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- FAQ Section --- */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary color background */
  color: #ffffff;
}

.page-index__faq-section .page-index__section-title,
.page-index__faq-section .page-index__section-description {
  color: #ffffff;
}

.page-index__faq-list {
  max-width: 800px;
  margin: 50px auto 0;
}

/* FAQ容器样式 */
.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff; /* White background for FAQ items */
  color: #333333; /* Dark text for FAQ items */
}

/* FAQ默认状态 - 答案隐藏 */
.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px; /* Adjusted padding for better look */
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important and large value */
  padding: 20px !important; /* Adjusted padding for better look */
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-item.active .page-index__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #26A9E0; /* Primary color border when active */
}

.page-index__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-index__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #333333; /* Dark text for question title */
}

/* 切换图标 */
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #26A9E0; /* Primary color when active */
  transform: rotate(180deg); /* Rotate for minus sign */
}