.page-doi-tac {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background: #F5F7FA; /* Custom background color */
}

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

.page-doi-tac__section-padding {
  padding: 60px 0;
}

.page-doi-tac__dark-section {
  background: #E53935; /* Main brand color */
  color: #ffffff;
}

.page-doi-tac__light-bg {
  background: #FFFFFF; /* Card background */
  color: #333333;
}

/* Hero Section */
.page-doi-tac__hero-section {
  padding-top: 10px; /* Small top margin, assuming body padding-top from shared.css */
  position: relative;
  overflow: hidden;
  background-color: #E53935; /* Fallback/base color */
}

.page-doi-tac__hero-content-wrapper {
  display: flex;
  flex-direction: column; /* Default column for upper/lower content */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

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

.page-doi-tac__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover; /* Default for desktop */
}

.page-doi-tac__hero-text-container {
  text-align: center;
  max-width: 800px;
  color: #ffffff;
}

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

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

.page-doi-tac__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-doi-tac__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Section Titles & Descriptions */
.page-doi-tac__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit from parent section for dark/light contrast */
}

.page-doi-tac__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
  opacity: 0.9;
}

/* Benefits Section */
.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: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark section */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-doi-tac__benefit-card img {
  width: 100%;
   /* Smaller for icons/illustrations */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-doi-tac__benefit-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-doi-tac__benefit-text {
  font-size: 16px;
  opacity: 0.9;
  color: #ffffff;
}

/* Types Section */
.page-doi-tac__types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__type-card {
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #E0E0E0; /* Border color */
}

.page-doi-tac__type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-doi-tac__type-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 25px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-doi-tac__type-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333333;
}

.page-doi-tac__type-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: #333333;
}

.page-doi-tac__type-link {
  display: inline-block;
  color: #E53935; /* Main brand color */
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

.page-doi-tac__type-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #E53935;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-doi-tac__type-link:hover::after {
  transform: scaleX(1);
}

/* Process Section */
.page-doi-tac__process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-doi-tac__process-step {
  text-align: center;
  color: #ffffff;
}

.page-doi-tac__step-number {
  font-size: 48px;
  font-weight: 700;
  color: #FF5A4F; /* Auxiliary color */
  margin-bottom: 15px;
  line-height: 1;
}

.page-doi-tac__step-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-doi-tac__step-text {
  font-size: 16px;
  opacity: 0.9;
  color: #ffffff;
}

.page-doi-tac__process-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-doi-tac__process-image-wrapper img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-doi-tac__faq-list {
  margin-top: 40px;
}

details.page-doi-tac__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border color */
  overflow: hidden;
  background: #FFFFFF; /* Card background */
}
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;
  color: #333333; /* Text main color */
}
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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.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;
  color: #333333;
}

/* CTA Section */
.page-doi-tac__cta-content {
  text-align: center;
  color: #ffffff;
}

.page-doi-tac__cta-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-doi-tac__cta-description {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-doi-tac__section-padding {
    padding: 50px 0;
  }
  .page-doi-tac__hero-title {
    font-size: clamp(26px, 4.5vw, 42px);
  }
  .page-doi-tac__hero-description {
    font-size: 17px;
  }
  .page-doi-tac__cta-button {
    padding: 14px 28px;
    font-size: 17px;
  }
  .page-doi-tac__section-title {
    font-size: clamp(22px, 3.8vw, 36px);
  }
  .page-doi-tac__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-doi-tac__benefit-card {
    padding: 25px;
  }
  .page-doi-tac__benefit-title {
    font-size: 20px;
  }
  .page-doi-tac__type-card {
    padding: 25px;
  }
  .page-doi-tac__type-title {
    font-size: 22px;
  }
  .page-doi-tac__step-number {
    font-size: 42px;
  }
  .page-doi-tac__step-title {
    font-size: 20px;
  }
  .page-doi-tac__cta-title {
    font-size: clamp(24px, 4vw, 38px);
  }
  .page-doi-tac__cta-description {
    font-size: 17px;
  }
}

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

  .page-doi-tac__section-padding {
    padding: 40px 0;
  }

  /* HERO 主图区域 */
  .page-doi-tac__hero-section {
    padding-top: 10px; /* Small top margin, NOT var(--header-offset) */
  }
  .page-doi-tac__hero-content-wrapper {
    padding: 15px;
  }
  .page-doi-tac__hero-image {
    margin-bottom: 20px;
  }
  .page-doi-tac__hero-image img {
    object-fit: contain !important; /* Ensure image is not cropped */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  .page-doi-tac__hero-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 15px;
  }
  .page-doi-tac__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* 按钮与按钮容器 */
  .page-doi-tac__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-doi-tac__section-title {
    font-size: clamp(20px, 6vw, 30px);
    margin-bottom: 15px;
  }
  .page-doi-tac__section-description {
    font-size: 15px;
    margin-bottom: 25px;
  }
  /* Assuming .page-doi-tac__article-body and .page-doi-tac__article-figure are general content blocks */
  .page-doi-tac__content-area p,
  .page-doi-tac__content-area li {
    font-size: 15px;
  }
  .page-doi-tac__article-body {
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: left; /* Default text alignment */
  }
  .page-doi-tac__article-figure {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 通用图片与容器 */
  .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,
  .page-doi-tac__benefits-grid,
  .page-doi-tac__types-grid,
  .page-doi-tac__process-grid,
  .page-doi-tac__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-doi-tac__benefits-grid,
  .page-doi-tac__types-grid,
  .page-doi-tac__process-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }

  .page-doi-tac__benefit-card,
  .page-doi-tac__type-card {
    padding: 20px;
  }
  .page-doi-tac__benefit-title,
  .page-doi-tac__type-title,
  .page-doi-tac__step-title {
    font-size: 18px;
  }
  .page-doi-tac__benefit-text,
  .page-doi-tac__type-text,
  .page-doi-tac__step-text {
    font-size: 15px;
  }
  .page-doi-tac__step-number {
    font-size: 36px;
  }

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

  /* CTA Section */
  .page-doi-tac__cta-title {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 15px;
  }
  .page-doi-tac__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
}