/* 管理站基础样式：规则取自既有系统的 admin.css，只保留本页用到的组件。 */
:root {
  color-scheme: light;
  --ink: #202c2a;
  --muted: #687572;
  --line: #dce4e1;
  --surface: #fff;
  --canvas: #f4f6f5;
  --green: #176b58;
  --green-dark: #0f5344;
  --green-pale: #e5f2ed;
  --red: #a33d32;
  --red-pale: #faecea;
  --yellow: #886313;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; padding: 0; min-width: 320px; background: var(--canvas); }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar { height: 68px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); display: flex; gap: 10px; align-items: center; font-weight: 700; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: white; background: var(--green); font-size: 15px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.system-status { color: var(--green-dark); font-size: 11px; white-space: nowrap; }
.system-status::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #258565; }
.system-status-error { color: var(--red); }
.system-status-error::before { background: var(--red); }
.health-panel { max-width: 520px; }
.health-overview { margin-bottom: 12px; padding: 12px; color: var(--green-dark); background: var(--green-pale); border: 1px solid #c5e0d5; border-radius: 5px; font-size: 13px; }
.health-overview.degraded { color: var(--red); background: var(--red-pale); border-color: #e8c4c0; }
.health-checks { display: grid; gap: 7px; }
.health-check { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.health-check:last-child { border-bottom: 0; }
.health-check > div { display: flex; flex-direction: column; gap: 2px; }
.health-check strong { font-size: 12px; }
.health-check span:last-child { color: var(--muted); font-size: 11px; }
.health-check-icon { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #258565; font-size: 12px; font-weight: 700; }
.health-check-icon.error { background: var(--red); }
.button { min-height: 38px; border: 1px solid var(--line); border-radius: 5px; padding: 0 14px; background: var(--surface); color: var(--ink); font-weight: 600; }
.button:hover { border-color: #9badA6; }
.button-primary { border-color: var(--green); color: #fff; background: var(--green); }
.button-primary:hover { border-color: var(--green-dark); background: var(--green-dark); }
.button-quiet { background: transparent; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
h1, h2, p { margin-top: 0; }
.muted, .section-heading p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
label { display: block; color: #34423f; font-size: 13px; font-weight: 600; }
input { width: 100%; height: 40px; margin-top: 7px; border: 1px solid #cbd6d2; border-radius: 5px; background: #fff; padding: 0 11px; color: var(--ink); outline: none; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 107, 88, .12); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 27px 0 21px; }
.page-heading h1 { margin-bottom: 5px; font-size: 24px; font-weight: 650; }
.heading-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; padding-bottom: 4px; }
.section-heading.compact { margin-bottom:10px; }
.section-heading.compact h3 { margin:0 0 3px; font-size:14px; }
.modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
.modal { position:fixed; inset:0; z-index:20; display:grid; place-items:center; padding:16px; background:rgba(20,34,30,.42); }
.modal-panel { width:min(620px, 100%); max-height:calc(100vh - 32px); overflow:auto; padding:20px; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 18px 60px rgba(25,42,36,.2); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.section-heading h2 { margin: 0 0 4px; font-size: 16px; font-weight: 650; }
.section-heading p { font-size: 12px; }
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 600px); }
  .page-heading { align-items: start; padding-top: 22px; }
  .heading-meta { margin-top: 5px; }
}
@media (max-width: 420px) {
  .topbar { height: 60px; }
  .topbar-right { gap: 8px; min-width: 0; }
  .system-status { max-width: 88px; overflow: hidden; text-overflow: ellipsis; }
}
