@media screen and (max-width: 1400px) {
    .visit-plan-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 1200px) {
    .service-content-section .feature-service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-content-section .feature-service-cards-swiper.mb {
        flex-direction: column;
        align-items: stretch;
    }

    .service-content-section .feature-service-cards-swiper {
        counter-reset: feature-svc;
        margin-top: 24px;
        padding-bottom: 36px;
        width: 100%;
        overflow: hidden;
    }

    .service-content-section .feature-service-cards-swiper .swiper-slide {
        height: auto;
        box-sizing: border-box;
    }

    .service-content-section .feature-service-cards-swiper .feature-service-item {
        height: 100%;
        min-height: 320px;
        max-height: none;
        aspect-ratio: 4 / 5;
        box-shadow: none !important;
    }

    .service-content-section .feature-service-cards-pagination {
        bottom: 6px !important;
    }

    .service-content-section .feature-service-cards-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: rgba(2, 33, 105, 0.28);
        opacity: 1;
    }

    .service-content-section .feature-service-cards-pagination .swiper-pagination-bullet-active {
        background: var(--orange-color);
    }

    /* 服務對象 - start */
    .service-object-section {
        .bg-icon {
            width: 100px;
            height: 100px;
        }

        .object-item {
            transform: translateY(-6px);
            box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
            border-color: rgba(255, 255, 255, 0.6);

            .object-item__text {
                font-size: 14px;
                padding-top: 6px;
                max-width: 80%;
            }
        }

        .object-item::before {
            opacity: 1;
            transform: scale(1);
        }

        .object-item::after {
            opacity: 1;
            background-color: rgba(2, 33, 105, 0.8);
        }
    }
    /* 服務對象 - end */

      /* 計劃目標 - start */
      .plan-target-section {
        .target-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            margin-top: 12px;
        }

        .target-grid .target-card,
        .target-cards-swiper .target-card {
            min-height: auto;

            &:hover {
                transform: translateY(0);
            }
        }

        .target-grid .target-card-inner,
        .target-cards-swiper .target-card-inner {
            padding: 32px 12px;

            .target-card-icon-placeholder {
                width: 36px;
                height: 36px;
                margin-bottom: 4px;

                img {
                    width: 100%;
                    height: 100%;
                }

                &.heart {
                    img {
                        width: 46px;
                        height: 46px;
                    }
                }
            }

            h3 {
                font-size: 18px;
                margin: 4px 0 !important;
            }

            p {
                font-size: 14px;
            }
        }

        .target-cards-swiper.mb {
            flex-direction: column;
            align-items: stretch;
        }

        .target-cards-swiper {
            margin-top: 12px;
            padding-bottom: 36px;
            width: 100%;
            overflow: hidden;
        }

        .target-cards-swiper .swiper-slide {
            height: auto;
            box-sizing: border-box;
        }

        .target-cards-swiper .target-card {
            height: 100%;
        }

        /* Swiper 內每張卡都是 slide 內唯一子元素，需依 slide 序號還原四色背景 */
        .target-cards-swiper .swiper-slide:nth-child(1) .target-card-bg {
            background: var(--red-color);

            &::before {
                background-image: url(/static/image/1.jpg);
            }
        }

        .target-cards-swiper .swiper-slide:nth-child(2) .target-card-bg {
            background: var(--main-color);

            &::before {
                background-image: url(/static/image/2-1.jpg);
            }
        }

        .target-cards-swiper .swiper-slide:nth-child(3) .target-card-bg {
            background: var(--orange-color);

            &::before {
                background-image: url(/static/image/2-2.jpg);
            }
        }

        .target-cards-swiper .swiper-slide:nth-child(4) .target-card-bg {
            background: var(--deep-blue-color);

            &::before {
                background-image: url(/static/image/3.jpg);
            }
        }

        .target-cards-pagination {
            bottom: 6px !important;
        }

        .target-cards-pagination .swiper-pagination-bullet {
            width: 8px;
            height: 8px;
            background: rgba(2, 33, 105, 0.28);
            opacity: 1;
        }

        .target-cards-pagination .swiper-pagination-bullet-active {
            background: var(--orange-color);
        }
    }
    /* 計劃目標 - end */

    /* 迷思 - start */
    .heat-mistakes-section {
        padding-bottom: 180px;
    }
    /* 迷思 - end */
}

@media screen and (max-width: 1200px) {
    .heat-tips-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .heat-tip-card--wide {
        grid-column: span 2;
    }
    
    .cooling-goals-section {
        padding-bottom: 120px;
    }

    .cooling-goals-section .cooling-goals-swiper.mb {
        flex-direction: column;
        align-items: stretch;
    }

    .cooling-goals-section .cooling-goals-swiper {
        margin-top: 18px;
        padding-bottom: 36px;
        width: 100%;
        overflow: hidden;
    }

    .cooling-goals-section .cooling-goals-swiper .swiper-slide {
        height: auto;
        box-sizing: border-box;
    }

    .cooling-goals-section .cooling-goals-swiper .feature-card {
        height: 100%;
    }

    .cooling-goals-section .cooling-goals-pagination {
        bottom: 6px !important;
    }

    .cooling-goals-section .cooling-goals-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: rgba(2, 33, 105, 0.28);
        opacity: 1;
    }

    .cooling-goals-section .cooling-goals-pagination .swiper-pagination-bullet-active {
        background: var(--orange-color);
    }

    .volunteer-stats-section {
        padding-bottom: 140px;
    } 
}

@media screen and (max-width: 992px) {
    .visit-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-object-section .object-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        margin-top: 20px;
    }

    .heat-mistakes-accordion {
        gap: 20px;
    }
}

@media screen and (max-width: 576px) {
    .visit-plan-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
        padding: 0 16px 12px 16px;
        border-radius: 0;
        border-bottom: 1px solid #eeeeee;

        &:last-child {
            border: none;
            padding-bottom: 0;
        }
    }

    .visit-plan-card__icon {
        margin-bottom: 0;
        width: 40px;
        height: 40px;
    }

    .visit-plan-card::after {
        width: 30px;
        height: 30px;
        left: 8%;
    }

    .heat-tips-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .heat-tip-card--wide {
        grid-column: span 1;
    }

    .heat-mistake-item__header {
        padding: 12px 16px;
    }

    .heat-mistake-item.is-open .heat-mistake-item__body {
        padding: 12px 16px;

        p {
            margin-bottom: 4px;
        }
    }

    .heat-mistake-item__label {
        font-size: 15px;
    }

    /* 迷思 - start */
    .heat-mistakes-section {
        padding-bottom: 120px;
    }
    /* 迷思 - end */
}
