/* 移動端工作流程樣式 */
@media screen and (max-width: 1400px) {
    /* 頭部大圖 - 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 */

    .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 */
    #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 */
    
    .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;
    }

    .special-icon {
        border-radius: 12px;
    }

    .promo-action {
        gap: 8px;
    }

    .promotion-section {
        padding:0;
        border: none
    }

    .promotion-header {
        margin-bottom: 16px;
    }

    .promotion-card-header {
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 4px;
        gap: 6px;
    }

    .promotion-features {
        justify-content: center;
    }

    .floor-title {
        margin-bottom: 6px;
    }

    .floor-header {
        margin-bottom: 8px !important;
    }

    .floor-tier {
        display: flex;
        flex-flow: row;
        align-items: center;
        justify-content: space-between;
    }

    .floor-pricing { 
        margin-bottom: 16px;
    }

    .floor-polishing .included-services {
        margin-top: 0;
        padding: 16px;
    }

    .floor-polishing .included-title {
        font-size: 16px;
        margin-bottom: 0;
    }

    .floor-polishing .included-header {
        margin-bottom: 12px;
    }

    .floor-polishing .included-list {
        gap: 8px;
    }

    .floor-polishing .feature-item {
        padding: 8px 12px;
        bottom: 0;
        border-radius: 8px;
    }

    .tips-wrapper {
        padding-top: 0;
        margin-top: 0;
    }

    .panel-title {
        margin-bottom: 0;
    }

    .panel-header {
        padding-bottom: 16px;
        margin-bottom: 0;
    }

    .terms-text {
        gap: 4px;
    }

    .floor-polishing {
        box-shadow: none;
    }

    #areaSection .service-item {
        box-shadow: none;
    }

    .disclaimer-text {
        font-size: 12px;
    }

    .panel-body {
        gap: 12px;
    }

    .terms-item {
        margin-bottom: 0;
    }

    .disclaimer-list {
        width: 100%;
    }

    .disclaimer-content {
        padding: 0;
    }

    .disclaimer-item {
        margin-bottom: 0;
    }

    .service-card {
        box-shadow: none;
    }
    
    .promo-card {
        background-color: #ffffff;
    }

    .promo-section .philosophy-bg-decoration {
        display: none;
    }
}



@media screen and (max-width: 768px) {
    #serviceProcessSection {
        padding: 40px 0;
    }
    
    .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;
    }

    #serviceProcessSection .container {
        padding: 0 16px;
    } 

    .step-item {
        padding: 20px 16px;
        border: 1px solid #eeeeee;
        border-radius: 12px;
        margin-top: 0 !important;
        background-color: #ffffff;
    }

    .step-icon {
        border: none;
    }

    .process-steps {
        gap: 16px;
    }

    #areaSection .service-details li {
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 4px;
        font-size: 14px;
    }

    #areaSection .service-details li::before {
        top: -3px;
    }

    #areaSection .service-item:hover,
    .service-card.special-card:hover {
        box-shadow: none;
    }

    #areaSection .services-grid {
        gap: 16px;
    }
    
    #areaSection .service-icon {
        width: 70px;
        height: 70px;
    }

    .promotion-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .pricing-badge {
        padding: 4px 12px;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .area-limit {
        font-size: 18px;
    }

    .pricing-info {
        gap: 0px;
    }

    .price-range {
        font-size: 20px;
    }

    .pricing-grid {
        gap: 16px;
    }

    .pricing-card,
    .pricing-card:hover {
        box-shadow: none;
    }

    .promo-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .promo-content {
        gap: 8px !important;
    }

    .promotion-icon {
        width: 40px;
        height: 40px;
    } 

    .promotion-icon svg {
        width: 20px;
        height: 20px;
    }

    .promotion-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 12px;
    }

    .promotion-card::before {
        width: 3px;
        height: 100%;
        top: 0;
        left: 0;
    }

    .promotion-card-header {
        display: flex;
        flex-flow: row;
        align-items: center;
        margin-bottom: 0;
    }

    .promotion-card-content {
        gap: 12px;
        display: flex;
        flex-flow: row;
        align-items: center;
    }
}

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

    .promotion-price {
        font-size: 18px;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    #serviceSection {
        padding: 40px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .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-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;
    }
}

