/* Base styles for the page-doi-tac */
.page-doi-tac {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light body background #F4F7FB */
  background-color: #F4F7FB;
}

.page-doi-tac__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-doi-tac__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-doi-tac__section-subtitle {
  font-size: 18px;
  color: #333333;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-doi-tac__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #1F2D3D;
  margin-top: 15px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-doi-tac__card-description {
  font-size: 16px;
  color: #333333;
}

.page-doi-tac__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #1F2D3D;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Buttons */
.page-doi-tac__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-doi-tac__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

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

/* Images */
.page-doi-tac img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-doi-tac__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  position: relative;
  overflow: hidden;
  background-color: #F4F7FB;
}

.page-doi-tac__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height for desktop */
  overflow: hidden;
  margin-bottom: 40px;
}

.page-doi-tac__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Desktop: cover */
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-doi-tac__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
}

.page-doi-tac__main-title {
  font-size: clamp(32px, 4vw, 48px); /* Responsive font size */
  color: #1F2D3D;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-doi-tac__hero-description {
  font-size: 20px;
  color: #333333;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Benefits Section */
.page-doi-tac__benefits-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-doi-tac__benefit-card {
  background: #ffffff;
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-doi-tac__benefit-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 5px;
}

/* Commission Section */
.page-doi-tac__commission-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Brand main color */
  color: #ffffff;
}

.page-doi-tac__commission-section .page-doi-tac__section-title,
.page-doi-tac__commission-section .page-doi-tac__section-subtitle,
.page-doi-tac__commission-section .page-doi-tac__sub-title {
  color: #ffffff;
}

.page-doi-tac__commission-details {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-doi-tac__commission-details img {
  flex: 1;
  min-width: 400px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__commission-text {
  flex: 2;
  min-width: 400px;
}

.page-doi-tac__commission-text p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

/* Process Section */
.page-doi-tac__process-section {
  padding: 80px 0;
  background-color: #F4F7FB;
}

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

.page-doi-tac__step-card {
  background: #ffffff;
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-doi-tac__step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-doi-tac__process-image-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.page-doi-tac__process-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.page-doi-tac__process-section .page-doi-tac__cta-button {
  margin-top: 30px;
}

/* FAQ Section */
.page-doi-tac__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

details.page-doi-tac__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-doi-tac__faq-item summary.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-doi-tac__faq-item summary.page-doi-tac__faq-question:hover {
  background: #f5f5f5;
}

.page-doi-tac__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}

.page-doi-tac__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-doi-tac__faq-item .page-doi-tac__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

details.page-doi-tac__faq-item .page-doi-tac__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
}

/* CTA Section */
.page-doi-tac__cta-section {
  padding: 80px 0;
  background-color: #F4F7FB;
}

.page-doi-tac__cta-section .page-doi-tac__container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-doi-tac__cta-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-doi-tac__cta-content .page-doi-tac__section-title {
  text-align: left;
  font-size: 32px;
  margin-bottom: 15px;
}

.page-doi-tac__cta-content .page-doi-tac__section-subtitle {
  text-align: left;
  margin: 0 0 30px 0;
  max-width: none;
}

.page-doi-tac__cta-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-doi-tac__cta-image img {
  width: 100%;
  height: auto;
  display: block;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Reset aspect ratio for better fit */
    max-height: 500px;
  }

  .page-doi-tac__commission-details img,
  .page-doi-tac__commission-text {
    min-width: unset;
    flex-basis: 100%;
  }

  .page-doi-tac__cta-section .page-doi-tac__container {
    flex-direction: column;
    text-align: center;
  }

  .page-doi-tac__cta-content {
    text-align: center;
  }

  .page-doi-tac__cta-content .page-doi-tac__section-title,
  .page-doi-tac__cta-content .page-doi-tac__section-subtitle {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-doi-tac__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-doi-tac__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-doi-tac__card-title {
    font-size: 20px;
  }

  .page-doi-tac__sub-title {
    font-size: 20px;
  }

  /* HERO 主图区域 */
  .page-doi-tac__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-doi-tac__hero-image {
    margin-bottom: 30px;
  }

  .page-doi-tac__hero-image img {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important; /* Reset aspect ratio */
    max-height: 300px !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-doi-tac__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }

  .page-doi-tac__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* 通用图片与容器 */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 按钮与按钮容器 */
  .page-doi-tac__cta-button,
  .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;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  /* Sections padding */
  .page-doi-tac__benefits-section,
  .page-doi-tac__commission-section,
  .page-doi-tac__process-section,
  .page-doi-tac__faq-section,
  .page-doi-tac__cta-section {
    padding: 40px 0;
  }

  .page-doi-tac__benefits-grid,
  .page-doi-tac__process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-doi-tac__commission-details {
    flex-direction: column;
    gap: 20px;
  }

  .page-doi-tac__commission-details img {
    min-width: unset;
  }

  .page-doi-tac__commission-text {
    min-width: unset;
  }

  .page-doi-tac__cta-section .page-doi-tac__container {
    flex-direction: column;
    text-align: center;
  }

  .page-doi-tac__cta-content .page-doi-tac__section-title,
  .page-doi-tac__cta-content .page-doi-tac__section-subtitle {
    text-align: center;
  }

  /* FAQ */
  details.page-doi-tac__faq-item summary.page-doi-tac__faq-question { padding: 15px; }
  .page-doi-tac__faq-qtext { font-size: 16px; }
  details.page-doi-tac__faq-item .page-doi-tac__faq-answer { padding: 0 15px 15px; }
}