/*
Theme Name: SHJ56 物流主题
Theme URI: https://shj56.com/
Author: SHJ56
Description: 顺和佳物流公司官方网站 WordPress 自定义主题。
Version: 1.0
Text Domain: shj56
*/

/* 基础样式重置 */
body {
    margin: 0;
    padding: 0;
    font-family: inherit;
}

/* WordPress 导航菜单兼容样式 */
/* 原 CSS 依赖 .mainlevel 类, WordPress 输出普通 li 标签 */
#nav>li {
    float: left;
    width: 116px;
    list-style: none;
}

#nav>li>a {
    color: #fff;
    text-decoration: none;
    line-height: 46px;
    display: block;
    padding: 0;
    width: 116px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    font-family: "微软雅黑", sans-serif;
}

#nav>li>a:hover {
    color: #fff;
    background: #6ac0f1;
    text-decoration: none;
}

/* WordPress 菜单项的下拉子菜单 */
#nav>li>ul.sub-menu {
    display: none;
    position: absolute;
    z-index: 999;
    background: #5bb7eb;
    margin: 0;
    padding: 0;
}

#nav>li:hover>ul.sub-menu {
    display: block;
}

#nav>li>ul.sub-menu li {
    list-style: none;
    width: 116px;
    background: #5bb7eb;
}

#nav>li>ul.sub-menu li a {
    color: #fff;
    text-decoration: none;
    line-height: 35px;
    display: block;
    height: 35px;
    text-align: center;
    font-size: 13px;
    font-weight: 100;
}

#nav>li>ul.sub-menu li a:hover {
    color: #1b8851;
    text-decoration: none;
}

/* 修复 WordPress 管理栏对页面的偏移影响 */
.admin-bar .head {
    margin-top: 0;
}
/* === 导航子菜单下拉 === */
#nav .mainlevel { float:left; width:116px; position:relative; }
#nav .mainlevel a { color:#fff; text-decoration:none; line-height:46px; display:block; padding:0; width:116px; text-align:center; }
#nav .mainlevel a:hover { color:#fff; background:#6ac0f1; }
#nav .mainlevel1 { display:none; position:absolute; top:46px; left:0; z-index:999; width:116px; margin:0; padding:0; background:#5bb7eb; }
#nav .mainlevel1 li { list-style:none; height:35px; line-height:35px; overflow:hidden; font-weight:100; }
#nav .mainlevel1 a { color:#fff; text-decoration:none; line-height:35px; display:block; width:116px; height:35px; text-align:center; font-size:13px; }
#nav .mainlevel1 a:hover { color:#1b8851; background:#e0f4ff; }
#nav .mainlevel:hover .mainlevel1 { display:block; }
