/* style/index.css */

/* Base styles for page-index */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background: #ffffff; /* Explicitly setting for clarity, though body is white */
}

.page-index__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-index__section {
  padding: 30px 0;
}

.page-index__page-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Using clamp for H1 font size */
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Brand color for main title */
  line-height: 1.2;
}

.page-index__section-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #017439;
}

.page-index h3 {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #017439;
}

.page-index p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-index ul,
.page-index ol {
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-index ul li,
.page-index ol li {
  margin-bottom: 8px;
}

.page-index a {
  color: #0066ff; /* Link color */
  text-decoration: none;
}

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

/* Module 0: Top section */
.page-index__top-section {
  padding-top: 10px; /* Small top padding */
  padding-bottom: 30px;
}

.page-index__top-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  margin-top: 20px;
}

.page-index__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
  min-height: 44px; /* Minimum touch target height */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
  text-align: center;
}

.page-index__btn--primary {
  background: #C30808; /* Register/Login red */
  color: #FFFF00; /* Yellow text for register/login */
  border: none;
}

.page-index__btn--secondary {
  background: #C30808; /* Register/Login red */
  color: #FFFF00; /* Yellow text for register/login */
  border: 1px solid #C30808;
}

/* Module 1: Announcement / Main Promo Area */
.page-index__announcement-section {
  background-color: #f9f9f9;
  padding: 40px 0;
}

.page-index__selling-points {
  list-style: disc;
  margin-top: 20px;
}

.page-index__emphasized-text {
  text-align: center;
  font-style: italic;
  color: #d62828; /* Emphasized red */
  margin-top: 20px;
}

/* Module 2: Brand Overview + Info Cards */
.page-index__brand-overview-section {
  padding: 40px 0;
}

.page-index__facts-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-index__facts-list li {
  margin-bottom: 10px;
}

.page-index__info-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #333333; /* Dark text for light background */
}

.page-index__info-card ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.page-index__info-card em {
  display: block;
  margin-top: 15px;
  font-size: 0.9em;
  color: #555555;
}

.page-index__warning-card {
  background-color: #fff4f4;
  border-left: 5px solid #ff4141;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 30px;
  color: #d62828; /* Red text for warning */
}

/* Module 3: Long SEO Content */
.page-index__seo-content-section {
  padding: 40px 0;
}

.page-index__seo-content-section p {
  text-align: justify;
}

.page-index__wp-caption {
  text-align: center;
  margin: 25px auto;
  max-width: 680px; /* Max width for blog images */
  box-sizing: border-box;
}

.page-index__wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

.page-index__wp-caption figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #555555;
  margin-top: 10px;
}

.page-index__blockquote-text {
  font-style: italic;
  padding: 20px;
  border-left: 4px solid #017439;
  background-color: #f0f8f0;
  margin: 30px 0;
  color: #333333;
}

/* Module 4: World Cup / Major Event Promo Box */
.page-index__promo-box-section {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.page-index__promo-box {
  background-color: #fffbe6;
  border: 2px dashed #111;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

.page-index__promo-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #d62828; /* Red for promo title */
  margin-bottom: 20px;
}

.page-index__promo-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 25px;
  font-size: 1.1em;
}

.page-index__promo-list li {
  margin-bottom: 10px;
}

.page-index__btn--promo {
  background: #d62828; /* Red for promo button */
  color: #ffffff;
  border: none;
  padding: 15px 40px;
  font-size: 1.1em;
  border-radius: 8px;
}

/* Module 5: Four-Step Registration Tutorial */
.page-index__registration-tutorial-section {
  padding: 40px 0;
}

/* Module 6: FAQ + Footer Contact Info */
.page-index__faq-contact-section {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.page-index__conclusion-text {
  text-align: center;
  font-style: italic;
  margin-top: 30px;
  margin-bottom: 30px;
  color: #555555;
}

.page-index__contact-info {
  margin-top: 30px;
  padding: 20px;
  border-top: 1px solid #eee;
  text-align: center;
}

.page-index__contact-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-index__contact-info ul {
  list-style: none;
  padding-left: 0;
}

.page-index__contact-info li {
  margin-bottom: 8px;
}

/* --- Responsive styles for @media (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 1. 顶区标题 + 双 CTA */
  .page-index__top-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 20px;
  }
  .page-index__page-title {
    /* font-size handled by clamp */
    padding: 0 15px;
  }
  .page-index__top-cta {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }
  .page-index__btn {
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
    padding: 12px 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. 单栏长文容器 */
  .page-index__article-wrap {
    padding: 0 15px !important; /* Smaller horizontal padding */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__section {
    padding: 20px 0;
  }
  .page-index__section-title {
    font-size: 1.5em;
    padding: 0 10px;
  }
  .page-index h3 {
    font-size: 1.2em;
    padding: 0 10px;
  }
  .page-index p {
    text-align: left; /* Align left for better readability on mobile */
  }
  .page-index ul,
  .page-index ol {
    padding-left: 25px;
  }
  .page-index__info-card,
  .page-index__warning-card {
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 15px;
  }
  .page-index__promo-box {
    padding: 20px;
    max-width: 100%;
  }
  .page-index__promo-title {
    font-size: 1.4em;
  }

  /* 3. 通用图片与 figure */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__wp-caption {
    margin: 15px auto;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__wp-caption figcaption {
    font-size: 0.85em;
    padding: 0 5px;
  }

  /* 4. 按钮与按钮容器 */
  .page-index__btn--promo {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index__top-cta { /* Ensure flex-direction: column is applied */
    display: flex;
    flex-direction: column !important;
    gap: 10px;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-index__registration-tutorial-section h3,
  .page-index__faq-contact-section h3 {
    font-size: 1.3em;
    padding: 0 10px;
  }
  .page-index__contact-info {
    padding: 15px;
  }
  .page-index__contact-title {
    font-size: 1.4em;
  }
}