/* 数据管理台独立站 全局样式(登录页样式沿用主后台深色风格;表格样式从主站 app.css 迁出) */
html, body, #app { height: 100%; margin: 0; }
* { box-sizing: border-box; }
body { font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; }

/* ===== 登录页(逐字沿用主站登录深色样式,标题换为数据管理台) ===== */
.login-container { position: fixed; width: 100%; height: 100%; height: 100vh; background-color: #2d3a4b; }
.login-container input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #293444 inset !important; -webkit-text-fill-color: #fff !important; }
.login-container input { background: transparent; border: 0; -webkit-appearance: none; border-radius: 0; padding: 12px 5px 12px 15px; color: #eee; height: 47px; }
.login-container .el-input { display: inline-block; height: 47px; width: 85%; }
.login-container .svg-container { padding: 6px 5px 6px 15px; color: #889aa4; vertical-align: middle; width: 30px; display: inline-block; }
.login-container .title { font-size: 38px; color: #eee; margin: 0 auto 30px; text-align: center; font-weight: 700; display: flex; justify-content: center; align-items: center; }
.login-container .login-form { position: absolute; left: 0; right: 0; width: 400px; padding: 35px 35px 15px; margin: 120px auto; }
.login-container .el-form-item { border: 1px solid hsla(0, 0%, 100%, .1); background: rgba(0, 0, 0, .1); border-radius: 5px; color: #454545; }

/* ===== 控制台布局:顶栏 + 全屏内容 ===== */
.console-wrapper { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.console-topbar { height: 60px; background: #304156; color: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.console-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.console-brand i { font-size: 24px; }
.console-user { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.console-username i { margin-right: 4px; }
.console-logout { cursor: pointer; color: #cfd8e3; }
.console-logout:hover { color: #409EFF; }
.console-main { flex: 1; overflow: auto; background: #fff; }

/* ===== 管理台页面(从主站 app.css 迁出) ===== */
.page { padding: 20px; }
.admin-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.admin-toolbar .el-upload { margin-right: 10px; }
.admin-label { font-size: 14px; color: #606266; }
.admin-status { font-size: 13px; color: #909399; margin-left: 6px; }
.admin-status .dirty { color: #e6a23c; font-weight: 700; padding: 0 2px; }
.admin-tip { font-size: 13px; color: #909399; margin-bottom: 8px; line-height: 1.7; }
.admin-grid-wrap { border: 1px solid #dcdfe6; border-radius: 2px; max-height: calc(100vh - 290px); overflow: auto; outline: none; background: #fff; }
.admin-grid { border-collapse: separate; border-spacing: 0; font-size: 12px; color: #606266; }
.admin-grid th, .admin-grid td { border-right: 1px solid #ebeef5; border-bottom: 1px solid #ebeef5; padding: 0 8px; height: 28px; white-space: nowrap; text-align: left; }
.admin-grid td { max-width: 420px; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.admin-grid thead th { position: sticky; top: 0; background: #f5f7fa; color: #606266; font-weight: 700; height: 34px; z-index: 2; }
.admin-grid th.idx, .admin-grid td.idx { position: sticky; left: 0; background: #fafafa; color: #909399; text-align: center; min-width: 64px; z-index: 1; user-select: none; }
.admin-grid thead th.idx { z-index: 3; }
.admin-grid tbody tr:hover td { background: #f5f7fa; }
.admin-grid tbody tr:hover td.active { background: #ecf5ff; }
.admin-grid td.active { outline: 2px solid #409eff; outline-offset: -2px; background: #ecf5ff; }
.admin-grid td.editing { padding: 0; }
.cell-input { width: 100%; height: 28px; border: none; outline: none; padding: 0 8px; font-size: 12px; color: #303133; box-sizing: border-box; background: #fff; }
.row-del { cursor: pointer; color: #c0c4cc; margin-right: 6px; font-size: 13px; }
.row-del:hover { color: #f56c6c; }
.admin-foot { margin-top: 10px; }
