/* NPE Team —— 验证中心 / 用户中心 / 管理面板 全站样式。
   风格与主页 npeteam.online 一致：浅底、宋体 12px、1px 边框、蓝下划线链接。
   不引外部字体、不引 CDN。

   文件名从 style.css 换成 npe.css 是有意的：路径直通静态目录，换个名字既能立刻生效，
   也绕开浏览器里那份已缓存的旧样式表。
   下面这些类名一个都不能少——HTML 与 js/*.js 动态生成的标记都用它们。 */

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font: 12px/1.65 "宋体", SimSun, "MS Song", serif;
}

a { color: #0000cc; text-decoration: underline; }
a:visited { color: #551a8b; }
a:hover { background: #ffff99; }

/* ---------- 骨架 ---------- */
.shell { display: flex; min-height: 100vh; align-items: stretch; }

.sidebar {
  flex: 0 0 190px;
  background: #f4f4f4;
  border-right: 1px solid #999999;
  padding: 10px 8px;
}
.main { flex: 1 1 auto; min-width: 0; padding: 12px 16px 40px; }
.content { max-width: 900px; }

.brand { margin: 2px 0 14px; font-size: 13px; }
.brand-mark { color: #999999; margin-right: 5px; }
.brand-name { font-weight: bold; }
.brand-sub { display: block; color: #666666; font-size: 11px; margin-top: 2px; }

.nav-group { margin-bottom: 14px; }
.nav-group-title {
  color: #666666;
  font-size: 11px;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 2px;
  margin-bottom: 4px;
}
.nav-group-title .chev { color: #bbbbbb; float: right; }

.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 3px 5px;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #0000cc;
  text-decoration: underline;
  cursor: pointer;
}
.nav-item:hover { background: #ffff99; }
.nav-item.active {
  font-weight: bold;
  background: #e8e8e8;
  color: #000000;
  text-decoration: none;
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid #999999;
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.topbar h1 { font-size: 14px; margin: 0; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-tag { color: #666666; }
.close-btn {
  border: 1px solid #999999;
  background: #f0f0f0;
  font: inherit;
  cursor: pointer;
  padding: 1px 6px;
}
.close-btn:hover { background: #ffff99; }

/* ---------- 区块 ---------- */
.section { margin-bottom: 22px; }
.section-title {
  font-weight: bold;
  border-bottom: 1px solid #999999;
  padding-bottom: 3px;
  margin: 0 0 8px;
}
.desc { color: #666666; margin: 6px 0; }
.hint { color: #888888; font-size: 11px; }

/* ---------- 卡片（类名保留，画成朴素方框） ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 10px; }
.card { border: 1px solid #999999; background: #fbfbfb; padding: 8px 10px; flex: 1 1 220px; }
.card-title { font-weight: bold; margin-bottom: 4px; }
.card-body p { margin: 4px 0; }
.card-body .kv { color: #333333; }
.card-foot { margin-top: 6px; border-top: 1px solid #dddddd; padding-top: 5px; }

/* ---------- 统计 ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.stat { border: 1px solid #999999; padding: 6px 10px; min-width: 120px; }
.stat .stat-value { font-size: 15px; font-weight: bold; }
.stat .stat-label { color: #666666; font-size: 11px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 6px 0 10px; font-size: 12px; }
thead th {
  border: 1px solid #999999;
  background: #eeeeee;
  padding: 3px 6px;
  text-align: left;
}
tbody td { border: 1px solid #999999; padding: 3px 6px; vertical-align: top; }
tbody tr:hover td { background: #fffff0; }
.info-table td:first-child { background: #f4f4f4; width: 9em; }
.info-table tr:hover td { background: #fffff0; }
.empty-row td { color: #888888; text-align: center; }
.row-actions { white-space: nowrap; }
.row-actions .btn { margin-right: 3px; }

/* ---------- 状态标记 ---------- */
.tag, .badge {
  display: inline-block;
  border: 1px solid #999999;
  background: #ffffff;
  padding: 0 4px;
  font-size: 11px;
}
.tag-ok,     .badge-success { color: #116611; border-color: #77aa77; background: #f2fff2; }
.tag-warn,   .badge-warning { color: #885500; border-color: #ccaa66; background: #fffaf0; }
.tag-bad,    .badge-danger  { color: #991111; border-color: #cc8888; background: #fff2f2; }
.tag-info,   .badge-info    { color: #114488; border-color: #88aacc; background: #f2f8ff; }
.tag-mute,   .badge-muted   { color: #666666; border-color: #bbbbbb; background: #f4f4f4; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 9px; }
.field label { display: block; margin-bottom: 2px; color: #333333; }
.field-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 9px; }

input, select, textarea {
  font: inherit;
  color: #000000;
  background: #ffffff;
  border: 1px solid #999999;
  padding: 2px 4px;
  min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 1px solid #0000cc; }
input[readonly] { background: #f0f0f0; color: #666666; }
textarea { width: 100%; min-height: 70px; }
.checkbox { display: flex; align-items: center; gap: 5px; }
.checkbox input { border: 0; padding: 0; }

/* ---------- 按钮 ---------- */
.btn {
  font: inherit;
  cursor: pointer;
  border: 1px solid #999999;
  background: #f0f0f0;
  color: #000000;
  padding: 2px 10px;
}
.btn:hover:not(:disabled) { background: #ffff99; }
.btn:disabled { color: #999999; background: #f4f4f4; cursor: default; }
.btn-primary { background: #333333; border-color: #000000; color: #ffffff; }
.btn-primary:hover:not(:disabled) { background: #000000; }
.btn-outline { background: #ffffff; }
.btn-danger { background: #ffffff; border-color: #aa3333; color: #aa3333; }
.btn-danger:hover:not(:disabled) { background: #fff2f2; }
.btn-sm { padding: 1px 6px; font-size: 11px; }
.btn-block { display: block; width: 100%; }

/* ---------- 行内提示 ---------- */
.msg { margin: 6px 0; }
.msg.show { border: 1px solid #999999; padding: 4px 7px; }
.msg.success { border-color: #77aa77; background: #f2fff2; color: #116611; }
.msg.error { border-color: #cc8888; background: #fff2f2; color: #991111; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .45);
  z-index: 50;
}
.modal.show, .modal.closing { display: flex; }
.modal-box {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #333333;
  padding: 12px 14px;
}
.modal-box h3 {
  margin: 0 0 8px;
  font-size: 13px;
  border-bottom: 1px solid #999999;
  padding-bottom: 4px;
}
.modal-foot { margin-top: 10px; border-top: 1px solid #dddddd; padding-top: 8px; text-align: right; }

/* ---------- 浮出提示 ---------- */
#toast { position: fixed; top: 10px; right: 10px; z-index: 80; }
.toast-item {
  max-width: 320px;
  margin-bottom: 6px;
  border: 1px solid #999999;
  background: #ffffff;
  padding: 5px 9px;
}
.toast-item.ok { border-color: #77aa77; background: #f2fff2; color: #116611; }
.toast-item.err { border-color: #cc8888; background: #fff2f2; color: #991111; }

/* ---------- 登录 / 注册 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 40px 14px; }
.auth-card {
  width: 100%;
  max-width: 340px;
  border: 1px solid #999999;
  background: #fbfbfb;
  padding: 16px 18px;
}
.auth-title { font-size: 15px; font-weight: bold; text-align: center; margin-bottom: 3px; }
.auth-sub { text-align: center; color: #666666; margin-bottom: 12px; }
.auth-switch { margin-top: 10px; text-align: center; color: #666666; }
.auth-switch a, .auth-switch button { font: inherit; }

/* ---------- 工具类 ---------- */
.mono { font-family: "Courier New", Courier, monospace; }
.dim { color: #666666; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.ld-pick { cursor: pointer; color: #0000cc; text-decoration: underline; }

@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { width: auto; border-right: 0; border-bottom: 1px solid #999999; }
  .main { padding: 10px 10px 30px; }
}
