:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #1a2332;
  --muted: #5c6b7a;
  --line: #d8e0e8;
  --accent: #0f6e56;
  --accent-soft: #e6f4ef;
  --danger: #b42318;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(26, 35, 50, 0.06);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #e8f2ee 0, transparent 28%),
    linear-gradient(180deg, #eef2f6 0%, var(--bg) 40%);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.stat h3 { margin: 0; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.stat p { margin: 8px 0 0; font-size: 1.6rem; font-weight: 700; }
h1, h2 { margin: 0 0 14px; }
.muted { color: var(--muted); }
.btn {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn:hover { filter: brightness(0.95); text-decoration: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}
.badge.off { background: #f2f4f7; color: var(--muted); }
.status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted);
}
.status-dot.ok { background: #12b76a; box-shadow: 0 0 0 4px #d1fadf; }
.status-dot.error { background: var(--danger); box-shadow: 0 0 0 4px #fee4e2; }

.home-top { margin-bottom: 18px; }
.home-hero { margin-bottom: 14px; padding: 16px 20px; }
.home-hero-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
}
.home-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f6e56 0%, #12b76a 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}
.home-hero .home-actions { justify-content: flex-end; flex-shrink: 0; }
.home-metrics { margin-bottom: 0; }
.home-metrics .stat p { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.home-metrics .stat .muted { display: block; margin-top: 6px; font-size: 0.86rem; }
.home-disk-stat .disk-bar {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden;
}
.home-disk-stat .disk-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #12b76a 0%, #0f6e56 100%);
}
.home-disk-stat .disk-caption { display: block; margin-top: 8px; }
.home-status h2 { margin: 0 0 14px; }
.status-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.status-block {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
}
.status-block strong { font-size: 0.96rem; line-height: 1.35; }
.status-block .muted { font-size: 0.84rem; line-height: 1.45; flex: 1; }
.status-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.status-block-link { margin-top: auto; font-size: 0.86rem; font-weight: 600; }
.status-block-error { border-color: #fecdca; background: #fffbfa; }

@media (max-width: 720px) {
  .home-hero-bar { align-items: flex-start; flex-direction: column; }
  .home-hero .home-actions { justify-content: flex-start; width: 100%; }
}
