/* Cloud Server 管理后台样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: #f0f2f5;
  color: #1f2329;
  font-size: 14px;
}
.hidden { display: none !important; }
.mono { font-family: Consolas, Menlo, monospace; font-size: 12px; }
.empty { text-align: center; color: #999; padding: 24px !important; }
.detail { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 登录 */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e3a5f, #2563a8);
}
.login-card {
  width: 360px; background: #fff; border-radius: 10px; padding: 32px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.login-card h1 { font-size: 18px; margin-bottom: 20px; text-align: center; }
.login-card label { display: block; margin-bottom: 14px; color: #555; font-size: 13px; }
.login-card input {
  width: 100%; padding: 9px 10px; margin-top: 6px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px;
}
.login-card button {
  width: 100%; padding: 10px; margin-top: 6px; background: #2563a8; color: #fff; border: none;
  border-radius: 6px; font-size: 15px; cursor: pointer;
}
.login-card button:hover { background: #1e4f8b; }
.error { color: #d03050; font-size: 13px; min-height: 18px; margin-bottom: 4px; }

/* 主界面 */
header {
  background: #1e3a5f; color: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center;
}
header h1 { font-size: 17px; }
.user-box { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.user-box button {
  background: rgba(255,255,255,.15); color: #fff; border: none; padding: 6px 12px; border-radius: 5px; cursor: pointer;
}
nav {
  background: #fff; border-bottom: 1px solid #e5e6eb; padding: 0 16px; display: flex; gap: 4px;
}
nav button {
  border: none; background: none; padding: 12px 18px; font-size: 14px; cursor: pointer; color: #555;
  border-bottom: 2px solid transparent;
}
nav button.active { color: #2563a8; border-bottom-color: #2563a8; font-weight: 600; }
main { padding: 20px 24px; max-width: 1280px; margin: 0 auto; }

.toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; color: #555; }
.toolbar select { padding: 6px 8px; border: 1px solid #d9d9d9; border-radius: 5px; background: #fff; }
.page-info { font-size: 13px; color: #888; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
th { background: #fafafa; color: #666; font-weight: 600; font-size: 13px; white-space: nowrap; }
tr:hover td { background: #f7f9fc; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #e5e6eb; color: #666; }
.badge.ok { background: #e6f7e6; color: #2c9e3f; }
.badge.bad { background: #fdeaea; color: #d03050; }

.link { background: none; border: none; color: #2563a8; cursor: pointer; font-size: 13px; }
.link:hover { text-decoration: underline; }

/* 统计卡片 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-card { background: #fff; border-radius: 10px; padding: 22px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stat-value { font-size: 30px; font-weight: 700; color: #1e3a5f; }
.stat-label { color: #888; margin-top: 6px; font-size: 13px; }
