/*===首頁index-modal廣告彈出BANNER Start===*/

/* 重置 body 的邊距和內邊距，避免預設空白影響排版 */
body {
    margin: 0;
    padding: 0;
}

/* 當首頁彈出 BANNER 的連結 href="#" 時，游標改成預設箭頭 並且停用點擊事件，避免使用者誤觸無效連結 */
#banner-popup a[href="#"] {
    cursor: default;
    pointer-events: none; /* 停用點擊事件 */
}

/* 彈出遮罩的容器樣式 覆蓋整個視窗，置中顯示內容 半透明黑色背景讓彈窗更突出 */
.banner-popup {
    position: fixed;
    top: 60px; /* 往下偏移60px，避免覆蓋頂部導覽（可依需要調整） */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明黑色遮罩 */
    display: flex;
    justify-content: center; /* 水平置中 */
    align-items: center; /* 垂直置中 */
    z-index: 1000; /* 確保浮在最上層 */
    display: none; /* 預設不顯示，透過 JS 控制顯示 */
    /*backdrop-filter: blur(5px); /* 背景模糊效果，暫時移除 */
    backdrop-filter: none;
}

/* 彈出內容盒子的樣式 白色背景、圓角和白色邊框讓彈窗乾淨且具層次感 */
.banner-content {
    position: relative;
    background: white;
    padding: 8px; /* 內距調整，讓內容不貼邊 */
    border: 1px solid white;
    border-radius: 8px; /* 圓角 */
    text-align: center; /* 文字置中 */
    width: 100%; /* 滿寬 */
    max-width: 600px; /* 最大寬度限制，桌機版適用 */
    box-sizing: border-box; /* 包含邊框和內距在寬度計算 */
    margin: 2px; /* 四周留白 */
}

/* 橫幅圖片的基本樣式 寬度100%，高度自動調整，維持比例 */
.banner {
    width: 100%;
    height: auto;
    display: block; /* 預防 inline 元素間距影響 */
}

/* 輪播區塊容器 相對定位方便子元素絕對定位（如指示條） 隱藏超出容器的圖片區域，避免滾動條 */
.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* 單張輪播圖片 初始隱藏，只有被激活(active)的才顯示 滑鼠游標變成手指，提示可點擊 */
.banner-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

/* 被激活的圖片顯示 */
.banner-slide.active {
    display: block;
}

/* 輪播指示條容器 使用 flex 排版置中，並在指示條間保留間距 */
.indicator-bar {
    display: flex;
    justify-content: center;
    gap: 8px; /* 指示點間距 */
    margin-top: 10px; /* 距離圖片底部 */
    padding-bottom: 5px; /* 底部內距，讓指示條不要太貼底 */
}

/* 單一指示點樣式 長條形狀，圓角，淺灰色背景 漸變過渡，當狀態變更時更柔和 */
.indicator-dot {
    width: 30px;
    height: 15px;
    background-color: #ccc;
    border-radius: 3px;
    transition: background-color 0.3s;
}

/* 當前活躍的指示點 深色背景強調當前位置 */
.indicator-dot.active {
    background-color: #333;
}

