/* 基本圓點樣式 */
.cs-ctrl-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #004AA9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    z-index: 100;
    border: none;
}

.cs-ctrl-dot::before {
    content: "";
    position: absolute;
    background-color: rgba(0, 74, 169, 0.3);
    border: 2px solid #004AA9;
    border-radius: inherit;
    animation: btn-ripple 1.5s ease-in-out infinite;
    inset: -5px;
    pointer-events: none;
    z-index: -1;
}

.cs-ctrl-dot:hover {
    background-color: rgb(0, 100, 200);
    transform: scale(1.3);
}

@keyframes btn-ripple {
    0% {
        opacity: .4;
        transform: scale(.5);
    }
    
    60% {
        opacity: .4;
    }
    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

/* ClassName 導航圓點樣式 */
.cs-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/*==============大區域地圖絕對定位與樣式==============*/
.allMap {
    background-color: #fff;
    position: absolute;
    inset: 0;
    z-index: 999;
}

.allMap .meMsg_MsgImg {
    display: block;
    max-width: 900px;
}

.allMap img {
    max-width: 900px;
}

/*絕對定位*/
.cs-nav-item {
    position: absolute;
}

.cs-nav-item[data-index="0"] {
    top: 22%;
    left: 67%;
}

.cs-nav-item[data-index="1"]{
    top: 50%;
    right: 18%;
}

.cs-nav-item[data-index="2"] {
    top: 26%;
    left: 42%;
}

.cs-nav-item[data-index="3"] {
    top: 40%;
    left: 14%;
}

/*文字樣式*/
.cs-nav-text{
    line-height: 130%;
    font-size: 22px;
    font-weight: bold;
}

.cs-nav-item .cs-nav-text>div:nth-child(2) {
    font-size: 16px;
    text-transform: uppercase;
}


@media (max-width: 768px){
	.cs-nav-text {
	    font-size: 16px;
	}

	.cs-nav-item .cs-nav-text>div:nth-child(2) {
	    display: none;
	}
}




/*=========大區域地圖淡入淡出特效===========*/
.fade-out {
  animation: fadeOut .6s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.fade-in {
  animation: fadeIn .6s ease-in forwards;;
  animation-delay:.6s;
}


@keyframes fadeOut {
  to {
    transform: scale(1.5);  
    opacity: 0;      
  }
}

@keyframes fadeIn {
  from {
    transform: scale(2);    
    opacity: 0;  
  }
  to {
    transform: scale(1); 
    opacity: 1;    
  }
}



/*==============大區域地圖按鈕特效==============*/
.cs-nav-circle {
    width: 28px;
    height: 28px;
    color: #004AA9;
    background-color: currentColor;
    border-radius: 50%;
    transition: transform .4s cubic-bezier(.18,.89,.32,1.27);
    position: relative;
}

.cs-nav-circle::before {
    content: "";
    position: absolute;
    background-color: rgba(0, 74, 169, 0.3);
    border: 2px solid #004AA9;
    border-radius: inherit;
    animation: btn-ripple 1.5s ease-in-out infinite;
    inset: -5px;
    pointer-events: none;
}

.cs-nav-circle::after {
    background:linear-gradient(90deg, transparent, transparent 42%, #90AEDB 0, #90AEDB 58%, transparent 0), 
	 				linear-gradient(180deg, transparent, transparent 42%, #90AEDB 0, #90AEDB 58%, transparent 0);
    inset: 30%;
    position: absolute;
    content: "";
}

/*hover樣式*/
.cs-nav-circle:hover {
    transform: scale(1.3);
    background-color: #4799eb;
}

.cs-nav-circle:hover::after{
	 background:linear-gradient(90deg, transparent, transparent 42%, #fff 0,  #fff 58%, transparent 0), 
	 				linear-gradient(180deg, transparent, transparent 42%, #fff 0,  #fff 58%, transparent 0);
}

.cs-nav-circle:hover::before{
    border: 2px solid #4799eb;
}

@media (max-width: 768px){
	.cs-nav-circle {
	    width: 20px;
	    height: 20px;
	}
	.cs-nav-item {
	    flex-direction: column;
	}




}







/* 回到地圖按鈕 */
.cs-show-map-btn {
    position: absolute;
    top: 40px;
    left: 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    color: #004aa9;
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    flex-direction: row-reverse;
}

.cs-show-map-btn .back-to-map {
    background-color: unset;
    outline: none;
    border: none;
    width: 40px;
    height: 40px;
}

.cs-show-map-btn .back-to-map .arrow{
    display: block;
    width: 0;
    height: 0;
    border-color: transparent rgb(0 74 169) transparent transparent;
    border-style: solid;
    border-width: 6px 8px;
    transition: color .3s ease-in-out;
    transform: translate(-30%);
}


/* 標題列表樣式 */
.cs-ctrl-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cs-ctrl-list-title {
    font-weight: bold;
    color: #004AA9;
}

.cs-ctrl-reset-btn {
    font-size: 10px;
    padding: 2px 6px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    color: #666;
}

.cs-ctrl-reset-btn:hover {
    background-color: #e0e0e0;
}

.cs-ctrl-item-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cs-ctrl-list-item {
    margin: 0 0 20px;
    padding: 4px 6px;
    cursor: pointer;
    border: none;
}

.cs-ctrl-list-item span {
    display: block;
    color: #333;
}

.cs-ctrl-list-item:hover {
    background-color: #e3f2fd;
}

/*.cs-ctrl-list-item.highlighted {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
}*/

/* 輪播箭頭樣式 */
.cs-carousel-arrow {
    cursor: pointer; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
	 width: 64px;
    height: 64px;
    padding: 0;
    overflow: hidden;
    font-size: 16px;
    color: #f08728;
}

.cs-carousel-arrow::before,
.cs-carousel-arrow::after {
    position: absolute;
    z-index: -1;
    content: "";
    inset: 0;
}

.cs-carousel-arrow::before {
    border: 1px solid rgb(0 74 169);
    border-radius: 50%;
    z-index: 2;
}

.CsMap .cs-carousel-right .arrow {
    display: block;
    width: 0;
    height: 0;
    border-color: transparent transparent transparent rgb(0 74 169);
    border-style: solid;
    border-width: 8px 10px;
    transition: color .3s ease-in-out;
    transform: translate(30%);
}

.CsMap .cs-carousel-left .arrow {
	 display: block;
    width: 0;
    height: 0;
    border-color: transparent rgb(0 74 169) transparent transparent;
    border-style: solid;
    border-width: .4375em 0 .4375em .625em;
    transition: color .3s ease-in-out;
    font-size: 16px;
    border-width: 8px 10px;
    transform: translateX(-30%);
}

.cs-carousel-arrow::after {
    background-color: rgb(0 74 169);
    transition: transform .3s ease-in-out;
    transform: translateX(-100%);
    z-index: 3;
}

@media (hover: hover) {
    .cs-carousel-arrow:hover:after {
        transform: translateX(0);
    }

	 .back-to-map.cs-carousel-arrow:hover .arrow{
	    border-color: transparent #fff transparent transparent;
		 z-index: 4;
	}

	.cs-carousel-left:hover .arrow {
	    border-color: transparent #fff transparent transparent;
       z-index: 4;
	}

	.cs-carousel-right:hover .arrow {
	    border-color: transparent transparent transparent #fff;
       z-index: 4;
	}

}



/* 輪播容器樣式 */
.cs-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 400px;
}

/* 禁用連結樣式 */
.cs-link-disabled {
    cursor: default !important;
    text-decoration: none !important;
    pointer-events: none !important;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .cs-nav-item {
        padding: 6px 10px;
        gap: 6px;
    }
    

    .cs-show-map-btn {
        top: 0;
        left: 0;
        padding: 0;
        font-size: 16px;
    }

    .cs-ctrl-title-list {
        font-size: 16px;
        padding: 8px;
    }

    .cs-carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .cs-nav-item {
        padding: 5px 8px;
        gap: 5px;
    }
   
} 


/*=========點擊控制點時轉場效果==========*/
.slide-out{
	animation: slideOut 500ms ease forwards;
	
}

.slide-in {
  animation: slideIn 500ms ease forwards;
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateY(100px);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*=========prdinfo箭頭==========*/
.cs-ctrl-list-item span::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #004aa9;
}

/*=========輪播箭頭容器高度問題==========*/
.cs-carousel-arrow-container {
    height: 500px;
    display: flex;
    align-items: center;
    position: absolute;
	 top: 100px;
}

.cs-carousel-arrow-container.cs-carousel-arrow-container-right{
	right:0;
}


/*=========RWD調整==========*/
@media (max-width: 768px){
    #id_ContentTop_2 {
		padding: 0 20px;
	}

	.CsMap{
	    grid-template-columns: unset;
	}

/*	.cs-carousel-arrow.cs-carousel-left {
	    position: absolute;
	    top: 40%;
	}
	.cs-carousel-arrow.cs-carousel-right {
	    position: absolute;
	    top: 40%;
	    right: 0;
	}*/

}