/* 墨雪闯关 · 网页后台 —— 复刻经典页游后台风格
   黑底 / 750px 版心 / 顶栏 #406174 / 主色橙 #f4971e / 导航块 #182e3a hover #9c420c */

* { box-sizing: border-box; }

body {
  background-color: black;
  margin: 0 auto;
  font-family: "Microsoft YaHei", "微软雅黑", SimSun, Arial, sans-serif;
}

a { text-decoration: none; }

/* ---------- 顶部导航（同参考站） ---------- */

.topbar {
  background-color: #406174;
  width: 750px;
  margin-left: auto;
  margin-right: auto;
  height: 120px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.topbar .left {
  width: 320px;
  float: left;
  height: 120px;
}

.topbar .left .link {
  font-size: 20px;
  font-weight: 700;
  line-height: 50px;
  padding-left: 10px;
}

.topbar .left a.login-link { color: red; }
.topbar .left a.reg-link { color: #00cc99; }

.topbar .nav {
  width: 420px;
  float: left;
  height: 120px;
  color: white;
  font-size: 16px;
  padding: 1px;
  line-height: 28px;
}

.nav-btn {
  width: 101px;
  height: 55px;
  background-color: #182e3a;
  margin: 1px;
  margin-top: 2px;
  float: left;
  text-align: center;
  line-height: 55px;
  font-size: 20px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.nav-btn:hover { background: #9c420c; }
.nav-btn.active { background: #9c420c; }
.nav-btn a { color: inherit; display: block; width: 100%; height: 100%; }

.clearfix::after { content: ""; display: block; clear: both; }

/* ---------- 内容区 ---------- */

.content {
  width: 750px;
  margin-left: auto;
  margin-right: auto;
  background-color: white;
  min-height: 400px;
}

.content .title-bar {
  height: 70px;
  background-color: #f3f3f3;
  color: #f4971e;
  font-size: 30px;
  line-height: 70px;
  padding-left: 10px;
  font-weight: 700;
}

.content .body {
  padding: 20px 25px 40px;
}

/* ---------- 登录/注册表单（大号输入，同参考站） ---------- */

.form-table { border: 0; margin: 0 auto; }

.form-table td.label {
  width: 250px;
  text-align: right;
  color: #f4971e;
  font-size: 28px;
  font-weight: 700;
  padding-right: 8px;
}

.form-table td.field { width: 400px; text-align: left; padding: 8px 0; }

.big-input {
  width: 360px;
  height: 48px;
  font-size: 26px;
  border-radius: 10px;
  padding-left: 10px;
  border: 2px solid #cfd8e0;
  outline: none;
}

.big-input:focus { border-color: #f4971e; }

.big-btn {
  border: 0;
  background-color: #f4971e;
  padding: 2px;
  color: white;
  width: 200px;
  height: 56px;
  font-size: 32px;
  cursor: pointer;
  border-radius: 6px;
}

.big-btn:hover { background-color: #d97f0e; }

.form-msg {
  text-align: center;
  min-height: 28px;
  color: #e04b3a;
  font-size: 18px;
  padding: 6px;
}

.form-msg.ok { color: #1d9e42; }

.sub-link { color: #333; font-size: 20px; margin-left: 14px; }

/* ---------- 统计卡片 ---------- */

.stat-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.stat-card {
  flex: 1 1 220px;
  background: #f3f6f9;
  border-left: 6px solid #406174;
  border-radius: 6px;
  padding: 14px 18px;
  min-width: 200px;
}

.stat-card .num {
  font-size: 34px;
  font-weight: 700;
  color: #f4971e;
  line-height: 46px;
}

.stat-card .name { font-size: 15px; color: #667; }

/* ---------- 数据表格 ---------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 12px;
}

.data-table th {
  background-color: #406174;
  color: #fff;
  padding: 9px 8px;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  border-bottom: 1px solid #dde4ea;
  padding: 8px;
  color: #333;
  vertical-align: middle;
}

.data-table tr:nth-child(even) td { background: #f4f7fa; }
.data-table tr:hover td { background: #fdf1e2; }

.tag {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: #fff;
}

.tag.admin { background: #9c420c; }
.tag.user { background: #406174; }
.tag.off { background: #999; }
.tag.on { background: #1d9e42; }

/* ---------- 小按钮 ---------- */

.btn {
  border: 0;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  margin-right: 4px;
}

.btn-blue { background: #406174; }
.btn-blue:hover { background: #325067; }
.btn-orange { background: #f4971e; }
.btn-orange:hover { background: #d97f0e; }
.btn-red { background: #c0392b; }
.btn-red:hover { background: #9c2f23; }
.btn-gray { background: #7a8894; }
.btn-gray:hover { background: #5f6b75; }

/* ---------- 搜索栏 ---------- */

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }

.search-input {
  height: 36px;
  width: 260px;
  border: 2px solid #cfd8e0;
  border-radius: 6px;
  padding-left: 10px;
  font-size: 15px;
  outline: none;
}

.search-input:focus { border-color: #f4971e; }

/* ---------- 弹窗 ---------- */

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 1000;
}

.modal-mask.show { display: flex; align-items: center; justify-content: center; }

.modal {
  background: #fff;
  border-radius: 8px;
  width: 420px;
  max-width: 92vw;
  overflow: hidden;
}

.modal .m-head {
  background: #406174;
  color: #fff;
  font-size: 18px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
}

.modal .m-head .x { cursor: pointer; font-size: 20px; }
.modal .m-body { padding: 18px 20px; }

.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 14px; color: #456; margin-bottom: 4px; }
.form-row input, .form-row select {
  width: 100%;
  height: 36px;
  border: 2px solid #cfd8e0;
  border-radius: 6px;
  padding-left: 10px;
  font-size: 15px;
  outline: none;
}
.form-row input:focus { border-color: #f4971e; }

/* ---------- 分页 / 空状态 ---------- */

.empty { text-align: center; color: #99a; padding: 30px 0; font-size: 15px; }

/* ---------- 异常邀请告警横幅 ---------- */
#alert-banner {
  width: 750px;
  margin-left: auto;
  margin-right: auto;
}
#alert-banner .alert-inner {
  background: #c0392b;
  color: #fff;
  font-size: 15px;
  line-height: 20px;
  padding: 10px 14px;
  border-bottom: 2px solid #7a1f16;
  font-weight: 700;
}

/* ---------- 页脚（同参考站） ---------- */

.footer {
  width: 750px;
  height: 130px;
  margin-left: auto;
  margin-right: auto;
  background-color: #28282a;
  color: white;
  text-align: center;
  line-height: 30px;
  padding-top: 20px;
}

.footer .logo {
  width: 300px;
  height: 44px;
  margin: 7px auto 0;
  background: #406174;
  border-radius: 6px;
  color: #f4971e;
  font-size: 26px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: 4px;
}

.footer .copy { font-size: 13px; color: #8a9096; margin-top: 8px; }
