/* style/index.css */
/* 页面完整样式代码 - 注意：所有选择器必须添加页面前缀 */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #E5E5D1; /* Light text for dark background */
  background-color: #1A1A2E;
  line-height: 1.6;
}

.page-index__section-title {
  font-size: 2.5em;
  color: #E0B95B; /* Accent color for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  font-weight: bold;
}

.page-index__section-subtitle {
  font-size: 1.2em;
  color: #C0C0C0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__text-block {
  color: #C0C0C0;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-index__btn--primary {
  background-color: #E0B95B; /* Accent color */
  color: #1A1A2E; /* Dark text for accent background */
  border: 2px solid #E0B95B;
}

.page-index__btn--primary:hover {
  background-color: #C29F4C;
  border-color: #C29F4C;
}

.page-index__btn--secondary {
  background-color: transparent;
  color: #E0B95B; /* Accent color for text */
  border: 2px solid #E0B95B;
}

.page-index__btn--secondary:hover {
  background-color: #E0B95B;
  color: #1A1A2E; /* Dark text for accent background */
}

.page-index__btn--outline {
  background-color: transparent;
  color: #E0B95B;
  border: 2px solid #E0B95B;
}

.page-index__btn--outline:hover {
  background-color: #E0B95B;
  color: #1A1A2E;
}

.page-index__btn--small {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-index__btn--lg {
  padding: 15px 35px;
  font-size: 1.1em;
}

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #1A1A2E 0%, #3A3A5E 100%);
  min-height: 600px;
  gap: 40px;
}

.page-index__hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-index__hero-title {
  font-size: 3.5em;
  color: #E0B95B;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.3em;
  color: #C0C0C0;
  margin-bottom: 40px;
}

.page-index__hero-cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.page-index__features-section {
  padding: 80px 20px;
  background-color: #2A2A3E;
  text-align: center;
}

.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__feature-item {
  background-color: #1A1A2E;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-10px);
}

.page-index__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: invert(70%) sepia(30%) saturate(1000%) hue-rotate(0deg) brightness(100%) contrast(100%); /* Gold effect */
}

.page-index__feature-title {
  font-size: 1.5em;
  color: #E0B95B;
  margin-bottom: 15px;
}

.page-index__feature-text {
  color: #C0C0C0;
}

/* Games Overview Section */
.page-index__games-overview-section {
  padding: 80px 20px;
  background-color: #1A1A2E;
  text-align: center;
}

.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__game-category {
  background-color: #2A2A3E;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__game-category:hover {
  transform: translateY(-5px);
}

.page-index__game-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-title {
  font-size: 1.4em;
  color: #E0B95B;
  margin-bottom: 10px;
}

.page-index__game-description {
  color: #C0C0C0;
  margin-bottom: 20px;
  font-size: 0.95em;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
  background-color: #2A2A3E;
  text-align: center;
}

.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__promo-card {
  background-color: #1A1A2E;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
}

.page-index__promo-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 1.6em;
  color: #E0B95B;
  margin-bottom: 10px;
}

.page-index__promo-description {
  color: #C0C0C0;
  margin-bottom: 20px;
}

/* About Section */
.page-index__about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: #1A1A2E;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__about-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-index__about-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Download App Section */
.page-index__download-app-section {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: #2A2A3E;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__download-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-index__download-cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-index__download-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Detail Pages Section */
.page-index__detail-pages-section {
  padding: 80px 20px;
  background-color: #1A1A2E;
  text-align: center;
}

.page-index__detail-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__detail-card {
  background-color: #2A2A3E;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-index__detail-card:hover {
  transform: translateY(-5px);
}

.page-index__detail-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-index__detail-title a {
  color: #E0B95B;
  text-decoration: none;
}

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

.page-index__detail-description {
  color: #C0C0C0;
  margin-bottom: 20px;
  font-size: 0.95em;
}

/* CTA Banner */
.page-index__cta-banner {
  background: linear-gradient(90deg, #E0B95B, #C29F4C);
  padding: 60px 20px;
  text-align: center;
  color: #1A1A2E; /* Dark text for light background */
}

.page-index__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #1A1A2E;
}

.page-index__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #3A3A5E;
}

/* Floating Ad */
.page-index__floating-ad {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #E0B95B;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: page-index__fadeInUp 0.5s ease-out;
}

.page-index__floating-ad a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1A1A2E;
}

.page-index__floating-ad-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}

.page-index__floating-ad-text {
  font-weight: bold;
  font-size: 1.1em;
  color: #1A1A2E;
}

.page-index__close-ad-btn {
  background-color: #1A1A2E;
  color: #E0B95B;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  margin-left: 10px;
}

.page-index__close-ad-btn:hover {
  background-color: #3A3A5E;
}

@keyframes page-index__fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-index__hero-section,
  .page-index__about-section,
  .page-index__download-app-section {
    flex-direction: column;
    text-align: center;
  }

  .page-index__hero-content,
  .page-index__about-content,
  .page-index__download-content {
    max-width: 100%;
  }

  .page-index__hero-cta-group,
  .page-index__download-cta-group {
    justify-content: center;
  }

  .page-index__hero-title {
    font-size: 2.8em;
  }

  .page-index__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }

  .page-index__hero-description {
    font-size: 1.1em;
  }

  .page-index__section-title {
    font-size: 2em;
  }

  .page-index__cta-title {
    font-size: 1.8em;
  }

  .page-index__floating-ad {
    bottom: 10px;
    right: 10px;
    padding: 8px;
  }

  .page-index__floating-ad-image {
    width: 40px;
    height: 40px;
  }

  .page-index__floating-ad-text {
    font-size: 0.9em;
  }

  .page-index__close-ad-btn {
    width: 20px;
    height: 20px;
    font-size: 0.8em;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }

  .page-index__hero-description {
    font-size: 1em;
  }

  .page-index__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-index__hero-cta-group,
  .page-index__download-cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__cta-title {
    font-size: 1.5em;
  }

  .page-index__floating-ad {
    width: calc(100% - 40px);
    right: 20px;
    bottom: 10px;
    justify-content: space-between;
  }

  .page-index__floating-ad-text {
    flex-grow: 1;
    text-align: center;
  }
}