/* 信科智教 管理平台样式：简洁管理后台 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  color: #1b1b1f;
  background: #f6f5f2;
}
input, select, textarea {
  border: 1px solid #ddd9d0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  background: #fff;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: #1f3a5f; }
button {
  background: #1f3a5f;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
}
button:hover { background: #17304f; }
button:disabled { background: #c8cdd6; cursor: not-allowed; }
button.ghost { background: #fff; color: #1f3a5f; border: 1px solid #1f3a5f; }
button.ghost:hover { background: #eef2f7; }
button.link { background: none; color: #1f3a5f; padding: 2px 6px; }
button.link:hover { text-decoration: underline; background: none; }
button.link.danger { color: #a33a2e; }
button.danger-solid { background: #a33a2e; }
button.danger-solid:hover { background: #8c2f24; }
button.small { padding: 4px 12px; font-size: 12px; }

/* 登录 */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #152238;
}
.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 36px;
  width: 340px;
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
}
.login-logo {
  width: 48px; height: 48px; margin: 0 auto 14px;
  background: #b08d3e; color: #fff; font-size: 24px; font-weight: 700;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.login-card h1 { text-align: center; font-size: 20px; letter-spacing: 2px; }
.login-sub { text-align: center; color: #6e6e73; font-size: 12px; margin: 6px 0 22px; }
.login-card input { margin-bottom: 12px; }
.login-card button { width: 100%; padding: 11px; margin-top: 6px; }
.login-error { color: #a33a2e; font-size: 12px; margin-bottom: 8px; min-height: 16px; }

/* 布局 */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 190px; background: #152238; color: #9fb0c7;
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0;
}
.brand {
  padding: 22px 20px 16px; color: #fff; font-size: 16px; font-weight: 700;
  letter-spacing: 1px; display: flex; align-items: center; gap: 10px;
}
.brand-logo {
  width: 28px; height: 28px; background: #b08d3e; color: #fff;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.sidebar nav { flex: 1; padding-top: 8px; }
.sidebar nav a {
  display: block; padding: 13px 22px; color: #9fb0c7; cursor: pointer;
  border-left: 3px solid transparent; text-decoration: none;
}
.sidebar nav a:hover { background: #1e3050; color: #d7e1ef; }
.sidebar nav a.active { background: #1e3050; color: #fff; border-left-color: #b08d3e; }
.sidebar-foot { padding: 14px 20px; border-top: 1px solid #223454; font-size: 12px; }
.sidebar-foot button { background: none; color: #9fb0c7; padding: 0; margin-left: 10px; }

.content { margin-left: 190px; flex: 1; padding: 26px 30px; max-width: 1200px; }
.content h2 { font-size: 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card {
  background: #fff; border: 1px solid #e8e6e1; border-radius: 10px;
  padding: 16px 14px 12px;
}
.stat-num { font-size: 24px; font-weight: 700; color: #1f3a5f; font-family: Consolas, monospace; }
.stat-label { color: #6e6e73; font-size: 12px; margin-top: 4px; }

/* 面板与表格 */
.panel {
  background: #fff; border: 1px solid #e8e6e1; border-radius: 10px;
  padding: 18px 20px; margin-bottom: 16px;
}
.panel h3 { font-size: 14px; margin-bottom: 12px; color: #1b1b1f; }
.panel p { line-height: 1.9; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid #f0eeea;
}
.table th { color: #6e6e73; font-weight: 600; font-size: 12px; }
.table tr:hover td { background: #faf9f6; }
.ops { white-space: nowrap; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px;
}
.badge.active { background: #e8f3ec; color: #2f6b4f; }
.badge.banned { background: #f9e9e6; color: #a33a2e; }
.muted { color: #9a9893; }

/* 工具条与分页 */
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.toolbar input { width: 220px; }
.toolbar select { width: 140px; }
.toolbar button { flex-shrink: 0; }
.pager { display: flex; align-items: center; gap: 14px; margin-top: 14px; justify-content: flex-end; }
.pager span { color: #6e6e73; font-size: 12px; }

/* 详情操作 */
textarea { resize: vertical; margin-bottom: 8px; }
.detail-grid input { margin-bottom: 8px; }
