
.clearfix:after {
    clear: both;
    content: ' ';
    display: block;
    font-size: 0;
    line-height: 0;
    visibility: hidden;
    width: 0;
    height: 0;
}

* html .clearfix { height: 1%; }
.floatRight{float: right !important;}
ul.clearfix li{ float: left;}
.clearfix {*height: 100%;}
.force-hide{ display: none !important; }

/***************** 黑头！ *******************/
body{
    background-position: center 0;
}
.relative{
    position: relative;
}
#topnav *{
    box-sizing: content-box;
    -o-box-sizing: content-box;
    -ms-box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
}
#topnav a img{
    vertical-align: middle;
}
#topnav .logo{
    vertical-align: middle;
    margin-left:10px;
    margin-top:2px;
    display: block;
    *display: inline;
    line-height: 30px;
    height: 30px;
    text-indent: 0;
}
#topnav .nav,
#topnav .topnav_links { float: left;padding:0; }
#topnav .usercontroller{
    float: left;
    position: relative;
    *z-index: 1000; /*for IE*/
    width: 135px;
    cursor: pointer;
}
#topnav .usercontroller .logging{
    margin-top: 8px;
    margin-left: 60px;
}
#topnav .usercontroller .usernameWrapper{
    width: 80px;
    height: 24px;
    line-height: 24px;
    font-size: 14px;
    text-align: center;
    margin-left: 15px;
    padding: 0 25px 0 15px;
    display: block;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    *white-space: normal;
    text-shadow: 1px 1px 1px #000;
}
#topnav .usercontroller div.usernameWrapper:hover,
#topnav .usercontroller div.usernameWrapper.hover{
    background-position: 0 -48px;
}
#topnav .usercontroller div.usernameWrapper.active{
    background-position: 0 -24px;
}
#topnav .usercontroller ul.list{
    position: absolute;
    left: 20px;
    width: 116px;
    padding: 17px 0 0 0;
    z-index: 1000;
    *zoom: 1;
    border: none;
}
#topnav .usercontroller ul.list li{
    padding: 0 3px;
}
#topnav .usercontroller ul.list li.last-child{
    padding-bottom:8px;
}
#topnav .usercontroller ul.list a{
    width: 95px;
    padding-left: 15px;
    color: #ff6600;
    font-size: 12px;
    display:inline-block;
    *display: inline;
    *zoom: 1;
}
#topnav .usercontroller ul.list a:hover {
    color: #ffffff;
    text-decoration: none;
    background-color: #ff6600;
}
#topnav .usercontroller .png_button.login{
    float: left;
    position:relative;
    top: -3px;
    margin-left: 15px;
    display: inline;
}
#topnav .usercontroller .register{
    float: left;
    position:relative;
    top: -3px;
    height: 27px;
    line-height: 27px;
    margin-left: 10px;
}
#topnav{ 
    position: relative;
    width: 100%;
    height: 44px;
    *height: 40px;
    line-height: 40px;
    margin-bottom: -4px;
    *margin-bottom: 0;
    background-repeat: repeat-x;
    font-family: 'Lucida Grande', Tahoma, Arial, sans-serif;
    z-index: 9999;
}
#topnav .floatLeft{
    float:left;
}
#topnav .marginLeft20{
    margin-left: 20px;
}
#topnav .nav,
#topnav .topnav_links{
    width: auto;
    margin: 0;
    height: 40px;
    line-height: 40px;
    border: none;
}
#topnav a{
    text-decoration: none;
}
#topnav .yes_login{
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    border: none;
}
#topnav .nav li a,
#topnav .topnav_links li a{
    padding: 0 15px 0 35px;
    width: auto;
    *width: 60px;
    height: 40px;
    text-indent: 0;
    font-size: 14px;
    border: none;
    color: #bababa;
    display: block;
}
#topnav .nav li:hover a,
#topnav .topnav_links li:hover a {
    color: #ffffff;
    text-decoration: none;
}
#topnav .topnav_links li.hoverlikeactive{
    position:relative;
}
#topnav .topnav_links li.hoverlikeactive:hover,
#topnav .topnav_links li:active,
#topnav .nav li.hoverlikeactive:hover,
#topnav .nav li:active {
}
#topnav .topnav_links li.hoverlikeactive:hover a,
#topnav .topnav_links li:active a,
#topnav .nav li.hoverlikeactive:hover a,
#topnav .nav li:active a {
    color: #f60;

}
#topnav .nav li.hoverlikeactive:active a{

}
#topnav .nav li a.sec_2 { background-position: 15px -40px;}
#topnav .nav li a.sec_3 { background-position: 15px -80px;}
#topnav .nav li a.sec_4 { background-position: 15px -120px;}
#topnav .nav li:hover a.sec_3 { background-position: 15px -241px;}
#topnav .nav li:hover a.sec_4 { background-position: 15px -281px;}
#topnav .nav li:hover a.sec_2,
#topnav .nav li:active a.sec_2 { background-position: 15px -362px;}
#topnav .nav li:active a.sec_3 { background-position: 15px -402px;}
#topnav .nav li:active a.sec_4 { background-position: 15px -442px;}
#topnav .topnav_links li a.sec_2 { background-position: 15px -40px;}
#topnav .topnav_links li a.sec_3 { background-position: 15px -80px;}
#topnav .topnav_links li a.sec_4 { background-position: 15px -120px;}
#topnav .topnav_links li:hover a.sec_3 { background-position: 15px -241px;}
#topnav .topnav_links li:hover a.sec_4 { background-position: 15px -281px;}
#topnav .topnav_links li:hover a.sec_2,
#topnav .topnav_links li:active a.sec_2 { background-position: 15px -362px;}
#topnav .topnav_links li:active a.sec_3 { background-position: 15px -402px;}
#topnav .topnav_links li:active a.sec_4 { background-position: 15px -442px;}

