/* 赠险后台 - 公共样式 */
html, body {
    margin: 0;
    padding: 0;
    background: #f2f3f5;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #2f4056;
}

/* 左侧导航 */
.zx-side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 220px;
    background: #1f2d3d;
    overflow-y: auto;
    z-index: 1000;
}

.zx-logo {
    height: 60px;
    line-height: 60px;
    background: #18222c;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding-left: 20px;
    letter-spacing: 1px;
    /* 固定在侧边栏顶部，菜单滚动时标题常驻 */
    position: sticky;
    top: 0;
    z-index: 2;
}

/* 覆盖 layui 自带 .layui-nav-side{position:fixed;top:0;left:0}，
   否则菜单会脱离文档流浮到顶部，与 .zx-logo 标题重叠 */
.zx-nav {
    background: transparent !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    min-height: 0 !important;
}

.zx-nav .layui-nav-item {
    width: 100%;
}

.zx-nav .layui-nav-item > a {
    color: #c0ccda !important;
    padding-left: 20px;
}

.zx-nav .layui-nav-item > a:hover {
    background: #273444 !important;
    color: #fff !important;
}

.zx-nav .layui-nav-itemed > a {
    background: #18222c !important;
    color: #fff !important;
}

.zx-nav .layui-nav-child {
    background: #18222c !important;
    padding: 0;
}

.zx-nav .layui-nav-child dd a {
    color: #a9b6c9 !important;
    padding-left: 44px !important;
}

.zx-nav .layui-nav-child dd.layui-this a,
.zx-nav .layui-nav-child dd a:hover {
    color: #fff !important;
    background: #1f2d3d !important;
}

.zx-nav .layui-nav-item.layui-this > a {
    background: #009688 !important;
    color: #fff !important;
}

/* 右侧主体 */
.zx-main {
    margin-left: 220px;
    min-height: 100vh;
}

.zx-topbar {
    height: 60px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.zx-user-name {
    color: #5a6b82;
    margin-right: 14px;
}

.zx-btn-logout {
    color: #8492a6;
}

.zx-btn-logout:hover {
    color: #ff5722;
}

.zx-content {
    padding: 16px;
}

.zx-footer {
    text-align: center;
    color: #a6b3c4;
    font-size: 12px;
    padding: 20px 0 30px;
}

/* 卡片 */
.zx-card {
    background: #fff;
    border-radius: 4px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.zx-search {
    padding-top: 4px;
}

.zx-search .layui-inline {
    margin-bottom: 6px;
}

/* 统计卡片 */
.zx-stat {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.zx-stat-item {
    flex: 1;
    min-width: 170px;
    background: #fff;
    border-radius: 4px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    border-left: 4px solid #009688;
}

.zx-stat-item .num {
    font-size: 26px;
    font-weight: 600;
    color: #1f2d3d;
    line-height: 1.2;
}

.zx-stat-item .label {
    color: #8492a6;
    font-size: 13px;
    margin-top: 8px;
}

.zx-stat-item.blue { border-left-color: #1e9fff; }
.zx-stat-item.orange { border-left-color: #ffb800; }
.zx-stat-item.green { border-left-color: #5fb878; }
.zx-stat-item.red { border-left-color: #ff5722; }

/* 趋势条 */
.zx-trend {
    display: flex;
    align-items: flex-end;
    height: 140px;
    gap: 18px;
    padding: 10px 0 0;
}

.zx-trend-col {
    flex: 1;
    text-align: center;
}

.zx-trend-bar {
    background: linear-gradient(180deg, #1e9fff, #009688);
    border-radius: 3px 3px 0 0;
    margin: 0 auto;
    width: 42px;
    min-height: 3px;
}

.zx-trend-num {
    font-size: 12px;
    color: #5a6b82;
    margin-bottom: 4px;
}

.zx-trend-day {
    font-size: 12px;
    color: #a6b3c4;
    margin-top: 6px;
}

/* 登录页 */
.zx-login-body {
    background: linear-gradient(135deg, #1f2d3d, #3a556f);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zx-login-box {
    width: 380px;
    background: #fff;
    border-radius: 6px;
    padding: 32px 34px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.zx-login-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 22px;
    color: #1f2d3d;
}

.zx-login-tip {
    text-align: center;
    color: #a6b3c4;
    font-size: 12px;
    margin-top: 14px;
}

/* 权限树 */
.zx-tree {
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    padding: 12px 16px;
    max-height: 460px;
    overflow: auto;
}

.zx-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 22px;
}

.zx-tree > ul {
    padding-left: 0;
}

.zx-tree li {
    line-height: 30px;
}

.zx-tree .zx-tree-label {
    margin-left: 4px;
    font-size: 14px;
}

.zx-tree .zx-tree-tag {
    color: #a6b3c4;
    font-size: 12px;
    margin-left: 6px;
}
