















.wrap { width: 1440px; margin: 0 auto; position: relative; }
.clearfix::after { content: ""; display: block; clear: both; }


.top { background: #292929; line-height: 37px; height: 37px; color: #ccc; position: relative; z-index: 2999; }
body.skin-dark .top { background: #14171c; color: #9aa4b2; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; }
.top_tool { flex: 1; display: flex; align-items: center; gap: 8px; }
.top_login { display: flex; align-items: center; gap: 12px; }
.top_login a { color: #ccc; }
.top_login a:hover { color: #ff0000; }
.wan-login-btn { color: #ccc !important; margin-left: 24px; cursor: pointer; }
.wan-login-btn:hover { color: #FF4C4B !important; }
.top_skin { display: inline-flex; align-items: center; gap: 6px; color: #ccc; font-size: 13px; vertical-align: middle; }
.top_skin .ti { font-size: 15px; }
.top_skin select { appearance: none; line-height: normal; padding: 3px 24px 3px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; background: rgba(255,255,255,.08) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23cccccc'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 4px center/16px; color: #ddd; font-size: 13px; outline: none; cursor: pointer; }
.top_skin select:hover { border-color: #FF4C4B; }
.top_skin select option { background: #1a1e24; color: #ddd; }


.nav { position: relative; top: auto; z-index: 2999; height: 80px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
body.skin-dark .nav { background: #1a1e24; box-shadow: 0 2px 8px rgba(0,0,0,.5); }

.nav > .wrap { display: flex; align-items: center; height: 80px; }
.nav_logo { float: none; max-height: 80px; max-width: 210px; display: flex; align-items: center; justify-content: center; text-indent: 0; overflow: visible; }
.nav_logo img { max-width: 100%; max-height: 100%; }
.nav_list { float: none; margin-left: 50px; display: flex; align-items: center; height: 80px; flex: 1; }
.nav_list li { float: none; margin: 0 50px 0 0; position: relative; height: 80px; display: flex; align-items: center; }
.nav_list a { display: flex; align-items: center; font-size: 16px; color: #1c1c1c; line-height: 20px; position: relative; }
body.skin-dark .nav_list a { color: #d7dde5; }

.nav_list a:hover, .nav_list li.active a { color: #FF4C4B !important; }
.nav_list li span { position: absolute; bottom: 0; left: 50%; width: 0; height: 4px; background: #FF4C4B; transform: translateX(-50%); border-radius: 3px; transition: all .3s cubic-bezier(.25,.46,.45,.94); }
.nav_list li:hover span, .nav_list li.active span { width: 80%; }
.nav_list a img { max-height: 60px; width: auto; }


.game-directory-trigger { float: none; padding-top: 0; height: 80px; display: flex; align-items: flex-start; }
.game-directory-trigger a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 15px; font-size: 14px; color: #fff; background: #FF4C4B; height: 90px; cursor: pointer; text-align: center; box-sizing: border-box; }
.game-directory-trigger a:hover { color: #fff; text-decoration: none; }
.game-directory-trigger.active a { background: #282A2C; }
.menu-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 20px; height: 20px; }
.menu-icon span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 0; transition: transform .3s, opacity .3s; }
.game-directory-trigger.active .menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.game-directory-trigger.active .menu-icon span:nth-child(2) { opacity: 0; }
.game-directory-trigger.active .menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


.nav_search { position: relative; margin: 0 17px 0 20px; width: 161px; height: 38px; background: #f9f9f9; border: 1px solid #ebebeb; border-radius: 19px; }
body.skin-dark .nav_search { background: #1a1e24; border-color: #2a3038; }
.nav_search input { position: absolute; left: 15px; top: 8px; width: 105px; font-size: 14px; background: transparent; border: 0; outline: none; color: #333; }
body.skin-dark .nav_search input { color: #d7dde5; }
.nav_searchBtn { position: absolute; right: 14px; top: 9px; width: 20px; height: 20px; background: center/18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF4C4B'%3E%3Cpath d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E"); cursor: pointer; }


.game-directory-dropdown { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); width: 1365px; background: #282A2C; z-index: 2998; opacity: 0; visibility: hidden; transition: all .3s ease; }
.game-directory-dropdown.show { opacity: 1; visibility: visible; }
.directory-content { width: 100%; display: flex; padding: 30px 30px 40px; gap: 60px; }
.directory-left { flex: 2; border-right: 1px solid #444; }
.directory-right { flex: 1; display: flex; flex-wrap: wrap; gap: 40px; }
.directory-category { margin-bottom: 25px; width: 100%; }
.directory-category h4 { font-size: 18px; color: #FF4C4B; margin-bottom: 18px; font-weight: 600; position: relative; padding-left: 12px; border-left: 3px solid #FF4C4B; line-height: 1.4; }
.directory-left .directory-category ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 20px; }
.directory-left .directory-category ul li { line-height: 1.5; }
.directory-left .directory-category ul li .navtags-hot,
.directory-left .directory-category ul li .navtags-new,
.directory-left .directory-category ul li .navtags-jing { margin-left: 0; margin-right: 5px; }
.directory-right .directory-category ul { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 54px; }
.directory-right .directory-category ul li { line-height: 1.5; margin-bottom: 0; }
.directory-category ul li a { color: #ccc; font-size: 14px; transition: color .2s; cursor: pointer; display: inline-block; padding: 4px 0; white-space: nowrap; }
.directory-category ul li a:hover { color: #FF4C4B; text-decoration: none; }
.dot-bottom-left { position: absolute; left: 60px; top: -8px; width: 16px; height: 16px; background: #282A2C; transform: rotate(45deg); }


.navtags-hot, .navtags-new, .navtags-jing, .navtags-yugao { padding: 1px 6px; border-radius: 2px; font-size: 11px; line-height: 16px; white-space: nowrap; margin-left: 1px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.navtags-hot { color: #562000 !important; background: #F4CF76; }
.navtags-new { color: #fff !important; background: #00CC00; }
.navtags-jing { color: #fff !important; background: #FF33CC; }
.navtags-yugao { color: #562000 !important; background: #FFCCFF; }


.float-menu { position: fixed; bottom: 30px; right: 20px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.float-menu-item { position: relative; display: flex; align-items: center; justify-content: flex-end; }
.float-menu-btn { display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; user-select: none; background: transparent; border: none; padding: 0; }
.float-menu-btn .kf-icon { width: 78px; height: 85px; display: block; transition: filter 0.3s ease; }
.float-menu-btn .top-icon { width: 78px; height: 85px; display: block; transition: filter 0.3s ease; }
.float-menu-btn:hover .kf-icon, .float-menu-btn:hover .top-icon { filter: brightness(1.2); }
.float-menu-popup { position: absolute; right: 90px; top: 50%; color: #FDFFE4; transform: translateY(-50%) translateX(20px); background: #8C271D; border-radius: 6px; padding: 0; min-width: 220px; opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); border: 1px solid #FEEB84; overflow: hidden; }
.float-menu-popup::after { content: ''; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 10px solid #fff; }
.float-menu-item:hover .float-menu-popup { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.popup-content { padding: 18px 20px 20px; }
.popup-title { font-size: 14px; text-align: center; padding-bottom: 12px; border-bottom: 1px solid #FDFFE4; margin-bottom: 12px; }
.popup-body { display: flex; flex-direction: column; gap: 12px; }
.kf-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kf-label { font-size: 14px; font-weight: 500; }
.kf-value { font-size: 16px; color: #8C271D; font-weight: 600; background: #FDFFE4; padding: 4px 16px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
a.kf-value { text-decoration: none; }
a.kf-value:hover { background: #F6E9B8; }
.qrcode-img { width: 120px; height: 120px; display: block; border-radius: 8px; border: 1px solid #eee; padding: 4px; background: #fff; }


.foot { height: 125px; background: #292929; color: rgba(255,255,255,.5); z-index: 2999; margin-top: 30px; }
.foot .wrap { display: flex; align-items: center; height: 125px; }
.foot_logo { float: none; width: 210px; overflow: hidden; flex-shrink: 0; }
.foot_logo img { width: 100%; max-height: 80px; height: auto; display: block; object-fit: contain; }
.foot_text { float: none; text-align: left; padding-left: 30px; font-size: 12px; letter-spacing: 1px; color: rgba(255,255,255,.5) !important; font-weight: 300; }
.foot_text p { font-size: 12px; line-height: 1.7; margin: 0 0 10px; }


@media (max-width: 1450px) {
  .wrap { width: 100%; max-width: 1440px; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
  .game-directory-dropdown { width: min(1365px, 96vw); }
  .directory-content { flex-wrap: wrap; }
  .directory-left { border-right: 0; }
}
@media (max-width: 1200px) {
  .nav_list { margin-left: 16px; }
  .nav_list li { margin-right: 24px; }
}
@media (max-width: 900px) {
  .nav_search { display: none; }
}
@media (max-width: 768px) {
  .top { display: none; }
  .nav { height: auto; }
  .nav > .wrap { flex-wrap: wrap; padding: 8px 12px; gap: 8px; height: auto; }
  .nav-logo-img { height: 34px !important; }
  .nav_list { margin-left: 0; flex-wrap: wrap; height: auto; order: 3; width: 100%; }
  .nav_list li { height: 40px; margin-right: 18px; }
  .nav_list li span { display: none; }
  .game-directory-trigger { height: auto; }
  .game-directory-trigger a { height: 56px; padding: 0 12px; gap: 4px; }
  .game-directory-dropdown { top: 100%; width: 100vw; left: 0; transform: none; }
  .directory-content { flex-direction: column; gap: 24px; padding: 20px 16px 28px; }
  .directory-left .directory-category ul, .directory-right .directory-category ul { grid-template-columns: repeat(2, 1fr); }
  .float-menu { bottom: 80px; right: 12px; gap: 8px; }
  
  .float-left-image { left: 6px; bottom: 10px; }
  .float-left-image img { max-width: 88px; }
  .float-left-image-jiabei { left: 6px; bottom: 110px; }
  .float-left-image-jiabei img { max-width: 88px; }
  .float-menu-btn .kf-icon { width: 60px; height: 65px; }
  .float-menu-btn .top-icon { width: 48px; height: 48px; }
  .float-menu-popup { min-width: 180px; right: 75px; }
  .qrcode-img { width: 100px; height: 100px; }
  .foot { height: auto; padding: 20px 16px; }
  .foot .wrap { flex-direction: column; height: auto; gap: 10px; text-align: center; }
  .foot_logo { width: 160px; }
  .foot_text { padding-left: 0; text-align: center; }
}
@media (max-width: 480px) {
  .float-menu { bottom: 60px; right: 8px; gap: 6px; }
  .float-left-image img { max-width: 70px; }
  .float-left-image-jiabei img { max-width: 70px; }
  .float-menu-btn .kf-icon { width: 50px; height: 54px; }
  .float-menu-btn .top-icon { width: 40px; height: 40px; }
  .float-menu-popup { min-width: 160px; right: 60px; }
  .qrcode-img { width: 90px; height: 90px; }
}