#topnav .rightSeparate{

}

#topnav .usercontroller{
    font-size: 13px;
    margin-top: 0;
    margin-right: 40px;
    height: 40px;
    border: none;
}
#topnav .usercontroller .png_button.login{
    top: 0;
    width: 66px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #fff;

}
#topnav .usercontroller .register{
    top: 0;
    line-height: 40px;
    color: #bababa;
}
#topnav .usercontroller .register:hover {
    text-decoration: none;
    color: #fff;
}
#topnav .usercontroller .usernameWrapper{
    margin-top: 8px;

}
#topnav .usercontroller ul.list {
    top: 33px;
}
#topnav .usercontroller ul.list li{
    line-height: 100%;
}
#topnav .usercontroller ul.list li a{
    line-height: 26px;
}
#topnav .nav li #top_nav_game_list_container,
#topnav .topnav_links li #top_nav_game_list_container {
    position: absolute;
    top: 40px;
    left: -5px;
    width: 350px;
    overflow: hidden;
    display: none;
}
#topnav .nav li #top_nav_game_list_container.active,
#topnav .topnav_links li #top_nav_game_list_container.active {
    display: block;
}
#top_nav_game_list{
    background: #1f1e1e;
    line-height: 14px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    box-shadow: 1px 1px 4px #000000;
    margin: 5px;
    margin-top: -3px;
    padding-top: 3px;
    color: #bababa;
}
#topnav .topnav_links ul#top_nav_game_list li:active,
ul#top_nav_game_list li{
    float:none;
    padding: 10px 10px;
    height: 50px;
    background: #1f1e1e;
}
#topnav .topnav_links ul#top_nav_game_list li:active,
#top_nav_game_list li.hover {
    background-color: #292827;
}
#top_nav_game_list li {
    border-top: 1px dashed #292827;
}
#top_nav_game_list li.first {
    border-top: none;
}
#top_nav_game_list li:last-child {
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}
#topnav .nav li #top_nav_game_list a,
#topnav .topnav_links li #top_nav_game_list a{
    padding: 0;
    margin: 0;
    height: auto;
    font-size: 12px;
    line-height: 150%;
    background: none;
}
#topnav .nav li #top_nav_game_list a:hover,
#topnav .topnav_links li #top_nav_game_list a:hover {
    color: #fff;
}
#topnav .nav li #top_nav_game_list a img,
#topnav .topnav_links li #top_nav_game_list a img{
    margin-right: 5px;
}
#top_nav_game_list .game_detail{
    float: left;
    padding: 5px 0px 5px 18px;
    _padding: 5px 0px 5px 0px;
}
#topnav #top_nav_game_list .game_detail a{
    display: inline;
}
#topnav #top_nav_game_list .game_detail h1,
#topnav #top_nav_game_list .game_detail p{
    line-height: 150%;
}
#topnav #top_nav_game_list .game_detail p{
    font-size: 12px;
}
#topnav #top_nav_game_list .game_detail h1 a{
    font-size: 14px;
    font-weight: normal;
    color: #bababa;
}
#topnav .topnav_links li #top_nav_game_list li a.floatLeft {
    display: block;
    width: 90px;
    /*background: url('http://web.xdcdn.net/xd/imgs/v3/topnav_logos.gif?13') -67px 0;*/
}
#topnav .topnav_links li #top_nav_game_list li.hover a {
    background-position:0 0;
}
#topnav .topnav_links li #top_nav_game_list li a.sxd_logo {
    background-position:-67px -52px;
}
#topnav .topnav_links li #top_nav_game_list li a.sg_logo {
    background-position:-67px -104px;
}
#topnav .topnav_links li #top_nav_game_list li a.kt_logo {
    background-position:-67px -156px;
}
#topnav .topnav_links li #top_nav_game_list li a.js_logo {
    background-position:-67px -208px;
}
#topnav .topnav_links li #top_nav_game_list li.hover a.sxd_logo {
    background-position:0 -52px;
}
#topnav .topnav_links li #top_nav_game_list li.hover a.sg_logo {
    background-position:0 -104px;
}
#topnav .topnav_links li #top_nav_game_list li.hover a.kt_logo {
    background-position:0 -156px;
}
#topnav .topnav_links li #top_nav_game_list li.hover a.js_logo {
    background-position:0 -208px;
}

