/* GameFrameX 后台管理界面样式（无 npm 依赖） */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #303133;
    background-color: #f5f7fa;
}

#app {
    height: 100%;
}

/* ------------------------------ 登录页 ------------------------------ */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #1f3a68 0%, #2f5c9e 100%);
}

.login-card {
    width: 380px;
    padding: 36px 40px 24px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.login-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: #1f3a68;
}

.login-subtitle {
    margin: 8px 0 24px;
    font-size: 13px;
    text-align: center;
    color: #909399;
}

.login-button {
    width: 100%;
    margin-top: 4px;
}

/* ------------------------------ 主框架 ------------------------------ */

.layout {
    height: 100%;
}

.layout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 20px;
    background-color: #1f3a68;
    color: #ffffff;
}

.layout-brand {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
}

.layout-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.layout-user-name {
    font-size: 14px;
    color: #e4eaf5;
}

.layout-user .el-button {
    color: #ffd04b;
}

.layout-body {
    height: calc(100% - 56px);
}

.layout-aside {
    background-color: #ffffff;
    border-right: 1px solid #e4e7ed;
    overflow-y: auto;
}

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

.layout-main {
    padding: 16px;
    background-color: #f5f7fa;
    overflow-y: auto;
}

/* ------------------------------ 通用 CRUD ------------------------------ */

.crud {
    padding: 16px;
    background-color: #ffffff;
    border-radius: 4px;
}

.crud-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.crud-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.crud-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crud-pager {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}
