html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #f0f2f5;
}

#app {
    height: 100%;
}

/* 整体布局 */
.admin-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.admin-header {
    height: 56px;
    background: #001529;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.admin-header .logo {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-header .user-info .email {
    font-size: 14px;
}

.admin-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.admin-aside {
    background: #fff;
    flex-shrink: 0;
    transition: width 0.2s;
    border-right: 1px solid #e6e6e6;
    overflow-x: hidden;
}

.admin-aside .collapse-btn {
    text-align: center;
    padding: 8px 0;
    cursor: pointer;
    color: #909399;
    border-bottom: 1px solid #e6e6e6;
}

.admin-aside .el-menu {
    border-right: none;
}

.admin-main {
    flex: 1;
    overflow: auto;
    padding: 16px;
}

/* 内容区顶部：返回按钮 + 页面标题 */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.page-header .page-title {
    font-size: 18px;
    font-weight: bold;
    color: #303133;
}

/* 返回：图标 + 文字 */
.page-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #409eff;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.page-back:hover {
    color: #66b1ff;
}

/* 页面卡片 */
.page-card {
    background: #fff;
    padding: 16px;
    border-radius: 4px;
}

.page-toolbar {
    margin-bottom: 12px;
}

.page-pagination {
    margin-top: 16px;
    text-align: right;
}

/* 登录页 */
.login-page {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
}

.login-card {
    width: 380px;
}

.login-card .login-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #303133;
}

.login-card .el-button {
    width: 100%;
}

/* 二维码弹窗 */
.totp-qr-box {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

/* shell 弹窗 */
.shell-dialog .el-dialog__body {
    padding: 10px;
}

.shell-terminal {
    width: 100%;
    height: 420px;
    background: #000;
    padding: 4px;
}

/* ota 进度弹窗 */
.ota-log {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 10px;
    height: 320px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 审核占位页 */
.empty-placeholder {
    text-align: center;
    color: #909399;
    padding: 80px 0;
    font-size: 14px;
}
