/*
 * http://www.lfo.com.tw/
 *
 * Copyright 2016, TANK
 * 
 * 
 * 2016 / 06 / 21
 */


/*-----------------------------------------------------------------------------
 [TABLE OF CONTENTS]
    +common
        =anchor
        =clear,clearfix
        =banner
    +header
        =cis
        =site-func
        =share-func
        =nav
    +content
        +content-main
        +content-sidebar
    +footer
        =footer-link
        =company-info
-----------------------------------------------------------------------------*/

/* +common
*----------------------------------------------------------------------------*/

* {
    margin: 0;
    padding: 0;
}

body {
	margin:0;
	background: #232323;
	background: -webkit-radial-gradient(#0e0e0e, #232323);
	background: radial-gradient(#0e0e0e, #232323);
	color: #fff;
	font-size: 14px;
}

div, h1, h2, h3, h4, h5, h6, hr, p, form, label, input, textarea, img, span, ul, li {
	text-align: left;
	vertical-align: middle;
	margin: 0;
	padding: 0;
	word-wrap: normal;
	word-break: normal;
	line-height: 170%;
	border-width: 0;
	font-family: "微軟正黑體", "蘋果儷中黑", "Lucida Grande", "Arial", "Arial Narrow";
}

hr {
	border-top:1px #000 solid;
	margin:0 0 10px 0;
}

th {
	font-weight: normal;
}

ul, ol {
	list-style: none;
}

p.lineHeight {
	line-height:170%;
}
p.marginTop {
	margin:10px 0;
}
p.marginLeft {
	margin: 0 10px;
}

input,button,select,textarea {
	outline:none
}

img {
	max-width: 100%;
}

/**
*
* =anchor
*
**/

a:link, a:visited {
	color: #fff;
	font-weight: normal;
	text-decoration: none;
}

a:hover {
	color: #f5d179;
	text-decoration: none;
}

/**
*
* =clear,clearfix
*
**/

/* regular clearing apply to column that should drop below previous ones. */
.clear {
    clear: both;
}

/* this needs to be first because FF3 is now supporting this */
.clearfix {
    display: inline-block;
}

/* clearing floats without extra markup */
.clearfix:after {
    display: block;
    visibility: hidden;
    clear: both;
    height: 0;
    font-size: 0;
    content: ".";
}

/* hides from IE-mac \*/
* html .clearfix {
    height: 1%;
}
.clearfix {
    display: block;
}
/* end hide from IE-mac */


livedemo00.template-help.com/media="screen":after, :before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}


/* +body
*----------------------------------------------------------------------------*/
.wrapper {
	width: 100%;
	overflow: hidden;
	position: relative;
	background: url(../images/all/img-subTopBg.png) no-repeat top center;
}

.wrapper section {
	overflow: hidden;
	margin: 0 auto;
	width: 960px;
}
.wrapper section p b{
    font-weight: normal;
}
.wrapper .warp {
	padding-bottom: 25px;
	background: url(../images/all/img-bottomBg.png) no-repeat bottom right;
	min-height: 390px;
}


/**
*
* =jumpDiv
*
**/
/* + 跳一  跳三
*----------------------------------------------------------------------------*/
#jumpDiv ,
#jumpIframe {
	position: relative;
	background: #fff;
	top: 0;
	left: 0;
	z-index: 1000;
}


/* + a.photo
*----------------------------------------------------------------------------*/
a.photo {
	overflow: hidden;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: auto 100%;
	display: block;
	transition: all 0.4s ease-in-out 0s;
	transform:scale(1,1);
}

a.photo img {
	width: 100%;
}


/* + form
*----------------------------------------------------------------------------*/
form fieldset {
	border: 0;
}

form fieldset input ,
form fieldset textarea {
	padding: 0 5px;
	border: 1px #ffb832 solid;
	background: rgba(45,45,45,.15);
	box-shadow: 0 2px 3px 0 #000 inset;
	border-radius: 5px;
	color: #fff;
}

form fieldset input[type="radio"] {
	box-shadow: none;
}

form fieldset input#btnOKL ,
form fieldset input#btnOK ,
form fieldset input.btn-reset ,
form fieldset input[type="button"] {
	margin-left: 10px;
	background: #ffb832;
	border: 0;
	box-shadow: 0 0 7px #fff;
	color: #000;
}


/* + header
*----------------------------------------------------------------------------*/
header {
	overflow: hidden;
}

header section {
	background: url(../images/all/img-topBg.png) no-repeat right top;
}

header #cis ,
header .leftItem {
	float: left;
	width: 300px;
}

header #cis {
	margin: 15px 0;
}

header .leftItem {
	width: 660px;
}

header .leftItem #member #memberLogin {
	margin: 10px 60px;
}

header .leftItem #member #memberLogin p {
	margin-right: 10px;
	display: inline-block;
}

