*{
    margin: 0;
    padding: 0;
    border: 0;
}

html{
    font-family:Verdana,'Noto Sans TC', "微軟正黑體", sans-serif;
    background:url("../images/bg.jpg") top center repeat;
    font-size: 16px;
    scroll-behavior: smooth;
}
body{
    background:url("../images/tree.png") top /100% no-repeat;
    margin: auto;
    max-width: 1920px;
}

#logo{
    width: 220px;
    height: 60px;
}

:focus { outline: 0; }
li{ 
    list-style:none;
    transition-duration:.3s;
} 
li:hover{
    transform: scale(0.98);
}
a { text-decoration:none;}
:root {
	--title: #291609;
	--font: #291609;
	--focus: #f55668; 
}

h2{
    font-size: 2.4rem;
    color: var(--title);
    text-align: center;
    background:url("../images/title-bg.png") top center no-repeat;
    padding: 34px 0;
    margin: 20px auto -40px;
    position: relative;
    z-index: 2;
}
.title02{
    background:url("../images/title-bg2.png") top center no-repeat;
}
.title03{
    background:url("../images/title-bg.png") top center no-repeat;
}
.title04{
    background:url("../images/title-bg.png") top center no-repeat;
    margin: 1% auto;
}
h3{
    font-size: 1.4rem;
    color: var(--font);
    text-align: center;
    line-height: 1.8rem;
    margin:50px 0 20px ;
}
h4{
    font-size: 1rem;
    color: var(--font);
    text-align: center;
    line-height: 1.2rem;

}
p{
    font-size: 1rem;
    color: var(--font);
}
.price{
    font-size: 1.2rem;
    color: var(--font);
    text-align: end;
    white-space: nowrap;
}
.price strong{
    font-size: 150%;
    color: var(--focus);
    font-weight: 700;
}

header{
    max-width: 1200px;
    margin: auto;
}
header img{
    width: 100%;
    display: block;
}
nav ul{
    display: flex;
    justify-content: space-between;
    background: #088fec;
}
nav li{
    background: #088fec;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    position: relative;
}
nav li:nth-child(even){
    background: #39a9f6;

}
nav li::after{
    content: "";
    border-color: #7bc1f1 transparent;
    border-width: 0 0 12px 12px;
    border-style: solid;
    position: absolute;
    bottom: 4px;
    right: 4px;
}
nav li:hover{
    transform: scale(0.95);
}
nav li a{
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    white-space: nowrap;
}
main{
    max-width: 1200px;
    margin: auto;
}
.mustBuy{
    border-radius: 10px;
    background:#008c4b url("../images/plaid.png") top center repeat;
    padding: 40px 20px 20px;
    margin: 0 auto 20px;
}
.mustBuy ul{
    display: flex;
}
.mustBuy li{
    width: 100%;
    background: #fff;
    padding: 20px 30px;
    margin: 8px;
    position: relative;
    overflow: hidden;
}
.mustBuy span{
    position: absolute;
    background-color: var(--focus);
    color: #fff;
    font-size: 1.2rem;
    display: block;
    width: 160px;
    text-align: center;
    transform: rotate(-45deg);
    top: 25px;
    left: -40px;
    padding: 2px;
    font-weight: 500;
}
.mustBuy .row{
   display: flex;
   border-bottom: #bbb solid 1px;
   padding-bottom: 20px;
   margin-bottom: 20px;
   align-items: center;
}
.mustBuy .font{
    padding-right: 16px;
}
.mustBuy img{
    width: 40%;
    height: 40%;
    object-fit: contain;
}
.mustBuy .price::after{
    content: "立即購買";
    padding: 4px 20px;
    background: var(--focus);
    color: #fff;
    margin-left:10px;
    position: relative;
    bottom: 4px;
    white-space: nowrap;
}

