/* ========== 全局样式 & 左侧淡蓝色主题 ========== */
body {
    background-color: #f2f3f5;
    overflow-x: hidden;
}

/* 重写左侧侧边栏背景为淡蓝色 */
.layui-layout-admin .layui-side {
    background-color: #d4e6f1;   /* 淡蓝色基调 */
    width: 240px;
    transition: all 0.2s;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.03);
}

/* 侧边滚动区域保持同色 */
.layui-side-scroll {
    background-color: #d4e6f1;
    width: auto;
    padding: 15px 0;
}

/* 自定义单层菜单（无折叠，无箭头） */
.simple-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.simple-menu li {
    margin: 8px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.simple-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #1e4663;
    border-radius: 12px;
    transition: all 0.2s;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
    gap: 12px;
}

.simple-menu li a i {
    font-size: 20px;
    color: #2c6b9e;
    transition: color 0.2s;
}

/* 菜单 hover 效果 */
.simple-menu li a:hover {
    background-color: #ecf5fa;
    color: #0a314b;
    transform: translateX(4px);
}

.simple-menu li a:hover i {
    color: #1f5a88;
}

/* 激活菜单样式 */
.simple-menu li.active {
    background-color: #5d9fcf;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.simple-menu li.active a,
.simple-menu li.active a i {
    color: white;
}

.simple-menu li.active a {
    font-weight: 600;
}

/* 顶部header样式 */
.layui-header {
    background-color: #ffffff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e9ecef;
    height: 60px;
}

.layui-logo {
    color: #2c6b9e;
    font-weight: 600;
    background-color: #fff;
    border-right: 1px solid #eef2f6;
    line-height: 60px;
    font-size: 18px;
}

.layui-nav .layui-nav-item a {
    color: #4a5b6e;
}

/* 右侧主体区域 (iframe容器) */
.layui-body {
    background-color: #f5f7fb;
    left: 240px;
    padding: 15px 20px;
    overflow-y: auto;
    bottom: 0;
}

/* iframe 卡片容器 */
.iframe-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.iframe-card-header {
    padding: 12px 20px;
    background: #fafcfd;
    border-bottom: 1px solid #eef2f6;
    font-size: 16px;
    font-weight: 500;
    color: #1e4663;
}

.iframe-card-header i {
    margin-right: 8px;
    color: #5d9fcf;
}

.iframe-container {
    flex: 1;
    width: 100%;
    background: #fff;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    .layui-layout-admin .layui-side {
        width: 200px;
    }
    .layui-body {
        left: 200px;
        padding: 12px;
    }
    .simple-menu li a {
        padding: 10px 12px;
        font-size: 13px;
    }
    .iframe-card {
        height: calc(100vh - 100px);
    }
}

/* 底部可选（简约） */
.footer-placeholder {
    text-align: center;
    font-size: 12px;
    color: #a0b3c9;
    padding: 12px 0 4px;
}