header .leftItem #member #memberLogin p input {
	width: 70px;
}

header .leftItem #member #memberLogin p input#btnOKL {
	padding: 0 10px;
	width: auto;
}

header .leftItem #member #memberBox {
	margin: 0 60px;
}

header .leftItem #member #memberBox ul li {
	margin-right: 20px;
	display: inline-block;
}

header .leftItem #member #memberBox ul li a.blink {
	-webkit-animation: blink 0.5s infinite alternate ease-in-out;
	-moz-animation: blink 0.5s infinite alternate ease-in-out;
	-ms-animation: blink 0.5s infinite alternate ease-in-out;
	-o-animation: blink 0.5s infinite alternate ease-in-out;
	animation: blink 0.5s infinite alternate ease-in-out;
}

@-webkit-keyframes blink {
	0%, 50% {color: #f5d179; }
	51%, 100% {color: #fff; }
}

@-moz-keyframes blink {
	0%, 50% {color: #f5d179; }
	51%, 100% {color: #fff; }
}

@-ms-keyframes blink {
	0%, 50% {color: #f5d179; }
	51%, 100% {color: #fff; }
}

@-o-keyframes blink {
	0%, 50% {color: #f5d179; }
	51%, 100% {color: #fff; }
}

@keyframes blink {
	0%, 50% {color: #f5d179; }
	51%, 100% {color: #fff; }
}

header .leftItem nav {
	text-align: center;
}

header .leftItem nav ul {
	overflow: hidden;
	margin: 20px 0 10px;
	display: inline-block;
}

header .leftItem nav ul li {
	float: left;
}

header .leftItem nav ul li a {
	padding: 10px 20px;
	display: inline-block;
	text-align: center;
}

header .leftItem nav ul li a:hover{
	box-shadow: inset 0 5px 6px rgba(0, 0, 0, 0.3), inset 0 0 4px rgba(0, 0, 0, 0.9), 0 0 0 black;
	-webkit-box-shadow: inset 0 5px 6px rgba(0, 0, 0, 0.3), inset 0 0 4px rgba(0, 0, 0, 0.9), 0 0 0 black;
}

#gotop{
	position: fixed;
    right: 20px;
    bottom: 30px;
    font-size: 40px;
    color: #fff;
    text-shadow: 0 0 10px #000;
	z-index: 9;
}

/* + footer
*----------------------------------------------------------------------------*/
footer {
	overflow: hidden;
	padding: 10px 0;
	background: url(../images/all/footerBg.png) #1d1b1b no-repeat top center;
}

footer p {
	text-align: center;
}

.footernav {
	text-align: center;
}

.footernav ul {
	overflow: hidden;
	margin: 20px 0 10px;
	display: inline-block;
}

.footernav ul li {
	float: left;
}

.footernav ul li a {
	padding: 10px 20px;
	display: inline-block;
	text-align: center;
}

.leftjoin{
	position: fixed;
    right: 75px;
    top: 330px;
    z-index: 9999999;
}
.fixline{
	position: fixed;
	right: 60px;
    top: 90px;
    z-index: 99999;
}
.fixline img{
	width: 170px;
}


/* RWD設計，適用於手機版 */
@media screen and (max-width: 767px) {

    /* 調整整體的寬度和字體大小 */
    body {
        font-size: 12px;
    }

    /* header區域調整 */
    header section {
        background-size: cover;
    }

    header #cis,
    header .leftItem {
        float: none;
        width: 100%;
        text-align: center;
    }
    
    
    header .leftItem #member #memberLogin p input {
	width: 150px;
}

    /* 將左邊的導航選單放在上方或下方 */
    header .leftItem nav ul {
        display: flex;
        flex-direction: column;
        padding: 0;
        text-align: center;
    }

    header .leftItem nav ul li {
        float: none;
        width: 100%;
        margin: 5px 0;
    }

    /* 調整 .wrapper 區域，使其適應小螢幕 */
    .wrapper section {
        width: 100%;
        padding: 0 10px;
    }

    /* 圖片區域的調整 */
    img {
        max-width: 100%;
        height: auto;
    }

    /* .leftjoin 和 .fixline 的位置調整 */
    .leftjoin, .fixline {
        position: fixed;
        top: auto;
        bottom: 10px;
        left: 10px;
        right: auto;
        width: 80px;
        z-index: 9999;
    }

    /* footer區域的調整 */
    footer {
        padding: 20px 10px;
        text-align: center;
    }

    .footernav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footernav ul li {
        margin: 5px 0;
    }

    /* 調整跳出框大小 */
    #jumpDiv, #jumpIframe {
        width: 100vw;
        height: 100vh;
    }

    /* 調整button等表單 */
    form fieldset input, 
    form fieldset textarea {
        width: 100%;
        margin-bottom: 10px;
    }

    /* 調整按鈕 */
    form fieldset input#btnOKL {
        width: 100%;
        font-size: 16px;
        padding: 10px;
        background-color: #d51f1f;
        color: white;
        border-radius: 5px;
    }
    
 
    #member {
        
        display: flex;
        flex-direction: column; /* 使內部元素垂直排列 */
        justify-content: center;
        align-items: center;
        padding: 20px;
        background-color: #f7f7f7;
        border-radius: 10px;
        width: 90%;
        max-width: 250px;
        margin: 20px auto; /* 自動置中 */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* 表單標籤 */
    #memberLogin label {
        text-align: left;
        font-size: 14px;
        color: #333;
        margin-bottom: 5px;
        
    }

    /* 輸入框樣式 */
    #memberLogin input[type="text"],
    #memberLogin input[type="password"] {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        margin-bottom: 10px;
        border-radius: 5px;
        border: 1px solid #ccc;
        box-sizing: border-box;
    }

    /* 驗證碼區域 */
    #memberLogin .code {
        display: inline-block;
        width: 58%;
    }

    #vdimgck {
        margin-left: 10px; /* 調整驗證碼圖片的位置 */
        vertical-align: middle;
    }

    /* 立即加入按鈕 */
    #btnOKL {
        width: 100%;
        max-width: 120px;
        padding: 10px;
        background-color: #d51f1f;
        color: #fff;
        font-size: 16px;
        font-weight: bold;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
        text-align: center;
        margin-top: 10px;
    }

    #btnOKL:hover {
        background-color: #b01616;
    }

    /* 已登入會員區 */
    #memberBox {
        padding: 15px;
        background-color: #444;
        border-radius: 8px;
        color: #fff;
        text-align: center;
        margin-top: 20px;
    }

    /* 已登入會員選單 */
    #memberBox ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    #memberBox ul li {
        margin: 10px 0;
    }

    #memberBox ul li a {
        color: #f5d179;
        text-decoration: none;
    }

    #memberBox ul li a:hover {
        color: #fff;
    }
    
    
    
    
}    

