@charset "big5";

/*-------------------------------------------
--------------------------------------------*/

@media screen and (max-width: 1440px) {
    
    .list-1, .list-2, .list-3 { width: 80%; }
    .list-4 { width: 70%; }
    
}

/*-------------------------------------------
--------------------------------------------*/

@media screen and (max-width: 1024px) {
    
    /*item樣式*/
    div[class^="name"] { font-size: 0.9em; }
    div[class^="price"] { font-size: 0.8em; }
    div[class^="sale"] { font-size: 0.8em; letter-spacing: 0.5px; }
    div[class^="sale"] span { font-size: 1.1em; }
    div[class^="sale"] strong { font-size: 0.9em; font-weight: normal; padding: 0 2px 0 5px; }
    div[class^="sale"] b { font-size: 1.7em; font-weight: normal; }
    
    /*新書*/
    #s1 h2 { width: 100%; padding: 0 2%; }
    .list-1 { width: 100%; padding: 0 1%; }
    
    /*近期熱賣/ 職人*/
    .list-2, .list-3 { width: 100%;	padding: 0 1%; }
    
    /*66折*/
    #s4 { padding: 10px 1% 20px 1%; }
    .list-4 { width: 100%;	padding: 0 1%; }
    .list-4 ul { padding: 10px 20px; }
    
    /*rule*/
    .btn_rule a, a.btn_rule { width: 50%; }
    .rule { width: 100%; padding: 5%; }
    
    /*其他活動*/
    #s6 { padding: 20px 0; }
    .bn { width: 70%; }
	
}


/*-------------------------------------------
--------------------------------------------*/

@media screen and (max-width: 834px) {
    
    /*item樣式*/
    div[class^="photo"] { padding: 5px; }
    div[class^="photo"] img { max-height: 190px; }
    .photo-1, .photo-2 { height: 200px; }
    .photo-2 { margin-bottom: 8px; }
    
    /*主視覺*/
    .kv-pc { display: none; }
    .kv-m { display: block; }
    .kv-txt { width: 100%; margin: 0 auto; }
    
    /*新書*/
    #s1 h2 { width: 100%; text-align: center; margin: 0 auto 15px auto; }
    .s1_title1 { float: none; width: 100%; text-align: center; }
    .s1_title2 { float: none; width: 100%; text-align: center; padding: 5px 0 10px 0; }
    .more a:link, .more a:visited { float: none; margin: 0 auto; }
    .txt { display: none; }
    
    /*近期熱賣*/
    #s2 h2 { margin-bottom: 20px; }
    
    /*66折*/
    #s4 { width: 100%;	padding: 30px 2% 20px 2%; }
    
     /*rule*/   
    .btn_rule a, a.btn_rule { width: 60%; height: 50px; font-size: 1.5em; line-height: 50px; }
    .gift { float: none; }
    
    /*其他活動*/
    #s6 { padding: 20px 0; }
    .bn { width: 85%; }

}


/*-------------------------------------------
--------------------------------------------*/

@media screen and (max-width: 667px) {
    
    /*item樣式*/
    .photo-1, .photo-2 { height: 200px; }
    div[class^="photo"] img { max-height: 190px; }
    div[class^="price"] del { padding-right: 5px; }

}


/*-------------------------------------------
--------------------------------------------*/

@media screen and (max-width: 480px) {
    
    /*item樣式*/
    div[class^="name"] {
        font-size: 1em;
        -webkit-line-clamp: 1; /*顯示的行數*/
        line-height: 1.3em; /*行高值*/
        height: 1.3em; /*限定高度為行數乘行高的值*/
    }
    div[class^="photo"] img { max-height: 150px; }
    div[class^="price"] del { padding-right: 10px; }
    .photo-1, .photo-2 { height: 160px; margin-bottom: 8px; }
    
    /*新書*/
    #s1 { padding-bottom: 20px; }
    #s1 h2 { margin: 0 auto 5px auto; }
    .s1_title1 { width: 80%; margin: 0 auto; }
    .s1_title2 b { font-size: 1.5em; }
    .list-1 { width: 100%; }
    .list-1 li { width: 46%; padding: 5px 5px 10px 5px; margin: 2%; }
        
    /*近期熱賣*/
    #s2 { padding: 0; }
    #s2 h2 { width: 100%; text-align: center; margin-bottom: 0px; }
    .list-2 ul { padding: 1%; }
    .list-2 li { width: 46%; margin: 2%; }
    
    /*職人*/
    #s3 h2 { width: 80%; margin: 0 auto; }
    .list-3 { width: 100%; position: relative; }
    .list-3 ul { padding: 1%; }
    .list-3 li { width: 46%; margin: 2%; }
    
    /*66折*/
    #s4 { width: 100%; padding: 20px 2%; }
    #s4 h2 { width: 80%; margin: 0 auto; }
    .list-4 { position: static; }
    .list-4 ul { padding: 5px 10px; }
    .list-4 li { width: 100%; margin: 0 auto 15px auto; }
    .photo-3 { float: left; width: 48%; margin: 0 2% 0 0; }
    .info { float: left; width: 50%; padding: 10px 0 0 0; }
    
    /*rule*/
    .btn_rule a, a.btn_rule { width: 94%; height: 46px; font-size: 1.5em; line-height: 46px; }
    .rule { width: 100%; padding: 5%; }
    .gift { float: none; width: 95%; margin: 10px auto; }
    
    /*其他活動*/
    #s6 { padding: 20px; }
    .bn { width: 100%; }
    .bn li { float: none; width: 100%; margin: 0 auto 5px auto; } 

}


/*-------------------------------------------
--------------------------------------------*/

@media screen and (max-width: 320px) {
    
    /*list*/
    .photo-1, .photo-2 { height: 160px; }
    div[class^="photo"] img { max-height: 150px; }

}
