/* Affiliate 落地页移动端适配：仅 @media，不改 PC 默认样式 */

@media (max-width: 1279px) {
  .affiliate-page .aff-hero {
    height: auto;
  }

  .affiliate-page .aff-hero-inner,
  .affiliate-page .aff-section,
  .affiliate-page .aff-why-grid,
  .affiliate-page .aff-steps-inner,
  .affiliate-page .aff-who-head,
  .affiliate-page .aff-faq,
  .affiliate-page .aff-cta,
  .affiliate-page .aff-perk-inner {
    width: calc(100% - 48px);
    max-width: 1208px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .affiliate-page .aff-hero-row {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .affiliate-page .aff-hero-inner {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .affiliate-page .aff-hero-copy h1 {
    font-size: 40px;
    line-height: 52px;
  }

  .affiliate-page .aff-hero-copy > p {
    font-size: 18px;
    line-height: 24px;
  }

  .affiliate-page .aff-hero-visual {
    width: 100%;
  }

  .affiliate-page .aff-hero-visual img {
    width: min(100%, 520px);
    height: auto;
    max-height: 360px;
    object-fit: contain;
    display: block;
    margin-inline: auto;
  }

  .affiliate-page .aff-hero-cta {
    margin-top: 32px;
    flex-wrap: wrap;
  }

  .affiliate-page .aff-perk-bar {
    margin-top: 0;
    height: auto;
  }

  .affiliate-page .aff-perk-inner {
    height: auto;
    flex-wrap: wrap;
    row-gap: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .affiliate-page .aff-perk-inner > div {
    flex: 1 1 45%;
    min-width: 200px;
  }

  .affiliate-page .aff-section,
  .affiliate-page .aff-steps,
  .affiliate-page .aff-who,
  .affiliate-page .aff-faq,
  .affiliate-page .aff-cta {
    margin-top: 80px;
  }

  .affiliate-page .aff-section h1,
  .affiliate-page .aff-steps-inner > h1,
  .affiliate-page .aff-who-head h1,
  .affiliate-page .aff-faq > h1,
  .affiliate-page .aff-cta-copy h1 {
    font-size: 30px;
    line-height: 40px;
  }

  .affiliate-page .aff-why-grid {
    height: auto;
    flex-wrap: wrap;
  }

  .affiliate-page .aff-why-card {
    width: calc(50% - 8px);
    height: auto;
  }

  .affiliate-page .aff-why-card p.h-\[105px\],
  .affiliate-page .aff-why-card .aff-why-desc {
    height: auto;
    min-height: 0;
  }

  .affiliate-page .aff-why-card img {
    width: 100%;
    height: auto;
  }

  .affiliate-page .aff-why-card .aff-why-line {
    right: 0;
  }

  .affiliate-page .aff-steps {
    height: auto;
    padding-bottom: 64px;
  }

  .affiliate-page .aff-steps-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .affiliate-page .aff-steps-grid {
    flex-wrap: wrap;
  }

  .affiliate-page .aff-step-card {
    width: calc(50% - 8px);
  }

  .affiliate-page .aff-step-card:last-child {
    width: 100%;
  }

  .affiliate-page .aff-step-card > img:first-child,
  .affiliate-page .aff-step-card .aff-step-dot {
    width: 100%;
    height: auto;
  }

  .affiliate-page .aff-who-head {
    flex-wrap: wrap;
    gap: 16px;
  }

  .affiliate-page #affiliate-audience-carousel .h-\[470px\] {
    height: auto;
  }

  .affiliate-page #affiliate-audience-carousel .h-\[210px\] {
    height: auto;
    min-height: 180px;
  }

  .affiliate-page #affiliate-audience-carousel .w-\[494px\] {
    width: min(420px, calc(100vw - 48px));
  }

  .affiliate-page #faq-list {
    width: 100%;
  }

  .affiliate-page .aff-cta {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
  }

  .affiliate-page .aff-cta-copy {
    width: 100%;
    height: auto;
    padding: 40px 32px;
  }

  .affiliate-page .aff-cta-visual {
    width: 100%;
  }

  .affiliate-page .aff-cta-visual img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    object-position: center top;
  }
}

