/* 页面基础样式 */
.page-doi-tac {
  font-family: 'Arial', sans-serif;
  background-color: var(--bg-color, #08160F);
  color: var(--text-main, #F2FFF6);
  line-height: 1.6;
}

.page-doi-tac__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-doi-tac__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-doi-tac__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary, #A7D9B8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-doi-tac__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-doi-tac__hero-section {
  padding-top: 10px; /* Assuming shared.css handles body padding-top */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
}

.page-doi-tac__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-doi-tac__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-doi-tac__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-doi-tac__hero-title {
  font-size: clamp(2.5em, 6vw, 3.5em);
  font-weight: 800;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-doi-tac__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Why Partner Section */
.page-doi-tac__why-partner-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

.page-doi-tac__dark-section {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

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

.page-doi-tac__benefit-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border, #2E7A4E);
}

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

.page-doi-tac__benefit-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-doi-tac__benefit-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

.page-doi-tac__benefit-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

/* How to Join Section */
.page-doi-tac__how-to-join-section {
  padding: 80px 0;
  background-color: #0d1a13; /* Slightly lighter background for contrast */
  color: var(--text-main, #F2FFF6);
}

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

.page-doi-tac__step-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border, #2E7A4E);
  position: relative;
}

.page-doi-tac__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border-radius: 50%;
  font-size: 2em;
  font-weight: 700;
  margin: 0 auto 20px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.page-doi-tac__step-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
}

.page-doi-tac__step-text {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
}

.page-doi-tac__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* FAQ Section */
.page-doi-tac__faq-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

.page-doi-tac__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-doi-tac__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  background-color: #11271B;
  transition: background-color 0.3s ease;
}

.page-doi-tac__faq-item summary:hover {
  background-color: #1a3022;
}

.page-doi-tac__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-doi-tac__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text from interfering with summary click */
}

.page-doi-tac__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  transition: transform 0.3s ease;
  pointer-events: none; /* Prevent text from interfering with summary click */
}

.page-doi-tac__faq-item[open] .page-doi-tac__faq-toggle {
  transform: rotate(45deg);
}

.page-doi-tac__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  background-color: #0e2017;
}

.page-doi-tac__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-doi-tac__cta-section {
  padding: 60px 0 80px 0;
  text-align: center;
  background-color: #0d1a13; /* Match how-to-join section for subtle contrast */
}

/* General Image & Button Responsive */
.page-doi-tac img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-doi-tac a[class*="btn"],
.page-doi-tac a[class*="button"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-doi-tac__cta-buttons,
.page-doi-tac__button-group,
.page-doi-tac__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-doi-tac__container {
    padding: 0 15px;
  }

  .page-doi-tac__hero-content {
    max-width: 80%;
  }

  .page-doi-tac__benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-doi-tac__process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-doi-tac__hero-section {
    min-height: 400px;
  }
  .page-doi-tac__hero-image-wrapper {
    max-height: 400px;
  }
  .page-doi-tac__hero-content {
    max-width: 90%;
    padding: 15px;
  }
  .page-doi-tac__hero-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }
  .page-doi-tac__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px;
  }
  .page-doi-tac__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }

  /* 长文金框区 - N/A for doi-tac */
  /* 游戏轮播 - N/A for doi-tac */
  /* 合作品牌六宫格 - N/A for doi-tac */
  /* 博客卡片区 - N/A for doi-tac */

  /* 通用图片与容器 */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-doi-tac__section,
  .page-doi-tac__card,
  .page-doi-tac__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-doi-tac__btn-primary,
  .page-doi-tac a[class*="button"],
  .page-doi-tac a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-doi-tac__cta-buttons,
  .page-doi-tac__button-group,
  .page-doi-tac__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-doi-tac__cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-doi-tac__section-title {
    font-size: 2em;
  }
  .page-doi-tac__benefits-grid,
  .page-doi-tac__process-steps {
    grid-template-columns: 1fr;
  }
  .page-doi-tac__benefit-card,
  .page-doi-tac__step-card {
    padding: 25px;
  }
  .page-doi-tac__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-doi-tac__faq-answer {
    padding: 10px 20px 15px 20px;
  }
}