/* 懸浮選單按鈕 */
.menu-toggle {
    display: none; /* 桌面版隱藏 */
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 24px;
    color: #fff;
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
}

/* 手機版選單 */
.mobile-nav {
    display: none; /* 初始隱藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    padding-top: 60px;
}

.mobile-nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

.mobile-nav ul li {
    margin: 20px 0;
}

.mobile-nav ul li a {
    font-size: 20px;
    color: #f5d179;
    text-decoration: none;
    padding: 10px;
}

.mobile-nav ul li a:hover {
    color: #fff;
}

/* 當展開選單時顯示 */
.mobile-nav.show {
    display: block;
}

/* 手機版專屬樣式 */
@media screen and (max-width: 767px) {
    
    header .leftItem nav {
        display:none;
        
    }  
    
    
    
    .menu-toggle {
        display: block; /* 手機版顯示懸浮按鈕 */
    }

    .mobile-nav {
        display: none; /* 初始隱藏 */
    }
    
    #newWrap {
        display: none;
    }
    
    .footernav {
	display:none;
}
    
    
}

@media only screen and (min-width: 769px) {
    #productWrap .item ul.games li {
        display: inline-block;
    }
}

/* 手機版僅顯示單張，並設為輪播 */
@media only screen and (max-width: 768px) {
    #productWrap .item ul.games {
        display: flex;
        justify-content: center;
    }

    #productWrap .item ul.games li {
        flex: 0 0 100%;
        display: none;
    }

    #productWrap .item ul.games li:first-child {
        display: flex;
    }
}

#prev, #next {
    position: absolute;
    bottom: 20%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

@media only screen and (min-width: 769px) {
    #prev, #next {
        display: none; /* 桌面版隱藏箭頭 */
    }
}

.cousins {
    font-size: 2.5rem;
    color: #f9c800;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    font-family: "Arial", sans-serif;
    position: relative;
    opacity: 0;
    animation: fadeInSlide 1.5s ease-in-out forwards, sparkle 2s 1.5s infinite;
    overflow: hidden;
}

.cousins::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-30deg);
    animation: shine 3s infinite;
}

/* 手機版字體縮小 */
@media only screen and (max-width: 768px) {
    .cousins {
        font-size: 1.8rem;
    }
}

/* 進場浮出動畫 */
@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 閃光動畫 */
@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* 閃爍效果 */
@keyframes sparkle {
    0%, 100% {
        text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8), 0 0 10px #f9c800, 0 0 20px #f9c800, 0 0 30px #ffd700, 0 0 40px #ffd700;
    }
    50% {
        text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8), 0 0 15px #f9c800, 0 0 30px #f9c800, 0 0 45px #ffd700, 0 0 60px #ffd700;
    }
}