/* 關閉按鈕 置於內容框的右上方外側 紅色圓形底，白色叉叉字體*/
.close-banner {
    position: absolute;
    top: -15px; /* 往上超出內容框一點 */
    right: 5px;
    /*transform: translate(-50%, -50%); /* 水平垂直置中(暫時註解) */
    background: red;
    color: white;
    border: 0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 響應式設計 - 大於 600px 小於等於 1200px 的寬度 */
/* 保持最大寬度 600px */
@media (max-width: 1200px) {
    .banner {
        max-width: 600px;
        height: auto;
    }
}

/* 響應式設計 - 小於等於 600px 寬度 */
/* 寬度填滿容器，保持比例高度 */
@media (max-width: 600px) {
    .banner {
        width: 100%;
        height: auto;
    }
    /* 新增行動版縮小彈窗內容框 */
    .banner-content {
        width: 90%;           /* 寬度改成90%，讓兩側有空隙 */
        max-width: 360px;     /* 最大寬度縮小 */
        margin: 10px auto;    /* 上下 10px 間距，水平置中 */
        padding: 12px;        /* 增加內距，讓內容不緊貼邊緣 */
        border-radius: 12px;  /* 圓角稍微加大 */
        box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* 陰影讓層次感更明顯 */
    }
}

/*===首頁index-modal廣告彈出BANNER End===*/


/*===產品頁的內文格式Start===*/
h1.product {
    font-size: 16px;
	color:#800000;
	line-height: 1.5; /* 行高為 1.5 倍字體大小 */
}

h2.product {
    font-size: 16px;
	line-height: 1.5; /* 行高為 1.5 倍字體大小 */
}

/* 桌機版 (寬度大於 768px) */
@media screen and (min-width: 769px) {
    p.product {
        font-size: 16px;
        line-height: 1.5;
    }

    p.product2 {
        font-size: 16px;
        line-height: 1.5;
		text-indent: -16px; /* 使第二行及後面的內容與首行對齊 */		
        padding-left: 16px;
    }	
}

/* 行動版 (寬度小於等於 768px) */
@media screen and (max-width: 768px) {
    p.product {
        font-size: 14px;
        line-height: 1.5;
    }
	
    p.product2 {
        font-size: 14px;
        line-height: 1.5;
        text-indent: -14px; /* 使第二行及後面的內容與首行對齊 */
        padding-left: 14px;
    }		
}
/*===產品頁的內文格式End===*/

/*===首頁footer_r Star===*/
.footer_r {
    display: flex;
    align-items: flex-start; /* 圖標和文字的頂部對齊 */
    padding: 13px 20px 0px 20px; /* 上、右、下、左*/
    margin: 0 auto; /* 如果需要水平居中，可以添加 */
    max-width: 100%; /* 確保容器不會超出父容器寬度 */
    box-sizing: border-box; /* 確保內邊距和邊框包含在總寬度內 */
    line-height: 1.5; /* 增加行高以改善行距 */
}
.footer_r i {
    margin-right: 10px; /* 圖標與文字之間的間距 */
    vertical-align: middle; /* 確保圖標與文字在垂直方向上對齊 */
    font-size: 20px; /* 確保所有圖標大小一致 */
    position: relative; /* 使用相對定位來微調位置 */
}
.footer_r span, .footer_r a {
    display: inline-block; /* 確保文字塊在 `flex` 中正常顯示 */
    vertical-align: top; /* 確保文字垂直對齊 */
}
/*===首頁footer_r End===*/



/*===GO TOP START===*/
/* 加入產品Inquiry列表鍵樣式 */
.desktop-cart {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 10px;
    bottom: 205px; /* 根據需要調整位置 */
    z-index: 1000; /* 確保在頁面上層顯示 */
    color: #ff9800;	
}

.desktop-cart:hover {
    color: #ffa726; /* 根據需求調整 hover 顏色 */
}

/* Top鍵樣式 (桌面版) */
#gotop {
    position: fixed;
    z-index: 90;
    right: 15px;
    bottom: 10px; /* GO TOP 鍵的位置設定 */
    display: none; /* 預設隱藏 */
    width: 50px;
    height: 50px;
    color: #fff;
    background: rgba(43, 82, 154, 0.8);
    line-height: 50px;
    border-radius: 50%;
    transition: all 0.5s;
    text-align: center;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 1);
    font-size: 24px;
}

#gotop:hover {
    color: #fff;
}

/* HOME鍵樣式 (桌面版) */
.desktop-home {
    position: fixed;
    z-index: 90;
    right: 15px;
    bottom: 75px; /* HOME 鍵的位置設定，往上移 */
    display: none; /* 預設隱藏 */
    width: 50px;
    height: 50px;
    color: #fff;
    background: rgba(43, 82, 154, 0.8);
    line-height: 50px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 1);
    font-size: 24px;
    text-decoration: none;
}

.desktop-home:hover {
    color: #fff;
}

/* 客服鍵樣式 (桌面版) */
.desktop-contact {
    position: fixed;
    z-index: 90;
    right: 15px;
    bottom: 140px; /* 客服鍵的位置設定，根據需要調整 */
    display: none; /* 預設隱藏 */
    width: 50px;
    height: 50px;
    color: #fff;
    background: rgba(43, 82, 154, 0.8);
    line-height: 50px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 1);
    font-size: 24px;
    text-decoration: none;
}

