/* style/doi-tac.css */
.page-doi-tac {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-doi-tac__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-doi-tac__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  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 to ensure text readability */
}

.page-doi-tac__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background: rgba(17, 40, 27, 0.7); /* Card BG with transparency */
  border-radius: 10px;
  margin-top: 20px;
}

.page-doi-tac__hero-title {
  font-size: clamp(2.5em, 5vw, 3.2em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-doi-tac__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-doi-tac__hero-cta-buttons,
.page-doi-tac__final-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.page-doi-tac__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-doi-tac__btn--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-doi-tac__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-doi-tac__btn--secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #2E7A4E; /* Border */
}

.page-doi-tac__btn--secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: #F2FFF6;
}

.page-doi-tac__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-doi-tac__text-block {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

.page-doi-tac__features-grid,
.page-doi-tac__game-categories,
.page-doi-tac__registration-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-doi-tac__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

.page-doi-tac__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px #57E38D; /* Glow */
}

.page-doi-tac__feature-title,
.page-doi-tac__game-title,
.page-doi-tac__step-title {
  font-size: 1.6em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-doi-tac__feature-item p,
.page-doi-tac__game-card p,
.page-doi-tac__step-item p,
.page-doi-tac__faq-item p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

.page-doi-tac__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-doi-tac__list li {
  background: #11271B; /* Card BG */
  border: 1px solid #1E3A2A; /* Divider */
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  color: #F2FFF6; /* Text Main */
  font-size: 1.05em;
}

.page-doi-tac__list li::before {
  content: '✔';
  color: #57E38D; /* Glow */
  font-weight: bold;
  margin-right: 10px;
}

.page-doi-tac__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-doi-tac__image-figure {
  margin: 30px auto;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.page-doi-tac__image-caption {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-top: 10px;
}

.page-doi-tac__btn--game {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  border: none;
  padding: 10px 20px;
  font-size: 0.95em;
  margin-top: 15px;
}

.page-doi-tac__btn--game:hover {
  background: #13994A; /* Darker green */
}

.page-doi-tac__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  line-height: 1;
}

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

.page-doi-tac__faq-list {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-doi-tac__faq-item {
  margin-bottom: 20px;
  cursor: default; /* FAQ is just text, not collapsible with JS */
}

.page-doi-tac__faq-question {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-doi-tac__faq-answer {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

.page-doi-tac__copyright-section {
  text-align: center;
  padding: 30px 20px;
  background-color: #08160F; /* Background */
  border-top: 1px solid #1E3A2A; /* Divider */
  margin-top: 60px;
}

.page-doi-tac__copyright-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.9em;
}

/* -------------------------------------- */
/* Responsive Styles */
/* -------------------------------------- */

/* @media (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-doi-tac__hero-title {
    font-size: clamp(2em, 4.5vw, 2.8em);
  }

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

  .page-doi-tac__features-grid,
  .page-doi-tac__game-categories,
  .page-doi-tac__registration-steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-doi-tac__card {
    padding: 25px;
  }

  .page-doi-tac__feature-title,
  .page-doi-tac__game-title,
  .page-doi-tac__step-title {
    font-size: 1.4em;
  }

  .page-doi-tac__faq-question {
    font-size: 1.2em;
  }
}

/* @media (max-width: 768px) - 必写清单 */
@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-doi-tac__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-doi-tac__hero-content {
    margin-top: 15px;
    padding: 15px;
  }

  .page-doi-tac__hero-title {
    font-size: clamp(1.8em, 8vw, 2.5em) !important; /* Adjust for mobile readability */
    margin-bottom: 10px;
  }

  .page-doi-tac__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-doi-tac__hero-cta-buttons,
  .page-doi-tac__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-doi-tac__btn {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 2. 单栏长文容器 */
  .page-doi-tac__article-wrap {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__section-title {
    font-size: 1.8em !important;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .page-doi-tac__text-block {
    font-size: 1em;
    margin-bottom: 15px;
  }

  .page-doi-tac__card {
    padding: 20px;
  }

  /* 3. 通用图片与 figure */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__image-figure {
    margin: 20px auto;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__image-caption {
    font-size: 0.85em;
  }

  /* 4. 按钮与按钮容器 (already covered in hero-cta-buttons, but general rule) */
  .page-doi-tac__features-grid,
  .page-doi-tac__game-categories,
  .page-doi-tac__registration-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-doi-tac__btn--game {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 5. FAQ 区块 (text readability) */
  .page-doi-tac__faq-list {
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__faq-item {
    margin-bottom: 15px;
  }

  .page-doi-tac__faq-question {
    font-size: 1.15em !important;
  }

  .page-doi-tac__faq-answer {
    font-size: 0.95em;
  }

  .page-doi-tac__copyright-section {
    padding: 20px 15px;
  }

  .page-doi-tac__copyright-text {
    font-size: 0.8em;
  }

  .page-doi-tac__list li {
    font-size: 1em;
    padding: 12px 15px;
  }
}