#top_nav_game_list #toggleGamesCenter{
    height: 16px !important;
    padding: 0 !important;
    border-top: none;
    background-color: #292827;
    text-align: center;
}
#top_nav_game_list #toggleGamesCenter:hover{ cursor: pointer; }
#top_nav_game_list #toggleGamesCenter .arrow, #top_nav_game_list #toggleGamesCenter .arrow-active{
    position: relative;
    top: 6px;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid transparent;
    _border-left-color: #292827;
    _border-right-color: #292827;
    _border-bottom-color: #292827;
    border-top-color: #fff;
}
#top_nav_game_list #toggleGamesCenter .arrow-active{
    top: 2px;
    border-top-color: transparent;
    _border-top-color: #292827;
    border-bottom-color: #fff;
}
#top_nav_game_list #toggleGamesCenter:hover .arrow{ border-top-color: #f60; }
#top_nav_game_list #toggleGamesCenter:hover .arrow-active{ border-bottom-color: #f60; }

/*** 给游戏官网用，其实main.css已经有了，但游戏官网没加载，求和谐 ***/
.qq_wpa{
    width: 89px;
    height: 39px;
    padding: 3px 0 0 37px;
    line-height: 38px;
    color: #325F7F;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    text-decoration: none !important;
    text-shadow: none !important;
    display: inline-block;
    cursor: pointer;

   
    zoom: 1;
}
.qq_wpa:hover {
    text-decoration: none !important;
}

.kefu-qq-link{
    width: 92px;
    height: 22px;
    text-indent: -9999px;
    line-height: 22px;
    cursor: pointer;
    overflow: hidden;
    display: inline-block;
    *display: block;
    *zoom: 1;
    background-repeat: no-repeat;

}

div.gamecenter_logo{
    padding:0px;
    margin:0px;
    width:120px;
    height:58px;

}

div.game-center-sg2-nav{ background-position: -15px -10px; }
div.game-center-sy-nav{ background-position: -15px -80px; }
div.game-center-xxd-nav{ background-position: -15px -156px; }
div.game-center-js-nav{ background-position: -15px -222px; }
div.game-center-ktpd-nav{ background-position: -15px -300px; }
div.game-center-sxd-nav{ background-position: -15px -370px; }
div.game-center-sssg-nav{ background-position: -15px -444px; }
div.game-center-tdyx-nav{ background-position: -15px -514px; }

