html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ========== 登录页 ========== */
.login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #0e4494 0%, #0e4494 100%);
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 420px;
}

.login-card h3 {
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ========== 侧边栏布局 ========== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #001529;
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar .logo {
    padding: 1.2rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar .nav-menu {
    padding: .5rem 0;
    flex: 1;
}

.sidebar .nav-item {
    display: block;
    padding: .7rem 1.5rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: all .2s;
    border-left: 3px solid transparent;
}

.sidebar .nav-item:hover,
.sidebar .nav-item.active {
    color: #fff;
    background: #1890ff22;
    border-left-color: #1890ff;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f5f7fa;
}

.app-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: .8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-header .user-info {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.app-content {
    flex: 1;
    padding: 1.5rem;
    background: #f5f7fa;
    overflow: auto;
}

/* ========== 通用卡片 ========== */
.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-card .label {
    color: #666;
    font-size: .85rem;
    margin-bottom: .4rem;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1890ff;
}

.stat-card.ok .value { color: #52c41a; }
.stat-card.warn .value { color: #faad14; }
.stat-card.danger .value { color: #f5222d; }

/* ========== 侧边栏：一级/二级菜单增强 ========== */
.sidebar .nav-item-top {
    padding: .85rem 1.5rem;
    font-weight: 500;
    font-size: .95rem;
}

.sidebar .nav-item-sub {
    padding: .55rem 1.5rem .55rem 3.1rem;
    font-size: .88rem;
    color: rgba(255,255,255,0.65);
    border-left-width: 3px;
}

.sidebar .nav-item-sub:hover,
.sidebar .nav-item-sub.active {
    background: #1890ff18;
    border-left-color: #1890ff;
    color: #fff;
}

.sidebar .nav-item-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    user-select: none;
}

.sidebar .nav-item-toggle .ico {
    flex: 0 0 auto;
    width: 1.4rem;
    text-align: center;
    display: inline-block;
}

.sidebar .nav-item-toggle .chev {
    margin-left: auto;
    font-size: .78rem;
    opacity: .7;
    transition: transform .2s;
}

.sidebar .nav-item-top .ico {
    display: inline-block;
    width: 1.5rem;
    text-align: center;
    margin-right: .45rem;
}

.sidebar .nav-group {
    margin: 2px 0;
}

.sidebar .nav-item.disabled,
.sidebar .nav-item-sub.disabled {
    opacity: .4;
    cursor: not-allowed;
    background: transparent !important;
    border-left-color: transparent !important;
    color: rgba(255,255,255,0.5) !important;
    pointer-events: none;
}

.sidebar-footer {
    padding: .8rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: .75rem;
    opacity: .6;
}

/* 顶栏：空心角色关联 badge */
.app-header .badge.bg-outline {
    border: 1px solid #d0d7de;
    color: #57606a;
    background: transparent;
    font-weight: 500;
}
a {
    font-size:11pt;color:#333;text-decoration-line:none;
}

a:hover {
    color: #0e4494;
}
.row > div{
    margin: 5px 0;
    padding: 10px 10px 15px 15px;
    font-weight: bold;
    border-bottom: 2px solid #fefefe;
    background: #fafafa;
}
.row > div > label {
    font-weight: bold;
}