/*---Reset CSS---*/
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	text-decoration: none;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;font-family:Arial, Helvetica, "微軟正黑體",sans-serif; 
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
img{
	display: block;
}
/* 註解全域特效，避免網頁標題或不該互動的圖片跟著縮放 */
/*
img:hover{
	transform: scale(1.01);
	filter: brightness(1.08) contrast(100%);
}
*/
*{
	box-sizing: border-box;
}

/*========== 新增：平滑捲動與錨點偏移 ==========*/
html {
    scroll-behavior: smooth;
}
article {
    scroll-margin-top: 70px; 
}

/*========== 新增：精準控制商品圖懸停效果 ==========*/
/* .main a img, */
/* .main_s a img, */
.sale_content a img,
.sale_content .div img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

/*.main a:hover img, */
/*.main_s a:hover img, */
.sale_content a:hover img,
.sale_content .div:hover img {
    transform: scale(1.00); 
    filter: brightness(0.9) contrast(90%); 
}

/* 確保網頁標題區內的圖片不會產生變形與濾鏡效果 */
section .title_msg img {
    transform: none !important;
    filter: none !important;
}

/*==========電腦版==========*/
body{
	/*background-image: url(images/ad_bg.jpg);*/
	background-color: #74aadd;
	background-size: contain;
	background-position:top center;
	background-repeat: repeat-y;
	/* background-color: #1a0406; */
}

.notice{
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.8);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
}

.notice div{
	width: 500px;
	position: absolute;
	top: 10vh;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}

.notice div ul{
	position: relative;
}

.notice div ul li button{
	width: 50px;
	height: 50px;
	color: #333;
	font-size: 2rem;
	line-height: 50px;
	background: #fff;
	border-radius: 50%;
	position: absolute;
	top: -20px;
	right: -15px;
	cursor: pointer;
}

.notice div ul li img{
	width: 100%;
}

/*---最外圍 背景---*/
.all{
	width: 100%;
	height: 0;
	padding-bottom: 65%;/*背景圖寬高比例*/
	/*background-image: url(images/ad_bg.jpg);*/
	background-color: #74aadd;
	background-repeat: repeat-y;
	background-size: contain;
	background-position:center top;
}

.all div.tag_1{
width: 14vw;
position: absolute;
top: 2vw;
right: 6vw;
z-index: 888;
border-radius: 15px;
overflow: hidden;
}

.all a.tag_2{
width: 10vw;
position: absolute;
top: 27.5vw;
right: 9vw;
z-index: 888;
}

.all div.tag_1 img,.all a.tag_2 img{
width: 100%;
border-radius: 15px;
box-shadow: 0 5px 5px rgba(0,0,0,0.5);
}

.wrapper{
	width: 90%;
	margin: 0 auto;
	position: relative;
}

.wrapper .ad{
	width:100%;
	height: auto;
}

.ad header{
	width: 100%;
	height: 70px;
	position: relative;
}

.wrapper h1{
	width:100%;
	color: #fff;
	font-size: 2em;
	font-weight: bold;
	text-align: center;
	background: #B52632;
	padding: 15px 0;
	/* margin-bottom: 20px; */
}

.wrapper h1 span{
	color: #ff6;
}

.wrapper h1 span:last-child{
	color: #fff;
	font-size: 1rem;
	margin-left: 10px;
}

/*浮動視窗*/
.floating-img {
    /* 核心設定：固定在視窗上 */
	position: fixed;
	right: 5%;
    top: 70%;
    /* 位置設定：靠右上角 */
    /*top: 10;        /* 距離上方 0 像素，若想留點空隙可改為 20px */
    /*right: 10;      /* 距離右側 0 像素，若想留點空隙可改為 20px */
    /* 尺寸設定：*/
    width: 208px;
    height: 300px;
    border-radius: 12px; /* 導R角 */
    /* 確保圖片浮在所有網頁內容的最上層，不會被遮擋 */
    z-index: 9999;
}

/* 關閉按鈕：定位在外框的右上角 */
.close-btn {
    position: absolute;
    top: -10px;   /* 負值可以讓按鈕稍微突出版面，比較好點擊 */
    right: -10px;
    background-color: #ff4d4d; /* 紅色背景 */
    color: white; /* 白色叉叉 */
    border: none;
    border-radius: 50%; /* 變成圓形 */
    width: 30px;
    height: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer; /* 滑鼠移過去變手指圖案 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    
    /* 讓叉叉完美置中 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 2px; /* 微調叉叉的視覺中心 */
}