/* 價格和促銷區域移動端適配 */
@media screen and (max-width: 1200px) {
    .pricing-terms-section {
        padding: 80px 20px;
    }
    
    .pricing-content {
        gap: 40px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 24px;
    }
    
    .promotion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .promotion-card {
        padding: 20px;
    }
    
    .floor-polishing {
        padding: 32px;
    }
    
    .floor-pricing {
        flex-direction: column;
        gap: 16px;
    }
    
    .floor-tier {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
    }
}

@media screen and (max-width: 768px) {
    .pricing-terms-section {
        padding: 60px 15px;
    }
    
    .pricing-content {
        gap: 32px;
    }
    
    .pricing-card {
        padding: 20px;
    }
    
    .promotion-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .promotion-card {
        padding: 16px;
    }
    
    .promotion-card-title {
        font-size: 18px;
    }
    
    .promotion-price {
        font-size: 20px;
    }
    
    .feature-tag {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .floor-polishing {
        padding: 24px;
    }
    
    .floor-header {
        text-align: center;
        margin-bottom: 24px;
    }
    
    .floor-title {
        font-size: 24px;
    }
    
    .floor-subtitle {
        font-size: 16px;
    }
    
    .floor-pricing {
        gap: 12px;
    }
    
    .tier-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .tier-range {
        font-size: 16px;
    }
    
    .tier-price {
        font-size: 18px;
    }
    
    .included-services {
        padding: 20px;
    }
    
    .included-header {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .included-title {
        font-size: 18px;
    }
    
    .included-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .feature-number {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .tips-wrapper .tip {
        font-size: 12px;
        margin-bottom: 0px;
    }

    .terms-accordion {
        margin-top: 0;
    }
}

@media screen and (max-width: 480px) {
    .pricing-terms-section {
        padding: 40px 10px;
    }
    
    .pricing-content {
        gap: 24px;
    }
    
    .pricing-card {
        padding: 16px;
    }
    
    .promotion-card {
        padding: 12px;
    }
    
    .promotion-card-title {
        font-size: 16px;
    }
    
    .promotion-price {
        font-size: 18px;
    }
    
    .floor-polishing {
        padding: 16px;
    }
    
    .floor-title {
        font-size: 20px;
    }
    
    .floor-subtitle {
        font-size: 14px;
    }
    
    .floor-tier {
        padding: 12px;
    }
    
    .tier-range {
        font-size: 14px;
    }
    
    .tier-price {
        font-size: 16px;
    }
    
    .included-services {
        padding: 16px;
    }
    
    .included-title {
        font-size: 16px;
    }
    
    .feature-item {
        padding: 10px;
    }
    
    .feature-number {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

/* 服務條款區域移動端適配 */
@media screen and (max-width: 1200px) {
    
    .terms-tab {
        padding: 16px 20px;
        text-align: center;
    }
    
    .terms-panel {
        padding: 24px;
    }
    
    .panel-title {
        font-size: 24px;
    }
    
    .panel-subtitle {
        font-size: 16px;
    }
    
    .terms-icon {
        width: 32px;
        height: 32px;
    }
    
    .terms-main {
        font-size: 16px;
    }
    
    .terms-note {
        font-size: 14px;
    }
    
    .disclaimer-list {
        gap: 12px;
    }
    
    .disclaimer-item {
        padding: 16px;
    }
    
    .disclaimer-number {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .disclaimer-content p {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    
    .terms-tab {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .terms-panel {
        padding: 20px;
    }
    
    .panel-title {
        font-size: 20px;
    }
    
    .panel-subtitle {
        font-size: 14px;
    }
    
    .terms-icon {
        width: 28px;
        height: 28px;
    }
    
    .disclaimer-list {
        gap: 10px;
    }
    
    .disclaimer-number {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    
    .terms-tab {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .terms-panel {
        padding: 16px;
    }
    
    .panel-title {
        font-size: 18px;
    }
    
    .panel-subtitle {
        font-size: 12px;
    }
    
    .terms-icon {
        width: 24px;
        height: 24px;
    }
    
    .disclaimer-list {
        gap: 8px;
    }
}

/* 促銷廣告區域移動端適配 */
@media screen and (max-width: 1200px) {
    .promo-section {
        padding: 60px 20px;
    }
    
    .promo-card {
        padding: 40px 30px;
        margin: 0;
    }
    
    .promo-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .promo-action {
        align-items: center;
    }
    
    .price-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .original-price {
        font-size: 16px;
    }
    
    .current-price {
        font-size: 24px;
    }
    
    .promo-button {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .promo-section {
        padding: 40px 15px;
    }
    
    .promo-card {
        padding: 30px 20px;
    }
    
    .promo-content {
        gap: 24px;
    }
    
    .promo-title {
        font-size: 24px;
    }
    
    .promo-description {
        font-size: 16px;
    }
    
    .original-price {
        font-size: 14px;
    }
    
    .current-price {
        font-size: 20px;
    }
    
    .promo-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .promo-section {
        padding: 30px 10px;
    }
    
    .promo-card {
        padding: 20px 15px;
    }
    
    .promo-content {
        gap: 20px;
    }
    
    .promo-title {
        font-size: 20px;
    }
    
    .promo-description {
        font-size: 14px;
    }
    
    .current-price {
        font-size: 18px;
    }
    
    .promo-button {
        padding: 8px 16px;
    }
}

/* 移动端触摸和滚动优化 */
@media screen and (max-width: 1024px) {
    /* 触摸区域优化 */
    .service-card,
    .service-item,
    .step-item,
    .promotion-card,
    .floor-tier,
    .terms-tab,
    .promo-button {
        min-height: 44px;
        touch-action: manipulation;
        cursor: pointer;
    }
    
    /* 滚动优化 */
    .pricing-terms-section,
    .promo-section,
    .services-section,
    #serviceProcessSection,
    #areaSection {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 防止水平滚动 */
    .container,
    .pricing-content,
    .services-grid,
    .promotion-grid,
    .floor-pricing,
    .terms-accordion {
        overflow-x: hidden;
    }
}

/* 移动端特殊交互效果 */
@media screen and (max-width: 768px) {
    /* 服务卡片点击效果 */
    .service-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* 促销卡片点击效果 */
    .promotion-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* 服务流程步骤点击效果 */
    .step-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* 价格卡片点击效果 */
    .pricing-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* 地板抛光价格层级点击效果 */
    .floor-tier:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* 服务条款标签页点击效果 */
    .terms-tab:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* 促销按钮点击效果 */
    .promo-button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* 移动端字体大小优化 */
@media screen and (max-width: 480px) {
    /* 确保最小可读字体大小 */
    .service-content h3,
    .step-title,
    .area-title,
    .floor-title,
    .panel-title {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .service-item p,
    .step-description,
    .area-subtitle,
    .tier-range,
    .panel-subtitle {
        font-size: 14px;
        line-height: 24px;
    }
}

/* 移动端间距优化 */
@media screen and (max-width: 768px) {
    /* 减少不必要的间距 */
    .services-section,
    .pricing-terms-section,
    .promo-section {
        padding: 40px 0;
    }
    
    .services-grid,
    .promotion-grid,
    .floor-pricing {
        gap: 16px;
    }
    
    .pricing-content {
        gap: 24px;
    }
}

@media screen and (max-width: 480px) {
    
    .services-grid,
    .promotion-grid,
    .floor-pricing {
        gap: 12px;
    }
    
    .pricing-content {
        gap: 20px;
    }
}

/* 移动端图片优化 */
@media screen and (max-width: 768px) {
    .service-image img {
        object-fit: cover;
        object-position: center;
    }
    
    /* 减少图片加载对性能的影响 */
    .service-image {
        background-color: #f5f5f5;
    }
}

/* 移动端动画优化 */
@media screen and (max-width: 768px) {
    /* 减少动画以提高性能 */
    .service-card:hover,
    .service-item:hover,
    .step-item:hover,
    .promotion-card:hover,
    .floor-tier:hover,
    .terms-tab:hover {
        transform: none;
        transition: none;
    }
    
    /* 保留必要的动画 */
    .service-card:active,
    .service-item:active,
    .step-item:active,
    .promotion-card:active,
    .floor-tier:active,
    .terms-tab:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* 移动端表格和列表优化 */
@media screen and (max-width: 768px) {
    /* 服务详情列表优化 */
    .service-details {
        padding: 0;
        margin: 0;
    }
    
    .service-details li {
        padding: 4px 0;
        margin-bottom: 4px;
    }
    
    /* 条款列表优化 */
    .disclaimer-list {
        padding: 0;
        margin: 0;
    }
    
    /* 包含服务列表优化 */
    .included-features {
        padding: 0;
        margin: 0;
    }
    
    .feature-item {
        margin-bottom: 8px;
    }
}