/* PC最终导航与背景修复 */

/* 页面整体背景 */
html,
body.ref95-blue {
    background: #f3f6fa !important;
}

/* 顶部导航 */
body.ref95-blue .eyou_nav {
    position: relative !important;
    z-index: 999 !important;
    overflow: visible !important;
    background: linear-gradient(
        90deg,
        #1269e8 0%,
        #1677f2 55%,
        #2586f5 100%
    ) !important;
    box-shadow: 0 4px 12px rgba(18, 105, 232, .12);
}

body.ref95-blue #menu,
body.ref95-blue .eyou_zdh {
    overflow: visible !important;
}

body.ref95-blue .eyou_nav .nav-item {
    position: relative !important;
    overflow: visible !important;
}

/* 普通导航悬停，不再变成大片白色 */
body.ref95-blue .eyou_nav .nav-item:hover > a {
    background: #095ecf !important;
    color: #ffffff !important;
}

/* 当前栏目仍保持白底 */
body.ref95-blue .eyou_nav a.menu-active {
    background: #ffffff !important;
    color: #1269e8 !important;
}

/*
 * 彻底覆盖旧二级菜单
 * 默认隐藏，只有鼠标经过当前栏目时显示
 */
body.ref95-blue .ey_sme {
    display: none !important;
    position: absolute !important;
    top: 50px !important;
    left: 50% !important;
    right: auto !important;

    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 10px !important;

    overflow: visible !important;

    transform: translateX(-50%) !important;

    border: 0 !important;
    border-radius: 0 0 8px 8px !important;

    background: #0d65d8 !important;
    box-shadow: 0 10px 25px rgba(7, 65, 145, .24) !important;

    z-index: 99999 !important;
}

/* 悬停才显示 */
body.ref95-blue .nav-item:hover > .ey_sme {
    display: block !important;
}

/* 清除旧三角形、背景图和装饰 */
body.ref95-blue .ey_sme::before,
body.ref95-blue .ey_sme::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    content: none !important;
    background: none !important;
}

/* 子菜单使用两列紧凑排列 */
body.ref95-blue .ey_sme ul {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;

    background: transparent !important;
}

/* 清除旧li固定尺寸 */
body.ref95-blue .ey_sme li {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;
    display: block !important;

    background: transparent !important;
}

/* 子菜单按钮 */
body.ref95-blue .ey_sme li a {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 5px !important;

    background: rgba(255, 255, 255, .10) !important;
    color: #ffffff !important;

    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 40px !important;

    text-align: center !important;
    white-space: nowrap !important;
}

body.ref95-blue .ey_sme li a:hover {
    border-color: #ffffff !important;
    background: #ffffff !important;
    color: #1269e8 !important;
}

/* 左右边缘栏目避免菜单超出屏幕 */
body.ref95-blue .nav-item:first-child .ey_sme,
body.ref95-blue .nav-item:nth-child(2) .ey_sme {
    left: 0 !important;
    transform: none !important;
}

body.ref95-blue .nav-item:nth-last-child(-n+2) .ey_sme {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
}

/* 首页内容卡片统一 */
body.ref95-blue nav.w1200,
body.ref95-blue .ey_rot,
body.ref95-blue .eyou_tod,
body.ref95-blue .game_news,
body.ref95-blue .hot_gl,
body.ref95-blue .latest_gl,
body.ref95-blue .eyou_gall,
body.ref95-blue .ey_ruanjian,
body.ref95-blue .index_rank,
body.ref95-blue .link {
    border: 1px solid #dde6f1 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    box-shadow: 0 5px 18px rgba(27, 72, 130, .045) !important;
}

/* 查看按钮彻底恢复横向 */
body.ref95-blue .ey_gclt .ey_down {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;

    height: 38px !important;
    min-height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    position: static !important;
    float: none !important;

    overflow: hidden !important;
    transform: none !important;

    border: 0 !important;
    border-radius: 6px !important;

    background: #1677f2 !important;
    color: #ffffff !important;

    font-size: 14px !important;
    line-height: 38px !important;
    letter-spacing: 0 !important;
    text-indent: 0 !important;

    writing-mode: horizontal-tb !important;
    white-space: nowrap !important;
}

body.ref95-blue .ey_gclt .ey_down:hover {
    background: #095ecf !important;
}

/* 中等屏幕缩小二级菜单 */
@media screen and (max-width: 1250px) {
    body.ref95-blue .ey_sme {
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
    }
}
