/* 子選單樣式 - 共用 */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-submenu .dropdown-toggle::after {
    transform: rotate(-90deg);
    float: right;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .dropdown-submenu .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        display: none !important;
    }

    .dropdown-submenu .dropdown-menu.show {
        display: block !important;
    }

    .dropdown-submenu .dropdown-menu .dropdown-item {
        padding-left: 2rem;
        background-color: rgba(0,0,0,.05);
    }

    .dropdown-submenu:hover .dropdown-menu {
        display: none;
    }
}

/* 手機版緊急維修按鈕 */
@media (max-width: 768px) {
    .navbar-nav .btn-warning {
        border-radius: 50% !important;
        width: 50px !important;
        height: 50px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.2rem !important;
    }

    .navbar-nav .btn-warning .fas {
        margin-right: 0 !important;
    }

    .navbar-nav .btn-warning {
        text-indent: -9999px;
        position: relative;
    }

    .navbar-nav .btn-warning:before {
        content: "\f095";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-indent: 0;
    }
}

/* 浮動聯絡按鈕 */
.float-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.float-btn-line {
    background: #00C300;
    color: white;
}

.float-btn-fb {
    background: #1877f2;
    color: white;
}

@media (max-width: 768px) {
    .float-buttons {
        bottom: 80px;
        right: 15px;
        z-index: 9999;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .float-btn i {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 480px) {
    .float-buttons {
        bottom: 75px;
        right: 10px;
        z-index: 9999;
    }

    .float-btn {
        width: 45px;
        height: 45px;
    }

    .float-btn i {
        font-size: 1.3rem !important;
    }
}

/* 子頁面共用樣式 */
.service-hero {
    margin-top: 76px;
}

.breadcrumb-section {
    margin-top: 76px;
}

.process-step .step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
}

.service-detail-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}

.model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

.price-info .badge {
    margin-right: 5px;
    font-size: 0.8rem;
}
