@charset "big5";

/*共用---------------------------------------------*/
body {
    width: 100%;
    font-family: sans-serif, Arial, 微軟正黑體, "Microsoft JhengHei", "LiHei Pro", 新細明體;
    font-size: 16px;
    color: #333333;
    background-color: #1b59c7;
    background-image: url(../images/bg.jpg);
	background-repeat: no-repeat;
	background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    overflow-y: scroll;
}

.wrapper { width: 100%; }
.float-left { float: left; }
.float-right { float: right; }
.hide { display: none; }
*:after, *:before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

/*側選單*/
.sidebar {
	position: fixed;
	width: 110px;
	right: 0;
	top: 100px;
	display: none;
    z-index: 999;
}
.sidebar li a {
    width: 100px;
	font-size: 1em;
	line-height: 120%;
	text-align: center;
	color: #FFF;
	background-color: rgba(0,0,0,0.7);
	padding: 10px;
	margin: 0 auto;
	display: block;
}
.sidebar li a:link, sidebar li a:visited { color: #FFF; }
.sidebar li a:hover, sidebar li a:focus {
    color: #FFFF00; 
    background-color: #9e005d;
    -webkit-transition: all 0.4s linear;
	-moz-transition: all 0.4s linear;
	-ms-transition: all 0.4s linear;
	-o-transition: all 0.4s linear;
	transition: all 0.4s linear;
}
.sidebar li:nth-child(6) a { border-radius: 0 0 50px 50px; }

/*side*/
.side, .side_page {
    width: 60px;
	position: absolute;
	right: 10px;
    bottom: 60px;
	cursor: pointer;
	display: none;
	z-index: 999;
}
.side li, .side_page li {
	font-size: 2em;
	text-align: center;
	color: #FFF;
	background-color: rgba(0,0,0, 0.5);
    border-radius: 10px;
    padding: 10px;
}
.side li a:link, .side li a:visited { color: #FFF; }
.side li:hover, .side li:focus { background-color: rgba(0,0,0, 0.8); }


/*主視覺*/
.kv-area { width: 100%; padding: 0; margin: 0; }
.kv-pc { width: 52%; margin: 0 auto; }
.kv-pc img { width: 100%; }

/*shine----------------------*/
.shine {
    -webkit-animation: shine 3s ease-in 0s infinite;
	-moz-animation:  shine 3s ease-in 0s infinite;
	-ms-animation:  shine 3s ease-in 0s infinite;
	-o-animation:  shine 3s ease-in 0s infinite;
	animation:  shine 3s ease-in 0s infinite;
}
.shine {
  -webkit-animation-name: shine;
  -moz-animation-name: shine;
  -ms-animation-name: shine;
  -o-animation-name: shine;
  animation-name: shine;
}
@keyframes shine { 
    0% {
        -webkit-filter:brightness(100%);
        -moz-filter:brightness(100%);
        -ms-filter:brightness(100%);
        -o-filter:brightness(100%);
        filter:brightness(100%);
    }
    48% {
        -webkit-filter:brightness(100%);
        -moz-filter:brightness(100%);
        -ms-filter:brightness(100%);
        -o-filter:brightness(100%);
        filter:brightness(100%);
    }
    50% {
        -webkit-filter:brightness(500%);
        -moz-filter:brightness(500%);
        -ms-filter:brightness(500%);
        -o-filter:brightness(500%);
        filter:brightness(500%);
    }
    52% {
        -webkit-filter:brightness(100%);
        -moz-filter:brightness(100%);
        -ms-filter:brightness(100%);
        -o-filter:brightness(100%);
        filter:brightness(100%);
    }
    100% {
        -webkit-filter:brightness(100%);
        -moz-filter:brightness(100%);
        -ms-filter:brightness(100%);
        -o-filter:brightness(100%);
        filter:brightness(100%);
    }
}

/*item樣式*/
.iblock { width: 0; height: 100%; vertical-align: middle; display: inline-block; }
div[class^="photo"] { text-align: center; }
div[class^="photo"] img { width: auto; }
div[class^="name"] {
	width: 100%;
	/*font-size: 1.125em;*/
    font-weight: 600;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /*-webkit-line-clamp: 2; /*顯示行數*/
    padding: 0 15px;
    overflow : hidden;
}
div[class^="price"] { font-size: 0.875em; padding: 0 15px; }
div[class^="sale"] { text-align: center; padding: 0 15px; }
div[class^="sale"] span { font-size: 0.9em; }
div[class^="sale"] strong { font-size: 0.8em; padding: 0 0 0 5px; }
div[class^="sale"] b { font-size: 1.8em; }

/*區塊*/
.section { position: relative; width: 100%; padding: 0; margin: 0; }
.area { width: 75%; margin: 0 auto; }
.area h2  { width: 55%; margin: 0 auto; }
.area h2 img { width: 100%; }
.s1 { padding: 70px 0 50px 0; }
.s2, .s3, .s4 { padding: 0 0 50px 0; }

/*攻略*/
.tips { display: block; }
.tips-m { display: none; }
.tips img, .tips-m img { width: 100%; }

/*sale*/
.list-1, .bn, .rule { width: 80%; margin: 0 auto; }
.list-1 ul { overflow: hidden; }
.list-1 li {
    float: left;
    width: 31.3333%;
    background-color: #1b1464;
    padding: 0 0 20px 0;
    margin: 0 1%;
}
.s2 .list-1 li:nth-child(2) { display: none; }
.s3 .list-1 li:nth-child(4) { display: none; }
.photo-1 { height: 350px; background-color: #FFF; padding: 10px; margin: 0; overflow: hidden; }
.photo-1 img { max-height: 330px; }
.tag {
    text-align: center;
    background-color: #FFF;
    padding: 0 0 10px 0;
    margin: 0 0 15px 0;
}
.tag img { width: 100%; }
.name-1 {
    font-size: 1.125em;
    line-height: 1em; /*行高值*/
	height: 1em; /*限定高度為行數乘行高的值*/
    -webkit-line-clamp: 1; /*顯示行數*/
    color: #FFF;
    margin: 0 0 5px 0;
}
.price-1 { color: #FFF; margin: 0 0 15px 0;}
.sale-1 { font-size: 1.125em; margin: 0 0 8px 0; }
.sale-1 span { color: #FFF; }
.sale-1 strong, .sale-1 b { color: #FFFF00; }

/*new*/
.s3 .list-1 li .photo-1 { margin: 0 0 15px 0; }

/*活動*/
.bn ul { overflow: hidden; }
.bn li {
    float: left;
    width: 49%;
    margin: 0 0.5% 10px 0.5%;
    transition-duration: 0.3s;
    transition-property: transform;
    transition-timing-function: ease-out;
}
.bn li img { width: 100%; }
.bn li:hover {
    -webkit-transform: scale(0.98);
    -moz-transform: scale(0.98);
    -ms-transform: scale(0.98);
    -o-transform: scale(0.98);
    transform: scale(0.98);
}

/*rule*/
.rule {
    background-color: #FFF;
    border-radius: 30px 30px 0 0;
	padding: 2% 4%;
}
.rule h3 {
	font-size: 1.125em;
	font-weight: bold;
	line-height: 130%;
	color: #FF0000;
	margin-bottom: 8px;
}
.rule h4 {
	font-size: 1.125em;
	font-weight: 600;
	line-height: 130%;
	color: #2E3192;
	margin-bottom: 8px;
}
.rule ol {
	list-style: decimal;
	margin-left: 30px;
}
.rule ul {
	list-style: disc;
	margin-left: 30px;
	margin-top: 5px;
}
.rule > ol > li {
	font-size: 1em;
	line-height: 140%;
	color: #666666;
	margin-bottom: 5px;
}
.rule > ol > li > ul > li,  .rule > ol > li > ul > li > ol > li {
	font-size: 1em;
	line-height: 140%;
	color: #666666;
	margin-bottom: 5px;
}
.rule p {
	font-size: 1em;
	line-height: 140%;
	color: #666666;
	padding: 0 0 5px 0;
}
.rule a:link, .rule a:visited, .rule a:hover, .rule a:focus {
	font-size: 1em;
	font-weight: bold;
	line-height: 140%;
	color: #2E3192;
	text-decoration: underline;
}
.rule-btn a:link, .rule-btn a:visited {
    width: 160px;
	font-size: 1.125em;
	text-align: center;
	text-decoration: none;
	color: #FFFFFF;
	background-color: #d9534f;
    padding: 10px 20px;
	margin: 10px 0 0 0;
	border-radius: 5px;
	display: block;
}
.rule-btn a:hover, .rule-btn a:focus {
	color: #FFFFFF;
	background-color: #CC0000;
}
.gift { float: right; width: 250px; margin: 15px; }
.gift img { width: 100%; }

/*copyright*/
.copyright {
    width: 100%;
    font-size: 0.9em;
    line-height: 26px;
    text-align: center;
    color: #eaeaea;
    background-color: #666;
    padding: 5px 0;
}
.copyright img {
    height: 26px;
    padding: 0 10px 0 0;
}


/*購物車按鈕--------------------------------------------*/
.cart { width: 70%; text-align: center; margin: 0 auto;}
.pointer { cursor: pointer; }
.width120 { width: 100%;}
.button02, .button03, .button04 {
	height: 40px;
	text-align: center;
	border-radius: 3px;
}
.button02 span, .button03 span, .button04 span {
	font-size: 0.9em;
    line-height: 38px;
}

/*02--放入購物車*/
.button02 {
	color: #FFFFFF;
	background-color: #ff575c;
	border: 1px solid #ff575c;
}
.button02:hover, .button02:focus {
	color: #FFFFFF;
	background-color: #D30107;
	border: 1px solid #D30107;
}

/*03--已放入購物車*/
.button03 {
	color: #FFFFFF;
	background-color: #999999;
	border:1px solid #999999;
	cursor: default;
}

/*04--已售完，補書中/新書尚未入庫/不開放訂購*/
.button04 {
	color: #666666;
	background-color: #FFFFFF;
	border:1px solid #666666;
	cursor: default;
}
