/* style/index.css */

/* Custom CSS Variables for this page if needed, based on brand colors */
:root {
  --primary-color: #26A9E0; /* 淡蓝色 */
  --secondary-color: #FFFFFF; /* 白色 */
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login: #EA7C07; /* 登录按钮颜色 */
}

/* Base styles for the page content */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Body background is white */
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

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

/* Button Base Styles */
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__cta-button,
.page-index__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-width: 150px; /* Ensure buttons are not too small */
}

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

.page-index__btn-primary:hover {
  background: #1e87b3; /* Darken primary color */
  border-color: #1e87b3; 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-link {
  color: var(--primary-color);
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  min-width: unset;
}

.page-index__btn-link:hover {
  text-decoration: underline;
  color: #1e87b3; /* Darken primary color */
}

/* 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); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient background */
  overflow: hidden; /* Prevent content overflow */
}

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

.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;
  min-width: 200px; /* Ensure min image size */
  min-height: 200px;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light); /* Light text on potentially dark gradient part */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Enhance readability */
}

.page-index__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-button {
  background: var(--button-login); /* Use specific login color for CTA */
  color: var(--text-light);
  border: 2px solid var(--button-login);
  font-size: 20px;
  padding: 18px 45px;
  margin-top: 20px;
}

.page-index__cta-button:hover {
  background: #c26106; /* Darken button login color */
  border-color: #c26106;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Module 1: Intro Section */
.page-index__intro-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Light background */
}

.page-index__intro-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-index__intro-image {
  flex: 1;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__intro-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Ensure min image size */
  min-height: 200px;
}

.page-index__text-block {
  flex: 1.5;
}

.page-index__intro-list {
  list-style: disc;
  margin-left: 20px;
  margin-top: 20px;
  color: var(--text-dark);
}

.page-index__intro-list li {
  margin-bottom: 10px;
  font-size: 17px;
}

/* Module 2: Quick Access Section */
.page-index__dark-section {
  background-color: var(--primary-color); /* Dark background for contrast */
  color: var(--text-light);
  padding: 80px 0;
}

.page-index__dark-section .page-index__section-title {
  color: var(--text-light);
}

.page-index__dark-section .page-index__section-description {
  color: rgba(255, 255, 255, 0.8);
}

.page-index__quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__access-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  box-sizing: border-box;
}

.page-index__access-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index__access-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Ensure min image size */
  min-height: 200px;
}

.page-index__access-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.page-index__access-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-index__access-card p {
  font-size: 15px;
  opacity: 0.9;
}

/* Module 3: Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

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

.page-index__game-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 450px; /* Ensure card height consistency */
  display: flex;
  flex-direction: column;
}

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

.page-index__game-image {
  width: 100%;
  height: 200px; /* Fixed height for image in card */
  object-fit: cover;
  min-width: 200px; /* Ensure min image size */
  min-height: 200px;
}