.video{
    border-radius: 10px;
    background:#088fec url("../images/plaid.png") top center repeat;
    padding: 40px 20px 2px;
    margin: 0 auto 20px;
}
.inner {
    display: flex;
    margin-bottom: 2%;
}
.video iframe{
    margin: 8px;
}
.video ul{
    display: flex;
}
.video li{
    background: #fff;
    padding: 10px;
    margin: 1%;
    text-align: center;
}
.video img{
    width: 100%;
}
.video .price{
    font-size: 1rem;
    text-align: center;
}
.video .price strong{
    font-size: 120%;
}
.topic{
    border-radius: 10px;
    background:#f0692b url("../images/plaid.png") top center repeat;
    padding: 40px 20px 20px;
    margin: 0 auto 20px;
}
.topic ul{
    display: flex;
}
.topic li{
    background: #fff;
    margin: 8px;
    padding-bottom: 20px;
    width: 24%;
}
.topic img{
    width: 84%;
    display: block;
    padding: 8%;
    max-width: 300px;
    height: 300px;
    object-fit: contain;
}
.topic h3 {
    background: #088fec;
    color: #fff;
    margin: 0;
    padding: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.topic p{
    text-align: center;
    margin: 10px;
}
.topic .price{
    font-size: 1rem;
    text-align: center;
}
.topic .price strong{
    font-size: 120%;
}
.notext li{
    padding-bottom: 0;
}
.sort{
    margin: 1% auto;
}
.sort ul{
    display: flex;
}
.sort li{
    background: url("../images/sort.png") top center /100% no-repeat;
    margin: 14px;
    width: 100%;
}
.sort a{
    padding: 8% 8% 13%;
    color: #fff;
    font-size: 1.7rem;
    text-align: center;
    display: block;
    font-weight: 500;
}
.keyWord{
    margin: auto;
    text-align: center;
    padding: 0 10%;
}
.keyWord ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.keyWord li{
    margin: 8px;
    background-color: #fff;
    border: solid 2px var(--font);
    border-radius: 10px;
    box-shadow: 2px 3px #281609;
}
.keyWord a{
    color: var(--font);
    display: block;
    padding: 8px 20px;
    font-size: 1.2rem;
}
.banner{
    display: flex;
    margin: 30px auto 50px;
}
.banner ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.banner li{
    margin: 0.6%;
    border-radius: 10px;
    width: 32%;
    overflow: hidden;
}
.banner img{
    width: 100%;
}
footer{
    text-align: center;
    padding: 20px 20px;
    background-color: #f0692b;
    color: #fff;
}
@media screen and ( max-width: 920px ){
   html{
       font-size: 12px;
   }
   h2, .title02, .title03, .title04{
       background-size: 56%;
       padding: 3% 0 3%;
   }
   .inner{
    flex-wrap: wrap;
    justify-content: center;
    }
    .inner iframe{
        width: 100%;
        height: 40vw;
        margin: 1%;
    }
    h4{
        font-size: 1.4rem;
        line-height: 1.8rem;
        margin: 2% 0;
    }
    .video .price{
        font-size: 1.4rem;
    }

          
}
@media screen and ( max-width: 768px ){
    nav li{
        padding: 1.5%;
    }
    nav li a{
        white-space: normal;
    }
    .mustBuy li{
        padding: 2% 3%;
    }
    .mustBuy, .video, .topic {
        margin: 2%;
        padding: 5% 2% 2%;
    }
    .topic ul{
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .topic li {
        width: 47%;
        margin: 1% auto;
        padding-bottom: 3%;
    }
    .topic img{
        height: 38vw;
        max-width:38vw;
    }
    .sort ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .sort li{
        width: 25%;
        margin: 1%;
    }
    .keyWord{
        padding: 0 1%;
    }
    .keyWord li{
        margin: 1%;
    }
    .banner{
        margin: 2%;
    }

}
@media screen and ( max-width: 640px ){
    #logo{
        width: 30vw;
        height: 8.3vw;
    }
    nav li a{
        font-size: 1.4rem;
    }
    .mustBuy ul{
        flex-wrap: wrap;
    }
    .mustBuy li{
        padding: 3% 5%;
    }

    h2, .title02, .title03, .title04{
        background-size: 65%;
        font-size: 2rem;
        padding: 3.5% 0 4%;
    }
    .video li{
        margin: 1%;
        padding: 1%;
    }
    .video .price{
        font-size: 1rem;
        white-space: normal;
    }
    .banner li{
        width: 47%;
        margin: 1%;
    }
    .notext li{
        padding-bottom: 0;
    }

           
 }
 @media screen and ( max-width: 520px ){
    h2, .title02, .title03, .title04{
        background-size: 80%;
        font-size: 1.8rem;
        padding: 4% 0 8%;
    }
    h4{
        font-size: 1rem;
        line-height: 1.2rem;
        margin: 2% 0;
    }
    .sort li{
        width: 30%;
    }

    .sort a{
        font-size: 1.5rem;
        padding: 7% 7% 13%;
        white-space: nowrap;
    }
    .keyWord a{
        padding: 1vw 3vw;
    }


            
 }