/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body{
    margin: 0;
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

#app {
    height: 100%;
    width: 100%;
}
ul,
li {
    list-style: none;
}

a {
    text-decoration: none;
}
.container{
    padding:15px;
}
/* 左侧菜单双击不选中文字 */
.layout-aside {
    user-select: none;
    -webkit-user-select: none;
}

/* 登录页面居中 */
.login-box {
    margin: 180px auto 0;
    width: 420px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.login-title {
    text-align: center;
    font-size: 24px;
    color: #303133;
    margin-bottom: 24px;
}

.login-btn {
    width: 100%;
    font-size: 16px;
}

/* ElementPlus 布局覆盖 */
.el-container {
    height: 100vh;
}

.el-header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.el-main {
    background: #f5f7fa;
    padding: 0px;
    position: relative;
}

.el-overlay{
    position: absolute !important;
}

.el-card {
    margin-bottom: 16px;
}

/* 表格、分页间距 */
.el-table {
    margin: 16px 0;
}

.el-pagination {
    text-align: right;
}

/* 侧边栏菜单文字 */
.el-menu {
    border-right: none;
}

/* 弹窗底部按钮右对齐 */
.el-dialog__footer {
    text-align: right;
}

/* 表单统一间距 */
.el-form-item {
    margin-bottom: 18px;
}

/* ===== 亮色侧边栏 ===== */
.layout-aside {
    background: #fff;
    border-right: 1px solid #e6e6e6;
    overflow: hidden;
    transition: width 0.2s;
}
.layout-aside .logo {
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #303133;
    white-space: nowrap;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}
.layout-aside .el-menu {
    border-right: none;
    background: #fff;
}
.layout-aside .el-menu-item {
    color: #303133;
}
.layout-aside .el-menu-item.is-active {
    background: #ecf5ff;
    color: #409eff;
}
.layout-aside .el-menu-item:hover {
    background: #f5f7fa;
}

/* ===== 顶栏 ===== */
.layout-header {
    height: 50px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    box-shadow: none;
}
.collapse-btn {
    font-size: 20px;
    color: #606266;
    cursor: pointer;
    margin-right: 12px;
}
.collapse-btn:hover {
    color: #409eff;
}
.header-title {
    font-size: 15px;
    color: #303133;
}
/* 顶栏左侧（折叠按钮 + 标题） */
.header-left {
    display: flex;
    align-items: center;
}
/* 顶栏右侧（用户信息 + 退出登录） */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #303133;
    font-size: 14px;
}
.user-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.logout-btn {
    padding: 4px 12px;
}

/* ===== 小屏适配（<768px） ===== */
@media (max-width: 768px) {
    .header-title {
        font-size: 14px;
    }
    .el-main {
        padding: 12px;
    }
}

/* ===== 列表页：分页固定底部，表格区独立滚动 ===== */
.page-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.toolbar {
    flex-shrink: 0;
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}
.table-scroll {
    flex: 1;
    min-height: 0;
    padding: 12px;
}
.table-scroll .el-table {
    margin: 0;
}
.pagination-bar {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #fff;
    border-radius: 0px;
    padding: 10px 15px;
    border-top: 1px solid #e6e6e6;
}
/* Browser 页：地址栏固定，iframe 占满剩余空间 */
.browser-bar {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}
.browser-bar .el-input {
    flex: 1;
}
.browser-frame {
    flex: 1;
    min-height: 0;
    padding: 0px;
}
.browser-frame .browser-iframe {
    width: 100%;
    height: 100%;
    border: 0px solid #e6e6e6;
    border-radius: 0px;
    background: #fff;
    display: block;
}
.el-drawer__header{
    margin-bottom: 0px !important;
    background: #ecf5ff;
    padding: 10px 20px;
    border-bottom: 1px solid #e6e6e6;
}
.el-drawer__footer{
    background: #f7f7f7;
    padding: 10px 20px;
    border-top: 1px solid #e6e6e6;
}

/* 压屏幕调整 */
.ltr,.rtl{
    max-width: 500px;
}
.ttb,.btt{
    max-height: 350px;
}