﻿
/*=============關於幸福_新版===================*/
/*桌機版*/

.page-header {
    text-align: center;
    color: #ff6b6b;
    margin-bottom: 30px;
}

.nav-tabs {
    border-bottom: 0;
}
.nav-tabs .nav-link {
   
    border-color: #dee2e6 #dee2e6 #FDE2DE;
}
    .nav-tabs > li > a {
        color: black;
        border-radius: 5px 5px 0 0;
        padding: 10px;
        border-top: 1px solid #ddd;
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
    }

        .nav-tabs > li > a.active,
        .nav-tabs > li.active > a:hover,
        .nav-tabs > li.active > a:focus {
            background-color: #FDE2DE;
            /*border-color: #ff9999;*/
            color: #333;
            font-weight: bold;
        }

        .nav-tabs > li > a:hover {
            background-color: #ffe0e0;
            border-color: #ffcccc;
        }

.nav-link:hover {
    color: black;
}

.nav-tabs .nav-link.active {
    background-color: #FDE2DE;
    border-color: #dee2e6 #dee2e6 #FDE2DE;
}

.info-panel {
    background-color: rgba(253, 226, 222, 0.5);
    
   
    border-radius: 0 0 10px 10px;
    padding: 30px 20px 30px 20px;
}
#routeTabsContent  > .active {
    display: block;
    width: 100%;
}
#routeTabsContent2  > .active {
    display: block;
    width: 100%;
}
/*.operator-section {
	margin-bottom: 20px;
}*/

.operator-image {
    max-width: 120px;
    height: 120px;
    
}
#routeTabsContent2 .operator-image {
    max-width: 135px;
    height: 135px;
}
.info-item {
    /*margin-bottom: 20px;*/
    /*padding: 15px;*/
    /*background-color: #ffffff;*/
    /*border-left: 4px solid #ff9999;*/
    /*border-radius: 0 5px 5px 0;*/
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
}

.info-label {
    /*font-weight: bold;*/
    color: black;
    margin-bottom: 4px;
    font-size: 16px;
}

.info-value {
    color: #333;
    font-size: 16px;
    line-height: 1.4;
}
#routeTabsContent .info-label-text {
    padding-left: 0px;
    margin-left: -10px;
}
#routeTabsContent2 .info-label-text {
    padding-left: 0px;
    margin-left: -15px;
}
.phone-number {
    color: #007bff;
    font-weight: bold;
    font-size: 18px;
}

.address {
    color: #28a745;
    font-weight: 500;
}

.service-hours {
    color: #dc3545;
    font-weight: bold;
}

.action-buttons {
    margin-top: 30px;
    text-align: center;
}

.btn-custom {
    margin: 5px;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 25px;
}

@media (max-width: 768px) {
    .nav-tabs > li {
        margin-bottom: -1px;
    }
    
       /* .nav-tabs > li > a {
            border-radius: 5px;
            margin-right: 5px;
        }*/
}

.font-weight-bold {
    font-weight: bold;
}

/* 手機版手風琴整體樣式 */
.mobile-route-accordion {
    border: none;
    box-shadow: none;
}

.mobile-route-accordion .card {
    border: 1px solid #e0e0e0;
    border-radius: 0;
    margin-bottom: 0;
}

    .mobile-route-accordion .card:first-child {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .mobile-route-accordion .card:last-child {
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

/* 手機版卡片標題樣式 */
.mobile-route-accordion .card-header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;   
    padding: 0;
    position: relative;
}

    /* 手機版展開狀態的背景色 */
    .mobile-route-accordion .card-header.mobile-active {
        background-color: #f8d7da; /* 粉色背景 */
    }

/* 手機版按鈕樣式重置 */
.mobile-accordion-button {
    background: none;
    border: none;
    color: #333;
    text-decoration: none;
    padding: 15px 20px;
    width: 100%;
    text-align: center; /* 文字置中 */
    font-weight: 500;
    font-size: 18px;
    position: relative;
    outline: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mobile-accordion-button:hover {
        text-decoration: none;
        color: #333;
        background: none;
    }

    .mobile-accordion-button:focus {
        box-shadow: none;
        outline: none;
    }

    /* 手機版箭頭指示器 - 放在文字旁邊 */
    .mobile-accordion-button::after {
        content: '▲';
        margin-left: 10px; /* 箭頭與文字的間距 */
        transition: transform 0.2s ease;
        font-size: 12px;
        color: #666;
        display: inline-block;
    }

    .mobile-accordion-button.collapsed::after {
        transform: rotate(-180deg);
    }

    /* 手機版展開的按鈕樣式 */
    .mobile-accordion-button:not(.collapsed) {
        color: #333;
        background: none;
    }

/* 手機版內容區域樣式 */
.mobile-route-accordion .card-body {
    padding: 20px;
    background-color: #fff;
}

/* 手機版展開狀態的內容背景 */
.mobile-route-accordion .collapse.show .card-body {
    background-color: #fdf2f2; /* 淡粉色背景 */
}

/* 手機版圖片樣式 */
.mobile-operator-image {
    max-width: 70%;
    height: auto;
    
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 手機版資訊面板樣式 */
.mobile-info-panel {
    padding: 0;
}

.mobile-operator-section {
    margin-bottom: 0;
}
.mobile-info-item {
    width: 80%;
    margin: auto;
    margin-top: 15px;
}
.mobile-info-item .mobile-info-label {
    margin-bottom: 12px;
    align-items: flex-start;
}

    .mobile-info-item .mobile-info-label:last-child {
        margin-bottom: 0;
    }

/* 手機版標籤樣式 */
.mobile-info-label .mobile-label-title {
    color: #555;
    font-size: 18px;
    
    font-weight: bold;
}

.mobile-info-label .mobile-label-content {
    color: gray;
    font-size: 18px;
   
}
.routeTabs2 {   
    font-size: 19px;
    width: 80%;
    margin: auto;
}
/*平版響應式調整*/
@media (max-width: 1180px) {
    #routeTabs2, #routeTabsContent2 {
        display:flex !important;
    }
    #routeTabs, #routeTabsContent {
        display: none !important;        
    }
   
}
@media (max-width: 991px) {
    .routeTabs2 {
        width:100%;
        margin-top:-50px;
    }

  
}
    /* 手機版響應式調整 */
    @media (max-width: 768px) {
        /*.mobile-accordion-button {
        padding: 12px 15px;
        font-size: 15px;
    }*/
        #routeTabs2, #routeTabsContent2 {
            display: none !important;
        }
        #mobileRouteAccordion {
            display: block !important;
        }
        .mobile-accordion-button::after {
            margin-left: 8px;
        }

        .mobile-route-accordion .card-body {
            padding: 15px;
        }

        .mobile-info-label .mobile-label-title {
            margin-bottom: 5px;

        }
    }