@media (max-width: 639px) {
  .affiliate-page .aff-hero-inner,
  .affiliate-page .aff-section,
  .affiliate-page .aff-why-grid,
  .affiliate-page .aff-steps-inner,
  .affiliate-page .aff-who-head,
  .affiliate-page .aff-faq,
  .affiliate-page .aff-cta,
  .affiliate-page .aff-perk-inner {
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .affiliate-page .aff-hero-inner {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .affiliate-page .aff-hero-copy h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .affiliate-page .aff-hero-copy > p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 22px;
  }

  .affiliate-page .aff-hero-visual {
    display: none;
  }

  .affiliate-page .aff-hero-cta {
    margin-top: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .affiliate-page .aff-hero-cta > a,
  .affiliate-page .aff-hero-cta > button {
    width: 100%;
    max-width: none;
  }

  .affiliate-page .aff-perk-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .affiliate-page .aff-perk-inner > div {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .affiliate-page .aff-section,
  .affiliate-page .aff-steps,
  .affiliate-page .aff-who,
  .affiliate-page .aff-faq,
  .affiliate-page .aff-cta {
    margin-top: 56px;
  }

  .affiliate-page .aff-section h1,
  .affiliate-page .aff-steps-inner > h1,
  .affiliate-page .aff-who-head h1,
  .affiliate-page .aff-faq > h1,
  .affiliate-page .aff-cta-copy h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .affiliate-page .aff-section > p,
  .affiliate-page .aff-steps-inner > p,
  .affiliate-page .aff-faq > p,
  .affiliate-page .aff-cta-copy > p {
    font-size: 14px;
    line-height: 20px;
  }

  .affiliate-page .aff-why-grid {
    margin-top: 32px;
    gap: 24px;
  }

  .affiliate-page .aff-why-card {
    width: 100%;
  }

  .affiliate-page .aff-why-card .aff-why-line {
    display: none;
  }

  .affiliate-page .aff-steps {
    margin-top: 56px;
  }

  .affiliate-page .aff-steps-inner > h1 {
    padding-top: 48px;
  }

  .affiliate-page .aff-steps-grid {
    margin-top: 28px;
    flex-direction: column;
    gap: 32px;
  }

  .affiliate-page .aff-step-card,
  .affiliate-page .aff-step-card:last-child {
    width: 100%;
  }

  .affiliate-page .aff-step-card .aff-step-rail {
    display: none;
  }

  .affiliate-page .aff-who-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .affiliate-page .aff-who-head > a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .affiliate-page #affiliate-audience-carousel {
    margin-top: 24px;
  }

  .affiliate-page #affiliate-audience-carousel .w-\[494px\] {
    width: min(320px, calc(100vw - 40px));
  }

  .affiliate-page #affiliate-audience-carousel .h-\[260px\] {
    height: 180px;
  }

  .affiliate-page #affiliate-audience-carousel .p-\[24px\] {
    padding: 16px;
  }

  .affiliate-page #affiliate-audience-carousel h2 {
    font-size: 18px;
    line-height: 24px;
  }

  .affiliate-page #affiliate-audience-carousel p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 20px;
  }

  .affiliate-page .aff-faq {
    margin-top: 72px;
  }

  .affiliate-page #faq-list {
    margin-top: 20px;
    gap: 10px;
  }

  .affiliate-page #faq-list .faq-trigger {
    padding: 20px 16px;
    gap: 12px;
  }

  .affiliate-page #faq-list .faq-trigger span {
    font-size: 15px;
    line-height: 22px;
  }

  .affiliate-page #faq-list .faq-panel {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 20px;
  }

  .affiliate-page #faq-list .faq-panel p {
    font-size: 14px;
    line-height: 20px;
  }

  .affiliate-page .aff-cta {
    margin-top: 72px;
    margin-bottom: 48px;
    border-radius: 12px;
  }

  .affiliate-page .aff-cta-copy {
    padding: 28px 20px;
  }

  .affiliate-page .aff-cta-copy > a {
    width: 100%;
    max-width: none;
  }

  .affiliate-page .aff-cta-visual {
    display: none;
  }
}