/*浮動視窗結束*/

/*主視覺*/
.main{
	width: 100%;
	height: auto;
	font-size: 0;
	/* margin-bottom: 10px; */	
}

.main a{
	display: inline-block;
	width: 33.33%;
}

.main a:last-child{
	display: block;
	width: 100%;
}

.main a img{
	width: 100%;
}

.main_s{
	display: none;
	width: 100%;
	height: auto;
}

.main_s img{
	width: 100%;
	height: auto;
}

/*返回選單*/
.back{
	width: 60px;
	height: 60px;
	position: fixed;
	right: 10px;
	bottom: 10px;
	z-index: 99;
}
	
.back a{
	display: block;
	width: 60px;
	height: 60px;
	text-align: center;
	text-decoration: none;
	line-height: 54px;
	font-size: 34px;
	color: #fff5e1;
	background-color: #00923a;
	border-radius: 50%;
}
	
/* .back a:hover{
	font-size: 40px;
	color: #ff6;
	background-color: #3171b8;
} */

/*選單*/

.menu{
/*	z-index: 99;*/
}
nav{
	width: 100%;
	height: auto;
	overflow: hidden;
}

nav ul{
	margin-left: 1px;
}

nav ul li{
	float: left;
	width: 12.5%;
	text-align: center;
	border-left: 1px rgba(255,255,255,0.38) solid;
	border-right: 1px rgba(0,0,0,0.20) solid;
}

nav ul li:hover{
	border-left: 1px rgba(0,0,0,0.20) solid;
	border-right: 1px rgba(255,255,255,0.70) solid;
}

nav ul li a{
	display: block;
	width: 100%;
	height: auto;
	color: #ffffff;
    /* font-size: 1.5em; ← 註解或刪除原本固定的寫法 */
    font-size: min(1.5em, 1.5vw); /* 新增：最大維持 1.5em，螢幕變窄時改以 1.5vw 自動縮小 */
    line-height: 2.8;
    background-color: #d88f06;
    letter-spacing: 0.1em;
    white-space: nowrap; /* 新增：強制文字不換行 */
}

nav ul li a:hover{
	font-weight: bold;
	background-color: #e6cb76;
}

/*商品內容區標頭*/
article h5{
	display: block;
	clear: both;
	width: 100%;
	margin: 0 auto;
	height: auto;
	font-weight: bold;
	font-size: 2.5em;
	text-align: center;
	padding: 15px 0;
	color: #ffffff;
/*	letter-spacing: 1em;*/
	background-color: #ffffff;
}

article h5.gift_520 ul{
	font-size: 0;
}

article h5.gift_520 ul li{
	display: inline-block;
	font-size: 2.5rem;
	margin-right: 10px;
	vertical-align: top;
}

article h5.gift_520 ul li:first-child span{
	display: inline-block;
	width: 50px;
	height: 50px;
	color: #a0a0cf;
	line-height: 50px;
	background: #fbe8dd;
	border-radius: 50%;
	margin: 0 10px;
}

article h5.gift_520 ul li:first-child span:first-child{
	background: #f6f5cf;
}

article h5.gift_520 ul li:last-child span{
	display: block;
	height: 45px;
	font-size: 1rem;
	margin-top: -25px;
}

article h5 > span{
	/* display: inline-block; */
	font-size: 2rem;
}

article h5 > span span{
	font-size: 1rem;
	margin-left: 5px;
}

/*支付*/
.PAY{
	clear: both;
	width: 100%;
	height: auto;
	margin: 0 auto;
}

.PAY aside{
	width: 90%;
	height: auto;
}

.PAY h3{
	width: 60%;
	float: left;
	font-size: 1.6em;
	font-weight: bold;
	letter-spacing: 0.3em;
	color: #ffffff;
	line-height: 60px;
	text-indent: 2em;
	text-align: right;
}

.PAY a{
	display: block;
	float: right;
	width: 40%;
	height: auto;
	padding-top: 7px;
}

.PAY img{
	display: block;
	width: 100%;
}

section{
	clear: both;
}

section a,section div{
	display: inline-block;
	width: 100%;
	height: auto;
	text-align: center;
	margin: 0 auto;
}

section.sale_content{
	font-size: 0;
	background:#e94745;
}

section.sale_content a{
	width: 20%;
}

section .TIT{
	width: 100%;
	height: 105px;
	background: url('images/p_title.jpg') no-repeat center;
	background-size: cover;
}

