/* Shared company header and footer. Page-specific content styles remain local to each page. */
html.site-chrome-loading nav.game-nvabar,
html.site-chrome-loading .footer {
    visibility: hidden;
}

/* 内容较高时仍可滚动，但不保留宽大的默认滚动条轨道。 */
html,
body {
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 185, 220, 0.58) transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(155, 185, 220, 0.58);
    border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: rgba(190, 215, 245, 0.78);
}

/* Shared circular close control for modal dialogs. */
.site-modal-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(164, 208, 255, 0.5);
    border-radius: 50%;
    color: #bfe8ff;
    background: rgba(4, 18, 37, 0.28);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.site-modal-close:hover {
    border-color: #ffff00;
    color: #ffff00;
    background: rgba(255, 255, 0, 0.1);
    transform: rotate(90deg);
}

.site-modal-close:focus-visible {
    outline: 2px solid rgba(255, 255, 0, 0.78);
    outline-offset: 2px;
}

.site-modal-close--large {
    top: 10px;
    right: 13px;
    width: 30px;
    height: 30px;
    font-size: 20px;
}

.site-header.game-nvabar {
    background: var(--fy-platform-game-header, url('/static/img/bg/game_header_bg.png')) center center / cover no-repeat !important;
    width: 100% !important;
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.site-header .container-game {
    width: 800px !important;
    max-width: 100%;
    height: 60px !important;
    margin: 0 auto !important;
    padding: 0 50px;
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.site-header .container-game > ul.site-nav {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 60px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.site-header .container-game > ul.site-nav > li {
    list-style: none;
    float: none;
    height: 60px;
    margin: 0;
    padding: 0 10px;
    line-height: 60px;
    transition: all 0.3s;
}

.site-header .container-game > ul.site-nav > li.site-logo {
    position: static !important;
    top: auto !important;
    padding: 0 10px 0 0;
}

.site-header .container-game > ul.site-nav > li.site-logo a {
    display: block;
    height: 60px;
    line-height: 60px;
    position: static !important;
    top: auto !important;
}

.site-header .container-game > ul.site-nav > li.site-logo img {
    position: relative;
    top: 10px;
    display: block;
}

.site-header .container-game > ul.site-nav > li > a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
}

.site-header .container-game > ul.site-nav > li.site-active > a,
.site-header .container-game > ul.site-nav > li > a:hover {
    color: #ffff00;
}

.site-header .container-game .site-member-info {
    position: static;
    min-width: 0;
    height: 60px;
    margin-left: auto;
    line-height: 60px;
    color: #ffffff;
    text-align: right;
    white-space: nowrap;
}

.site-header .container-game .site-member-info #member-info {
    color: #ffff00;
    font-size: 15px;
}

.site-header .container-game .site-member-info span {
      padding-left: 5px;
      color: #ffffff;
      font-size: 15px;
      cursor: pointer;
  }

/* Guest state: keep authentication actions visible and aligned to the right. */
.site-header .container-game .site-member-info.site-guest-info {
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      line-height: normal;
  }

.site-header .container-game .site-member-info .site-auth-link {
      padding: 0;
      color: #ffffff;
      font-size: 15px;
      text-decoration: none;
      cursor: pointer;
  }

.site-header .container-game .site-member-info .site-auth-link:hover,
.site-header .container-game .site-member-info .site-auth-link:focus-visible {
      color: #ffff00;
  }

/* 与角色查询结果一致的发光竖向分隔符，可在任何并排信息中复用。 */
.site-glow-divider {
    display: inline-block;
    flex: 0 0 1px;
    width: 1px;
    height: 1em;
    margin: 0 8px;
    border-radius: 2px;
    background: linear-gradient(to bottom, transparent 0%, rgba(200, 200, 200, 0.2) 17%, rgba(200, 200, 200, 0.92) 50%, rgba(200, 200, 200, 0.2) 83%, transparent 100%);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.site-header .container-game .site-member-info .site-auth-separator {
    min-width: 1px;
    max-width: 1px;
    padding: 0 !important;
    cursor: default;
}

.site-footer.footer {
    position: relative;
    clear: both;
    background-color: #050a14 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .container-footer {
    width: min(800px, calc(100% - 32px));
    max-width: 800px;
    margin: 0 auto;
    padding: 9px 0 10px;
    box-sizing: border-box;
    color: #e8f0fb;
    text-align: left;
    line-height: 20px;
    font-size: 14px;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(245px, 0.92fr) minmax(0, 1.8fr);
    column-gap: 18px;
    row-gap: 2px;
    align-items: center;
}

.site-footer-cell {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-footer-legal,
.site-footer-notice {
    min-height: 20px;
    display: flex;
    align-items: center;
}

.site-footer-legal--indented {
    padding-left: 23px;
}

/* 兼容旧版页脚脚本缓存：第二、三行始终与第一行文字起点对齐。 */
.site-footer-grid > .site-footer-legal:not(:first-child) {
    padding-left: 23px;
}

.site-footer-notice {
    color: #dce8f7;
}

.site-footer .beian {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer .beian:hover {
    color: #ffff00;
}

.site-footer .container-footer img {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    vertical-align: middle !important;
}

/* Shared content-area baseline for the company and product sites.  The
 * animated canvas remains visible; legacy full-page bitmap backgrounds are
 * intentionally suppressed. */
.game-content {
    min-height: 909px !important;
    background-image: none !important;
}

.game-content-one,
.game-content > .container,
.game-content .game-list {
    width: min(800px, calc(100% - 32px)) !important;
    max-width: calc(100% - 32px) !important;
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 窄窗口下导航在自己的区域内横向滚动，不能把整个页面撑出水平滚动条。 */
@media (max-width: 800px) {
    .site-header .container-game {
        width: 100% !important;
        max-width: 100%;
        padding: 0 12px;
    }

    .site-header .container-game > ul.site-nav {
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-header .container-game > ul.site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-header .container-game > ul.site-nav > li {
        padding-left: 6px;
        padding-right: 6px;
    }

    .site-header .container-game > ul.site-nav > li.site-logo {
        padding-right: 6px;
    }

    .site-header .container-game .site-member-info {
        flex: 0 0 auto;
        margin-left: 8px;
    }

    .site-header .container-game > ul.site-nav > li > a,
    .site-header .container-game .site-member-info #member-info,
    .site-header .container-game .site-member-info span,
    .site-header .container-game .site-member-info .site-auth-link {
        font-size: 14px;
    }

    .site-footer .container-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
        row-gap: 1px;
    }

    .site-footer-cell {
        white-space: normal;
        line-height: 18px;
    }
}

/* 880px 左右的手机/窄屏预览也要切换为单列，避免页脚左右两栏互相挤压。 */
@media (max-width: 960px) {
    .site-footer .container-footer {
        width: calc(100% - 24px);
        max-width: 800px;
        padding: 10px 0 12px;
        text-align: center;
        line-height: 20px;
        font-size: 14px;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
        row-gap: 0;
        justify-items: center;
    }

    .site-footer-cell {
        width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 20px;
        justify-content: center;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .site-footer-grid > .site-footer-legal {
        order: 1;
        padding-left: 0 !important;
    }

    .site-footer-grid > .site-footer-notice {
        order: 2;
    }
}

@media (max-width: 1200px) {
    .site-footer .container-footer {
        width: min(800px, calc(100% - 32px));
    }
}
