/* style/index-quick-access.css */

:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #1a202c;
  --border-color: #e0e0e0;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-index-quick-access {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.page-index-quick-access__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-index-quick-access__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

/* Hero Section */
.page-index-quick-access__hero-section {
  position: relative;
  padding: 10px 0 60px 0; /* body already handles padding-top from header */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-index-quick-access__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-index-quick-access__hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.page-index-quick-access__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-index-quick-access__main-title {
  font-size: clamp(2em, 5vw, 3.2em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-index-quick-access__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-light);
  opacity: 0.9;
}

.page-index-quick-access__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-quick-access__btn-primary,
.page-index-quick-access__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-quick-access__btn-primary {
  background-color: var(--text-light);
  color: var(--primary-color);
  border: 2px solid var(--text-light);
}

.page-index-quick-access__btn-primary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index-quick-access__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-index-quick-access__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Section Titles & Descriptions */
.page-index-quick-access__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-index-quick-access__section-description {
  font-size: 1.05em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  opacity: 0.9;
}

/* Feature Grid (Quick Access Points) */
.page-index-quick-access__features-section,
.page-index-quick-access__games-overview,
.page-index-quick-access__promotions-section,
.page-index-quick-access__payment-guide,
.page-index-quick-access__faq-section,
.page-index-quick-access__contact-section {
  padding: 60px 0;
}

.page-index-quick-access__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.page-index-quick-access__feature-card {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.page-index-quick-access__feature-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-quick-access__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-index-quick-access__feature-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Game Grid */
.page-index-quick-access__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-index-quick-access__game-card {
  text-align: center;
  padding: 25px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.page-index-quick-access__game-card:hover {
  transform: translateY(-5px);
}

.page-index-quick-access__game-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-index-quick-access__game-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-index-quick-access__game-text {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.8);
}

.page-index-quick-access__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-index-quick-access__cta-center .page-index-quick-access__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-index-quick-access__cta-center .page-index-quick-access__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Promotions Section */
.page-index-quick-access__promotion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--bg-light);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.page-index-quick-access__promotion-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-index-quick-access__promotion-content {
  padding: 30px;
}

.page-index-quick-access__promotion-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-index-quick-access__promotion-text {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Payment Guide */
.page-index-quick-access__payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-quick-access__payment-method-card {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--card-shadow);
  box-sizing: border-box;
}

.page-index-quick-access__payment-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index-quick-access__payment-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-index-quick-access__payment-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.page-index-quick-access__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-index-quick-access__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.page-index-quick-access__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--bg-light);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-index-quick-access__faq-question:hover {
  background-color: #f5f5f5;
}

.page-index-quick-access__faq-qtext {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--primary-color);
  pointer-events: none; /* Prevent text from blocking click event */
}

.page-index-quick-access__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  pointer-events: none; /* Prevent icon from blocking click event */
  transition: transform 0.3s ease;
}

.page-index-quick-access__faq-item.active .page-index-quick-access__faq-toggle {
  transform: rotate(45deg);
}

.page-index-quick-access__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: #f9f9f9;
  color: var(--text-dark);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.page-index-quick-access__faq-item.active .page-index-quick-access__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to show content */
  padding: 20px !important;
  opacity: 1;
}

.page-index-quick-access__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Contact Section */
.page-index-quick-access__contact-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-index-quick-access__contact-section .page-index-quick-access__btn-primary {
  background-color: var(--text-light);
  color: var(--primary-color);
  border-color: var(--text-light);
}

.page-index-quick-access__contact-section .page-index-quick-access__btn-primary:hover {
  background-color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-quick-access__hero-image-wrapper {
    max-width: 90%;
  }
  .page-index-quick-access__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index-quick-access__hero-section {
    padding-top: 10px !important; /* body already handles padding-top from header */
    padding-bottom: 40px;
  }

  .page-index-quick-access__hero-content {
    padding: 0 15px;
  }

  .page-index-quick-access__main-title {
    font-size: 2em;
  }

  .page-index-quick-access__hero-description {
    font-size: 1em;
  }

  .page-index-quick-access__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-quick-access__btn-primary,
  .page-index-quick-access__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto; /* Center buttons */
  }

  .page-index-quick-access__section-title {
    font-size: 1.8em;
    padding-top: 30px;
  }

  .page-index-quick-access__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-index-quick-access__features-section,
  .page-index-quick-access__games-overview,
  .page-index-quick-access__promotions-section,
  .page-index-quick-access__payment-guide,
  .page-index-quick-access__faq-section,
  .page-index-quick-access__contact-section {
    padding: 40px 0;
  }

  .page-index-quick-access__container {
    padding: 0 15px;
  }

  .page-index-quick-access__feature-grid,
  .page-index-quick-access__game-grid,
  .page-index-quick-access__payment-methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-quick-access__feature-card,
  .page-index-quick-access__game-card,
  .page-index-quick-access__payment-method-card,
  .page-index-quick-access__promotion-card {
    padding: 20px;
  }

  .page-index-quick-access__feature-title,
  .page-index-quick-access__payment-title {
    font-size: 1.3em;
  }

  .page-index-quick-access__game-title {
    font-size: 1.1em;
  }

  .page-index-quick-access__promotion-title {
    font-size: 1.5em;
  }

  .page-index-quick-access__faq-question {
    padding: 15px;
  }

  .page-index-quick-access__faq-qtext {
    font-size: 1em;
  }

  .page-index-quick-access__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive */
  .page-index-quick-access img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-quick-access__section,
  .page-index-quick-access__card,
  .page-index-quick-access__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index-quick-access__video-section {
    padding-top: 10px !important; /* body 已承担 --header-offset，此处禁止 var(--header-offset) */
  }

  /* List item responsive */
  .page-index-quick-access ul,
  .page-index-quick-access ol {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-index-quick-access ul li,
  .page-index-quick-access ol li {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
}