:root {
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: #0f1f36;
  background: #ffffff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #fff; }
button, input { font: inherit; }
button { cursor: pointer; }

.shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 26px;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

h1 { margin: 0 0 8px; font-size: clamp(32px, 3vw, 48px); line-height: 1.15; letter-spacing: .04em; }
.header p { margin: 0; color: #516075; font-size: 19px; }
.sync-actions { display: flex; align-items: center; gap: 24px; color: #26344a; padding-top: 2px; }
.sync-actions button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #0d5eea;
  border-radius: 6px;
  padding: 14px 20px;
  color: #fff;
  background: #0d5eea;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(13, 94, 234, .18);
}
.sync-actions button:hover { background: #084fc9; }
.sync-actions button:disabled { cursor: wait; opacity: .65; }
.sync-actions svg, .search svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #cbd5e3;
  border-radius: 5px;
  min-height: 146px;
  margin-bottom: 24px;
}
.metrics > div { display: grid; place-content: center; text-align: center; position: relative; }
.metrics > div + div::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 1px; background: #d6deea; }
.metrics span { color: #35445b; font-size: 18px; margin-bottom: 6px; }
.metrics strong { font-size: 52px; line-height: 1; font-weight: 600; }
.blue { color: #0d5eea; } .red { color: #eb311d; } .green { color: #119447; }

.alert {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 92px;
  padding: 18px 28px;
  margin-bottom: 24px;
  border: 1px solid #f04438;
  border-radius: 5px;
  background: #fff7f6;
  color: #d92d20;
  font-size: 23px;
}
.alert[hidden] { display: none; }
.alert-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  color: #fff;
  background: #e9321e;
  font-size: 31px;
  font-weight: 800;
}

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.search {
  width: min(410px, 45vw);
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #afbbcc;
  border-radius: 5px;
  color: #617086;
}
.search:focus-within { border-color: #0d5eea; box-shadow: 0 0 0 3px rgba(13,94,234,.1); }
.search input { width: 100%; border: 0; outline: 0; color: #14243b; font-size: 17px; background: transparent; }
.search input::placeholder { color: #6c798b; }
.filters { display: flex; gap: 12px; }
.filters button {
  min-width: 102px;
  height: 58px;
  border: 1px solid #c6d0de;
  border-radius: 5px;
  color: #26344a;
  background: #fff;
  font-size: 17px;
}
.filters button.active { border-color: #0d5eea; color: #fff; background: #0d5eea; font-weight: 600; }

.table-wrap { border: 1px solid #cbd5e3; border-radius: 5px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { height: 72px; padding: 12px 16px; text-align: center; border-right: 1px solid #d6deea; border-bottom: 1px solid #d6deea; }
th:last-child, td:last-child { border-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
th { height: 66px; background: #f8fafc; color: #17283f; font-size: 17px; font-weight: 700; }
td { color: #24334a; font-size: 16px; }
td:first-child { font-weight: 700; color: #101f34; }
.status { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.status.maintenance, .plain.maintenance { color: #ed301c; }
.status.normal, .plain.normal { color: #109447; }
.empty { padding: 48px 20px; text-align: center; color: #6c798b; }
footer { text-align: center; color: #69768a; font-size: 16px; padding-top: 28px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 360px; padding: 12px 18px; border-radius: 6px; color: #fff; background: #162840; opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1440px); padding-top: 22px; }
  .header { display: block; }
  h1 { font-size: 31px; }
  .header p { font-size: 15px; }
  .sync-actions { justify-content: space-between; gap: 12px; margin-top: 22px; font-size: 13px; }
  .sync-actions button { padding: 11px 13px; font-size: 14px; }
  .metrics { min-height: 105px; }
  .metrics > div + div::before { top: 22px; bottom: 22px; }
  .metrics span { font-size: 13px; }
  .metrics strong { font-size: 34px; }
  .alert { min-height: 72px; padding: 14px 16px; gap: 13px; font-size: 17px; }
  .alert-icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 24px; }
  .toolbar { display: block; }
  .search { width: 100%; height: 50px; margin-bottom: 12px; }
  .filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .filters button { min-width: 0; height: 46px; font-size: 15px; }
  .table-wrap { border: 0; overflow: visible; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tbody { display: grid; gap: 12px; }
  tbody tr { border: 1px solid #d3dce8; border-radius: 6px; padding: 14px 16px; }
  td { height: auto; min-height: 37px; padding: 7px 0; border: 0; display: flex; justify-content: space-between; text-align: right; font-size: 15px; }
  td::before { content: attr(data-label); color: #66758a; font-weight: 400; }
  td:first-child { font-size: 18px; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; margin-bottom: 4px; }
  footer { font-size: 13px; padding-top: 22px; }
}