.desktop-contact:hover {
    color: #fff;
}

/* 桌面版客服鍵在點擊後不變色 */
.desktop-contact:active,
.desktop-contact:focus {
    color: #fff; /* 設置為正常顏色 */
    background: rgba(43, 82, 154, 0.8); /* 保持背景色不變 */
    outline: none; /* 去掉點擊後的邊框 */
}

/* 行動版 HOME 鍵 */
.home-btn {
    display: inline-block;
    width: 50px; /* 調整寬度 */
    height: 50px; /* 調整高度 */
    color: #fff;
    background: none; /* 去掉背景色 */
    line-height: 50px; /* 調整行高 */
    text-align: center;
    font-size: 28px; /* 調整字體大小 */
    text-decoration: none;
}

/* 行動版 GO TOP 鍵 */
.go-top-btn {
    display: inline-block;
    width: 50px; /* 調整寬度 */
    height: 50px; /* 調整高度 */
    color: #fff;
    background: none; /* 去掉背景色 */
    line-height: 50px; /* 調整行高 */
    text-align: center;
    font-size: 28px; /* 調整字體大小 */
    text-decoration: none;
}

/* 行動版客服鍵 */
.contact-btn {
    display: inline-block;
    width: 50px; /* 調整寬度 */
    height: 50px; /* 調整高度 */
    color: #fff;
    background: none; /* 去掉背景色 */
    line-height: 50px; /* 調整行高 */
    text-align: center;
    font-size: 28px; /* 調整字體大小 */
    text-decoration: none;
}

/* 行動版購物車按鈕 */
.cart-btn {
    display: inline-block;
    width: 50px;
    height: 50px;
    color: #ff9800;
    background: none;
    line-height: 50px;
    text-align: center;
    font-size: 28px;
    position: relative;
}

.cartcount {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

/* 調整行動版按鈕間距及置中 */
@media (max-width: 768px) {
    #gotop {
        display: none; /* 行動版隱藏桌面版 GO TOP 鍵 */
    }

    #home {
        display: none; /* 行動版隱藏桌面版 HOME 鍵 */
    }
	
    .desktop-contact {
        display: none; /* 行動版隱藏桌面版询函鍵 */
    }	
	
    .desktop-cart {
        display: none; /* 行動版隱藏桌面版購物車按鈕 */
    }
	
    .navbar-bottom {
        position: fixed;
        bottom: 0;
        width: 100%;
        background: rgba(43, 82, 154, 0.8);
        z-index: 90;
        display: flex;
        justify-content: space-evenly; /* 平均分布按鈕 */
        align-items: center;
        padding: 5px 0; /* 調整高度 */
    }

    .navbar-bottom .go-top-btn,
    .navbar-bottom .home-btn {
        display: inline-block;
        width: 50px; /* 調整寬度 */
        height: 50px; /* 調整高度 */
        color: #fff;
        background: none; /* 去掉背景色 */
        line-height: 50px; /* 調整行高 */
        text-align: center;
        font-size: 28px; /* 調整字體大小 */
        text-decoration: none;
    }

    .navbar-bottom .go-top-btn:hover,
    .navbar-bottom .home-btn:hover,
    .navbar-bottom .contact-btn	{
        color: #fff;
    }

    .navbar-bottom .go-top-btn:active,
    .navbar-bottom .home-btn:active,
    .navbar-bottom .contact-btn	{
        color: #fff; /* 點擊後顯示顏色保持不變 */
    }
}

/* 隱藏桌面版的行動版 GO TOP 鍵 */
@media (min-width: 769px) {
    .navbar-bottom {
        display: none; /* 桌面版隱藏行動版 GO TOP 鍵 */
    }

    #gotop {
        display: block; /* 桌面版顯示 GO TOP 鍵 */
    }

    #home {
        display: block; /* 桌面版顯示 HOME 鍵 */
    }
	
    .desktop-contact {
        display: block; /* 桌面版顯示询函鍵 */
    }

    .cart-btn {
        display: none; /* 桌面版隱藏行動版購物車按鈕 */
    }
	
}

/* 确保 InquirySection 是在视口内 */
#InquirySection {
    padding: 10px;
}
/*===GO TOP END===*/
