﻿
.application-entrypermit-section {
    height: 100vh; /* 佔滿視窗高度 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 視差滾動效果 */
    color: white;
    position: relative;
    background-attachment: scroll; /* 改為 scroll 避免 iOS 放大 */
}
    .application-entrypermit-section.default {
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/img/pro/application_entrypermit/heading.png');
    }

    .application-entrypermit-section.tpp_img {
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/img/pro/application_entrypermit/tpp_img.jpg');
    }



@supports (-webkit-touch-callout: none) {
    .application-entrypermit-section {
        background-attachment: scroll; /* iOS Safari 專用 */
    }
}




/* 往下滾動按鈕樣式 */
.scroll-down-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}







/* 圖片區塊樣式調整 */
.feature-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


/* 圖片旋轉容器 */
.image-rotation {
    position: relative;
    width: 260px;
    height: 260px;
}

    /* 共用圖片樣式 */
    .image-rotation img {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200px;
        height: auto;
        transform-origin: center;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
        border-radius: 6px;
    }

/* 後面圖片 */
.img-rotation-back {
    transform: translate(-30%, -50%) rotate(10deg);
    z-index: 1;
}

/* 前面圖片（下移一點） */
.img-rotation-front {
    transform: translate(-70%, 0%) rotate(30deg);
    z-index: 2;
}

/* =========================
   📱 md 以下（手機 / 平板）
   ========================= */
@media (max-width: 767.98px) {
    .image-rotation {
        width: 200px;
        height: 200px;
        margin: 0 auto; /* 手機置中 */
    }

        .image-rotation img {
            width: 150px; /* 圖片變小 */
        }
}