/* 橫幅彈出樣式 */
.banner-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    touch-action: pan-y;
    display: none;
}

/* 彈出內容樣式 */
.banner-content {
    background: white;
    padding: 8px;
    border: 2px solid white;
    border-radius: 8px;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    margin: 2px;
}

/* 關閉按鈕樣式 */
.close-banner {
    position: absolute;
    top: 10px;
    right: 10px;
    background: black;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1010;
}

/* 橫幅圖片樣式 */
.banner {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

@media (max-width: 768px) {
    .banner-content {
        max-width: 98%;
    }
}




/*--------------------------------------------------------------
# 背景顏色輪播文字Start
--------------------------------------------------------------*/
.background-changing-text {
    font-weight: bold;
	color: white; /* 設定文字顏色 */
    /*text-decoration: underline; 文字底線*/
    padding: 4px; /* 增加內邊距以更好顯示背景色 */
    animation: backgroundChange 5s infinite; /* 4秒內循環顏色變化 */
}

@keyframes backgroundChange {
    0% { background-color: #1a558f; }   /* 深藍色 */
    25% { background-color: #bd5669; }  /* 深紅色 */
    50% { background-color: #006400; }  /* 深綠色 */
    75% { background-color: #750464; }  /* 深紫色 */
    100% { background-color: #1a558f; } /* 恢復為第一種顏色 */
}
/*--------------------------------------------------------------
# 背景顏色輪播文字End
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# 會員折扣-文字顏色輪播顏色Start
--------------------------------------------------------------*/
.color-changing-text {
    font-weight: bold;
    animation: colorChange 4s infinite; /* 6秒內完成一次顏色循環 */
}

@keyframes colorChange {
    0%, 33% { color: #800000; }   /* 深紅色 */
    34%, 66% { color: #A9A9A9; }  /* 深銀灰色 */
    67%, 100% { color: #B8860B; } /* 深金色 */
}
/*--------------------------------------------------------------
# 會員折扣-文字顏色輪播顏色End
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# BannerTop-文字顏色輪播顏色Start
--------------------------------------------------------------*/
.color-changing-text2 {
    font-weight: bold;
    animation: colorChange 4s infinite; /* 6秒內完成一次顏色循環 */
}

@keyframes colorChange {
    0%, 33% { color: #8B0000; }   /* 暗紅色 */
    34%, 66% { color: #9400D3; }  /* 紫羅蘭色 */
    67%, 100% { color: #556B2F; } /* 暗橄欖色 */
}
/*--------------------------------------------------------------
# BannerTop-文字顏色輪播顏色End
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# P-雙底線Start
--------------------------------------------------------------*/
 .underline b {
  text-decoration: underline;
  text-decoration-style: double;
}
/*--------------------------------------------------------------
# P-雙底線End
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# a-雙底線Start
--------------------------------------------------------------*/
a.double-underline {
  text-decoration: underline;
  text-decoration-style: double;  
  text-decoration-color: currentColor; /* 動態匹配字體顏色 */
}
/*--------------------------------------------------------------
# a-雙底線End
--------------------------------------------------------------*/
.top_img {
  border-radius: 20px;
  border: 7px solid #ddfcff;
}

.img-fluid2 {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
}