/* 移動端工作流程樣式 */
@media screen and (max-width: 1280px) {
    /* 頭部大圖 - start */
    #headerContainer img {
        width: 100%;
    }

    .service-list {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
        margin-top: 16px;
    }

    .service-item {
        width: 100%;
    }
    /* 頭部大圖 - end    */

    /* 我們的服務範圍 - start */
    #areaSection .area-list {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    #areaSection .area-item {   
        width: 100%;
        margin-top: 16px;
        padding: 16px;
    }

    #areaSection .icon-wrapper {
        width: 100%;
        height: auto;
        margin-bottom: 0;
    }

    #areaSection .area-title {
        margin-top: 16px;
        margin-bottom: 4px;
    }

    #areaSection .icon-wrapper .area-icon {
        width: 60px;
        height: 60px;
    }

    .d-item {
        margin-bottom: 0;
    }
    /* 我們的服務範圍 - end */

    /* 我們的服務流程 - start */
    #serviceProcessSection .section-title {
        margin-bottom: 16px;
    }

    .step-item::after {
        /* left: 50%;
        right: auto;
        transform:  rotate(218deg) translateX(-50%) !important;
        top: 100%; */
        display: none;
    }

    .step-item {
        width: 100%;
        margin-top: 16px !important;
    }

    .step-icon {
        margin-bottom: 16px;
    }
    /* 我們的服務流程 - end */

    /* 聯絡我們 - start */
    #contactSection .my-contact {
        padding-left: 40px;
        padding-right: 40px;
    }

    #contactSection .section-description p {
        color: #ffffff;
        text-align: center;
        padding-left: 56px;
        padding-right: 56px;
    }

    #contactSection .my-container {
        padding: 60px 0;
    }

    #contactSection .section-header {
        margin-bottom: 24px;
    }
    
    .section-description {
        margin-bottom: 12px;
    }
    /* 聯絡我們 - end */

    /* 甲醛的危害 - start */
    #formaldehydeDangerSection {
        padding-bottom: 0;
    }
    
    #formaldehydeDangerSection .my-container {
        flex-flow: column-reverse;
    }

    #formaldehydeDangerSection .my-container .right-wrapper {
        padding-left: 0;
    }

    .section-sub-title {
        display: flex;
        justify-content: center;
    }
    /* 甲醛的危害 - end */
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .title-text {
        font-size: 16px;
    }
    
    .title-underline {
        width: 30px;
        margin-left: 10px;
    }
    
    .main-heading {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 30px;
        max-width: 100%;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .step-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }
    
    .step-icon svg {
        width: 45px;
        height: 45px;
    }
    
    .step-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .step-description {
        font-size: 15px;
        max-width: 100%;
        padding: 0 10px;
    }
}

@media screen and (max-width: 768px) {
    #serviceProcessSection {
        padding: 30px 15px;
    }
    
    .main-heading {
        font-size: 28px;
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
    }
    
    .step-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .main-heading {
        font-size: 24px;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
    }
    
    .step-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-description {
        font-size: 13px;
    }
}

/* 移動端服務網格樣式 */
@media screen and (max-width: 1280px) {
    #serviceSection {
        padding: 60px 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        max-width: 100%;
    }
    
    .service-image {
        width: 160px;
        height: 160px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    #serviceSection {
        padding: 40px 15px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-image {
        width: 140px;
        height: 140px;
        border-width: 2px;
    }
    
    .service-title {
        font-size: 15px;
    }
    
    /* 移動端彈跳動畫調整 */
    .service-item:hover .service-image {
        animation: bounce-twice-mobile 0.5s ease-in-out;
    }
    
    @keyframes bounce-twice-mobile {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        25% {
            transform: translateY(-10px) scale(1.03);
        }
        50% {
            transform: translateY(0) scale(1);
        }
        75% {
            transform: translateY(-8px) scale(1.02);
        }
    }
}

@media screen and (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-image {
        width: 180px;
        height: 180px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

/* 觸控設備優化 */
@media (hover: none) and (pointer: coarse) {
    .service-item:active .service-image {
        animation: bounce-twice 0.4s ease-in-out;
        transform: scale(1.02);
    }
    
    .service-item:active .service-image img {
        transform: scale(1.05);
    }
}

/* 移動端服務範圍樣式 */
@media screen and (max-width: 1280px) {
    #areaSection {
        padding: 60px 20px;
    }
    
    .area-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        max-width: 100%;
    }
    
    .area-item {
        padding: 35px 25px 25px;
    }
    
    .icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .area-title {
        font-size: 22px;
    }
    
    .sub-title {
        font-size: 15px;
    }
    
    .d-item {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    #areaSection {
        padding: 40px 15px;
    }
    
    .area-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .area-item {
        padding: 30px 20px 25px;
    }
    
    .icon-wrapper {
        width: 65px;
        height: 65px;
        margin-bottom: 18px;
    }
    
    .area-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .sub-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .d-item {
        font-size: 13px;
    }
    
    .read-more-link {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .area-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .area-item {
        padding: 35px 25px 25px;
    }
    
    .icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .area-title {
        font-size: 22px;
    }
    
    .sub-title {
        font-size: 15px;
    }
    
    .d-item {
        font-size: 14px;
    }
}
