:root { --primary: #2d5aa8; --primary-dark: #1f3b73; --bg: #f5f7fa; --card: #fff; --text: #303133; --dim: #909399; --border: #e4e7ed; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
.hidden { display: none !important; }
.dim { color: var(--dim); }

/* 登录 */
.login-view { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f3b73, #2d5aa8 60%, #3b74c4); }
.login-card { background: #fff; border-radius: 14px; padding: 44px 40px 36px; width: 380px; box-shadow: 0 16px 40px rgba(0,0,0,.25); text-align: center; }
.login-card .logo { font-size: 44px; }
.login-card h1 { font-size: 21px; margin: 12px 0 6px; }
.login-card .sub { color: var(--dim); font-size: 13px; margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field input { width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 8px; padding: 0 14px; font-size: 14px; outline: none; }
.field input:focus { border-color: var(--primary); }
.err { color: #f56c6c; font-size: 13px; min-height: 18px; margin-top: 10px; }

/* 按钮 */
.btn-primary { width: 100%; height: 42px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 15px; cursor: pointer; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary.small { width: auto; height: 32px; padding: 0 16px; font-size: 13px; }
.btn-ghost { height: 32px; padding: 0 14px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); font-size: 13px; cursor: pointer; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* 顶栏 */
.topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.topbar .brand { font-weight: 700; color: var(--primary); }
.user-info { display: flex; align-items: center; gap: 10px; font-size: 14px; }

/* 主区 */
.container { max-width: 1100px; margin: 20px auto; padding: 0 16px; }
.card { background: var(--card); border-radius: 10px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-title-row .card-title { margin-bottom: 0; }

/* Key */
.key-row { display: flex; align-items: center; gap: 12px; }
.key-text { background: #f6f8fa; border: 1px dashed #c0c4cc; border-radius: 8px; padding: 10px 14px; font-size: 14px; word-break: break-all; flex: 1; }
.tips { margin-top: 14px; font-size: 13px; color: var(--dim); }
.code-block { background: #1e1e2e; color: #cdd6f4; border-radius: 8px; padding: 14px; font-size: 12px; overflow-x: auto; margin-top: 8px; line-height: 1.7; }
.code-block pre { font-family: Consolas, Menlo, monospace; white-space: pre; }

/* 统计 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat-item { background: #f6f8fa; border-radius: 8px; padding: 14px; text-align: center; }
.stat-item .v { font-size: 20px; font-weight: 700; color: var(--primary); }
.stat-item .k { font-size: 12px; color: var(--dim); margin-top: 4px; }
.stat-sub { margin-top: 12px; font-size: 13px; color: var(--dim); line-height: 1.9; }

/* 表格 */
.filter-row { display: flex; gap: 10px; margin-bottom: 12px; }
.filter-row input, .filter-row select { height: 32px; border: 1px solid var(--border); border-radius: 6px; padding: 0 10px; font-size: 13px; outline: none; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { border-bottom: 1px solid var(--border); padding: 8px 6px; text-align: left; white-space: nowrap; }
.table th { background: #fafbfc; color: var(--dim); font-weight: 500; }
.table a { color: var(--primary); cursor: pointer; text-decoration: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--dim); }

/* 弹窗 */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 100; }
.dialog { background: #fff; border-radius: 10px; width: 720px; max-width: 94vw; max-height: 84vh; display: flex; flex-direction: column; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 600; }
.dialog-body { padding: 16px 18px; overflow: auto; font-size: 13px; line-height: 1.8; }
.dialog-body h4 { margin: 12px 0 6px; }
.dialog-body pre { background: #f6f8fa; border-radius: 6px; padding: 10px; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.meta b { color: var(--dim); font-weight: 500; }
