.page-dai-ly {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
}

.page-dai-ly__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

.page-dai-ly__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-dai-ly__section-description {
  font-size: clamp(16px, 2vw, 19px);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-dai-ly__card-title {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 600;
  color: #017439;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-dai-ly__card-text {
  font-size: 16px;
  color: #555555;
}

/* Hero Section */
.page-dai-ly__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-dai-ly__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-dai-ly__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-dai-ly__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with image slightly for visual effect */
}

.page-dai-ly__main-title {
  font-size: clamp(32px, 5vw, 54px); /* H1 font size with clamp */
  font-weight: 800;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-dai-ly__intro-text {
  font-size: clamp(18px, 2.2vw, 22px);
  color: #333333;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-dai-ly__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-dai-ly__cta-buttons--center {
  margin-top: 40px;
}

.page-dai-ly__btn-primary,
.page-dai-ly__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%;
}

.page-dai-ly__btn-primary {
  background: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-dai-ly__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-dai-ly__btn-secondary {
  background: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-dai-ly__btn-secondary:hover {
  background: #f0f0f0;
  color: #005a2b;
  border-color: #005a2b;
}

/* Benefits Section */
.page-dai-ly__benefits-section {
  padding: 60px 0;
  background: #f9f9f9;
}

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

.page-dai-ly__benefit-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-dai-ly__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-dai-ly__benefit-icon {
  width: 100%;
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* How It Works Section */
.page-dai-ly__how-it-works-section {
  padding: 60px 0;
  background: #017439;
  color: #ffffff;
}

.page-dai-ly__how-it-works-section .page-dai-ly__section-title,
.page-dai-ly__how-it-works-section .page-dai-ly__section-description {
  color: #ffffff;
}

.page-dai-ly__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-dai-ly__step-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-dai-ly__step-number {
  font-size: 48px;
  font-weight: 800;
  color: #FFFF00; /* Custom font color */
  margin-bottom: 15px;
  line-height: 1;
}

.page-dai-ly__step-card .page-dai-ly__card-title {
  color: #ffffff;
}

.page-dai-ly__step-card .page-dai-ly__card-text {
  color: #f0f0f0;
}

/* Commission Section */
.page-dai-ly__commission-section {
  padding: 60px 0;
  background: #ffffff;
}

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

.page-dai-ly__commission-tier {
  background: #f0fdf5;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #e0ffe0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-dai-ly__tier-title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

.page-dai-ly__tier-rate {
  font-size: 36px;
  font-weight: 800;
  color: #C30808; /* Custom color for emphasis */
  margin-bottom: 10px;
}

.page-dai-ly__tier-condition {
  font-size: 16px;
  color: #666666;
}

.page-dai-ly__commission-note {
  text-align: center;
  font-style: italic;
  color: #777777;
  margin-top: 40px;
  font-size: 15px;
}

/* Support Section */
.page-dai-ly__support-section {
  padding: 60px 0;
  background: #017439;
  color: #ffffff;
}

.page-dai-ly__support-section .page-dai-ly__section-title,
.page-dai-ly__support-section .page-dai-ly__section-description {
  color: #ffffff;
}

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

.page-dai-ly__support-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-dai-ly__support-item .page-dai-ly__card-title {
  color: #ffffff;
}

.page-dai-ly__support-item .page-dai-ly__card-text {
  color: #f0f0f0;
}

.page-dai-ly__support-icon {
  width: 100%;
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-dai-ly__faq-section {
  padding: 60px 0;
  background: #f9f9f9;
}

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

details.page-dai-ly__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-dai-ly__faq-item summary.page-dai-ly__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-dai-ly__faq-item summary.page-dai-ly__faq-question::-webkit-details-marker {
  display: none;
}
details.page-dai-ly__faq-item summary.page-dai-ly__faq-question:hover {
  background: #f5f5f5;
}
.page-dai-ly__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-dai-ly__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}
details[open].page-dai-ly__faq-item .page-dai-ly__faq-toggle {
  transform: rotate(45deg);
}
details.page-dai-ly__faq-item .page-dai-ly__faq-answer {
  padding: 0 20px 20px;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
  color: #555555;
  font-size: 16px;
}
details.page-dai-ly__faq-item .page-dai-ly__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* CTA Bottom Section */
.page-dai-ly__cta-bottom-section {
  padding: 60px 0;
  background: #017439;
  color: #ffffff;
  text-align: center;
}

.page-dai-ly__cta-bottom-section .page-dai-ly__section-title,
.page-dai-ly__cta-bottom-section .page-dai-ly__section-description {
  color: #ffffff;
}

/* SEO Content Section */
.page-dai-ly__seo-content {
  padding: 60px 0;
  background: #f9f9f9;
}

.page-dai-ly__article-body {
  max-width: 900px;
  margin: 40px auto 0;
  font-size: 17px;
  line-height: 1.7;
  color: #333333;
}

.page-dai-ly__article-body h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-dai-ly__article-body p {
  margin-bottom: 1em;
}

.page-dai-ly__article-body ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-dai-ly__article-body li {
  margin-bottom: 0.5em;
  color: #444444;
}

.page-dai-ly__article-figure {
  margin: 30px 0;
  text-align: center;
}

.page-dai-ly__article-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-dai-ly__image-caption {
  font-style: italic;
  font-size: 15px;
  color: #777777;
  margin-top: 10px;
}

/* General image styles */
.page-dai-ly img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-dai-ly__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-dai-ly__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }
  .page-dai-ly__intro-text {
    font-size: clamp(16px, 2vw, 20px);
  }
  .page-dai-ly__btn-primary, .page-dai-ly__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-dai-ly__benefits-grid, .page-dai-ly__steps-grid, .page-dai-ly__commission-details, .page-dai-ly__support-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* 1. HERO 主图区域 */
  .page-dai-ly__hero-section {
    padding-top: 10px; /* Small top padding */
    margin-bottom: 20px;
  }
  .page-dai-ly__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
  .page-dai-ly__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
    border-radius: 8px;
  }
  .page-dai-ly__main-title {
    font-size: clamp(26px, 8vw, 38px) !important;
    margin-bottom: 15px;
  }
  .page-dai-ly__intro-text {
    font-size: clamp(15px, 4vw, 18px) !important;
    margin-bottom: 25px;
  }

  /* 2. 产品展示图区域 (General content grid adaptation) */
  .page-dai-ly__benefits-grid, .page-dai-ly__steps-grid, .page-dai-ly__commission-details, .page-dai-ly__support-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    overflow-x: hidden;
  }
  .page-dai-ly__benefit-card, .page-dai-ly__step-card, .page-dai-ly__commission-tier, .page-dai-ly__support-item {
    padding: 20px;
  }

  /* 3. 装饰主标题 + 长文 SEO 区 */
  .page-dai-ly__section-title {
    font-size: clamp(24px, 7vw, 36px) !important;
    margin-bottom: 15px;
  }
  .page-dai-ly__section-description {
    font-size: clamp(15px, 4vw, 18px) !important;
    margin-bottom: 30px;
    padding: 0 10px;
  }
  .page-dai-ly__article-body {
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-top: 20px;
    padding: 0 10px;
  }
  .page-dai-ly__article-body h3 {
    font-size: clamp(20px, 5vw, 28px) !important;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-dai-ly__article-figure {
    margin: 20px 0;
  }
  .page-dai-ly__article-image {
    width: 100% !important;
    height: auto !important;
  }
  .page-dai-ly__image-caption {
    font-size: 14px !important;
  }

  /* 4. 通用图片与容器 */
  .page-dai-ly img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-dai-ly__container,
  .page-dai-ly__hero-section,
  .page-dai-ly__benefits-section,
  .page-dai-ly__how-it-works-section,
  .page-dai-ly__commission-section,
  .page-dai-ly__support-section,
  .page-dai-ly__faq-section,
  .page-dai-ly__cta-bottom-section,
  .page-dai-ly__seo-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 5. 按钮与按钮容器 */
  .page-dai-ly__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }
  .page-dai-ly__btn-primary,
  .page-dai-ly__btn-secondary,
  .page-dai-ly a[class*="button"],
  .page-dai-ly 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: 12px 20px !important;
    font-size: 16px !important;
  }

  /* FAQ specific mobile styles */
  details.page-dai-ly__faq-item summary.page-dai-ly__faq-question { padding: 15px; }
  .page-dai-ly__faq-qtext { font-size: 15px; }
  details.page-dai-ly__faq-item .page-dai-ly__faq-answer { padding: 0 15px 15px; }

  /* Ensure no content causes horizontal scroll */
  .page-dai-ly {
    overflow-x: hidden;
  }
}