section .TIT.air_title{
	height:auto;
	background:#66a9de;
	background: url('images/air_title.jpg') no-repeat center;
	background-size: contain;
	background-color:#66a9dd;
}

section .title_msg ul{
	display:flex;
	align-items: center;
	justify-content: center;
	font-size:2.5em;
	font-weight: bold;
	color:#fff;
}

section .title_msg ul li{
	display:flex;
	flex:0 0 33.33%;
	justify-content: center;
	align-items: center;
}

section .title_msg ul.flex_2 li{
	flex:0 0 50%;
	justify-content: right;
}

section .title_msg.gift ul.flex_2 li{
	justify-content: center;
}

section .title_msg ul li a{
	display:flex;
	justify-content: flex-end;
	/* padding:5px 10px 5px 0; */
}

section .title_msg ul li p{
	text-align: center;
}

section .title_msg ul li p span.air_ps{
	display: block;
	font-size: 1rem;
	margin-top: 5px;
}

section .title_msg ul li a img{
	width:50%;
	margin: 5px;
}

section .title_msg.gift ul li a img{
	width:98%;
	margin: 5px 0;
}

section .title_msg ul li.title_img a img{
	width:100%;
}

.main > div{
	position: relative;
	width: 100%;
	height: auto;
}

.main > div .kitchen{
	width: 15%;
	position: absolute;
	top: 135px;
	right: 55px;
	z-index: 1;
}

.main > div img{
	width: 100%;
	height: auto;
}

.sale_content{
	width: 100%;
	font-size: 0;
}
.sale_content > a,.sale_content > div{
	width: 16.66%;
	vertical-align: top;
}

.sale_content > div{
	position: relative;
	overflow: hidden;
}

.div ul.link{
	display:none;
	position: absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:rgba(0,0,0,0.8);
	z-index: 1;
}
.div ul.link li{
	height:100%;
	border-bottom: 1px #fff dashed;
}
.div ul.link li:last-child{
	border-bottom:0;
}
.div ul.link li a{
	height:100%;
	color:#fff;
	font-size:2rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.div:hover ul.link{
	display: block;
}

.div.link_3 ul.link li{
	height:33.33%;

}
.div.link_2 ul.link li{
	height:50%;

}

.sale_content img{
	width: 100%;
	height: auto;
}

.sale_content.grid_5 > a{
	width: 20%;
	vertical-align: top;
}

.sale_content.grid_7 > a{
	width: 14.28%;
}

.sale_content.grid_8 > a{
	width: 16.66%;
}

.sale_content.grid_5 > div{
	width: 20%;
	vertical-align: middle;
}

.sale_content.sale_content_s{
	display: none;
}

.sale_content > a.brand_gift{
	display: flex;
	width: 100%;
	height: auto;
}

.sale_content > a.brand_gift img{
	width: 100%;
}

.sale_content > a.brand_gift_s{
	display:none;
}

/* 註解保留區段 */
/* ... (原檔案中間被註解的 imgcolor 設定) ... */

.border_right img{
	border-right: 0;
}

.border_left img{
	border-left: 0;
}

.border_middle img{
	border-right: 0;
	border-left: 0;
}

.sale_content_2{
	width: 100%;
	height: auto;
}

.sale_content_2 img{
	width: 12.5%;
	height: auto;
	
}

.sale_content_3{
	width: 100%;
	height: auto;
}

.sale_content_3 img{
	width: 75%;
	height: auto;
	
}

.sale_content_4{
	width: 100%;
	height: auto;
}

.sale_content_4 img{
	width: 25%;
	height: auto;
	
}

/*頁尾版權宣告*/
footer{
	text-align: center;
	font-size: 1em;
	color: #000;
/* 	line-height: 1.6; */
	padding: 10px 0;
}

footer a{
	display: inline-block;
	color: #000;
	margin-bottom: 10px;
}

footer a:hover{
	font-weight: bold;
}

footer span{
	display: block;
	margin-bottom: 10px;
}

/*=========================================手機版=========================================*/
@media screen and (max-width:768px){
	.notice div{
	width: 90%;
	}

    /* 新增這段：在手機版隱藏浮動視窗 */
    .floating-img {
        display: none !important;
    }

	.wrapper{
		width: 100%;
		padding-bottom: 130px;
	}

	.wrapper header{
		width: 100%;
	}

	.wrapper h1{
	font-size: 6vw;
	padding: 10px 0;
	margin-bottom: 0;
	}

	.wrapper h1 span:last-child{
		display: block;
		text-align: right;
		font-size: 4vw;
		margin: 5px 12vw 0 0;
	}

	/*LOGO們*/

	/*主視覺*/
	.main,.tag_1,.tag_2{
		display: none;
	}
	
	.main_s{
		display: block;
		font-size: 0;
	}

	.main_s a{
		display: inline-block;
	}

	.all a.tag{
		width: 22vw;
	}

	/*返回選單*/
	.back{
		display: none;
	}

	/*選單*/
    nav{
        position: fixed;
        bottom: 0;
        background-color: #ffffff;
        border-top: 1px rgba(255,255,255,1) solid;
        z-index: 999;
    }

    nav ul{
        
        margin-left: 0;
    }

    nav ul li{
        width: 25%;
        height: auto;
        border-bottom: 1px rgba(0,0,0,0.20) solid;
        border-top: 1px rgba(255,255,255,1) solid;
        /* word-break: break-all; ← 務必刪除或註解掉這行，避免文字被不自然切斷 */
    }

    /* 新增：手機版導覽列點擊回饋 */
    nav ul li:active {
        background-color: #f2f2f2;
    }
    nav ul li a:active {
        font-weight: bold;
        color: #d88f06;
    }

    nav ul li a{
        /* font-size: 1em; ← 註解或刪除原本固定的寫法 */
        font-size: min(1em, 4vw); /* 新增：最大為 1em，在小尺寸手機上會自動按比例縮小 */
        line-height: 3;
        letter-spacing: 0;
        white-space: nowrap; /* 新增：強制手機版文字也不換行 */
    }

    .box{
        width: 100%;
        height: auto;
        margin: 0 auto;
    }
	
	/*商品內容區標頭*/
	article h5{
		text-align: center;
		margin: 0 auto;
		height: auto;
		font-size: 2em;
		text-align: center;
		padding: 10px 0;
/*		letter-spacing: 0.8em;*/
/* 		padding-left: 1em; */
	}

	article h5 > span{
		display: block;
		line-height: 1;
	}

	article h5 > span span{
		display: block;
		line-height: 1.2;
		margin: 5px 20px 0 20px;
	}

	article > h3{
		padding: 10px 0 0 0;
	}

	/*銀行刷卡優惠*/
	.BANK p{
		width: 95%;
		padding: 0.4em 0 0.4em 2em;
		font-size: 0.9em;
		text-indent: -1em;
		text-align: justify;
	}

	/*支付*/
	.PAY aside{
		width: 90%;
		margin: 0 auto;
	}

	.PAY h3{
		width: 100%;
		margin: 0 auto;
		font-size: 1.2em;
		text-align: center;
		letter-spacing: 0.2em;
		line-height: 1.5;
		text-indent: 0;
	}

	.PAY a{
		
		width: 100%;
		padding-top: 0;
	}

	.PAY img{
		width: 80%;
		margin: 0 auto;
	}

	section .TIT{
		height: auto;
		background-color: #014da1;
		background-size: 155%;
		padding: 20px 0;
	}

	section .title_msg ul{
		display:flex;
		flex-direction: column;
		font-size:2rem;
	}

	section .title_msg ul.flex_2 li:first-child{
		padding-right: 0;
	}

	section .title_msg ul li a{
		display: block;
		padding:0 0 5px 0;
	}

	section .title_msg ul li a img,section .title_msg ul li.title_img a img{
		width:90%;
		margin: 0 auto;
	}

	section .title_msg.gift ul li a img{
		margin: 10px auto;
	}
	
	.sale_content > a,.sale_content > div,.sale_content.grid_5 > div,.sale_content.grid_5 > a,.sale_content.grid_7 > a,.sale_content.grid_8 > a{
		width: 50%;
	}

	.sale_content .grid_s{
		width: 33.33%;
	}

	.main_s a,.sale_content.air_content > div:nth-of-type(7),.sale_content.air_content > div:nth-of-type(8){
		width: 50%;
	}

	.main_s a:last-child,.sale_content img,.sale_content a.width_100,.sale_content > a.brand_gift img,.sale_content > a.brand_gift_s,.sale_content > a.brand_gift_s img{
		width: 100%;
	}


	.sale_content > a.brand_gift{
		display:none;
	}

	.sale_content > a.brand_gift_s,.sale_content > a.brand_gift_s a{
		display:block;
	}
	
	.border_top img{
		border-top: 0;
	}

	.border_bottom img{
		border-bottom: 0;
	}

	.sale_content_2 img{
		width: 25%;
	}

	/*頁尾版權宣告*/
	footer{
		font-size: 3vw;
	}
	
}