:root {
  color-scheme: light;
  font-family: system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #15233a;
  background: #f2f5f9;
  font-synthesis: none;
  --line: #dce3ed;
}

* { box-sizing: border-box; }

body {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

h1, h2, p, dl, dd { margin: 0; }

.notice-page {
  position: relative;
  isolation: isolate;
  color: #f8fbff;
  background: #101b2e;
  background-image: radial-gradient(ellipse at 78% 40%, #1c3654 0%, transparent 49%);
}

.notice-watermark {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(min(17rem, 52vw), 1fr));
  grid-template-rows: repeat(10, minmax(9rem, 1fr));
  place-content: center;
  place-items: center;
  overflow: hidden;
  color: #d4e7ff26;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.notice-watermark span { transform: rotate(-24deg); }

.notice-shell {
  display: grid;
  align-items: center;
  padding: clamp(1.25rem, 6vw, 5rem);
}

.notice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 31%);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  width: min(100%, 72rem);
  min-height: 27rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 1.5rem;
  background-color: #f7f9fc;
  background-image: radial-gradient(ellipse at 88% 48%, #dbe8f7, transparent 65%);
  color: #172a43;
  box-shadow: 0 1.5rem 4.5rem #07132373;
}

.notice::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(#42689216 1px, transparent 1px),
                    linear-gradient(90deg, #42689216 1px, transparent 1px);
  background-size: 2rem 2rem;
  mask-image: linear-gradient(100deg, transparent 36%, black);
}

.notice-copy, .signal { position: relative; }

.notice h1 {
  max-width: 10em;
  font-size: clamp(2.75rem, 6.4vw, 5.05rem);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.notice h1 span { color: #934900; white-space: nowrap; }

.warning {
  width: fit-content;
  margin-top: 1.75rem;
  padding: .7rem 1rem;
  border-inline-start: 3px solid #c16a0e;
  border-radius: 0 .4rem .4rem 0;
  background: #ffedcf;
  color: #51300e;
  font-size: clamp(1.1875rem, 2.2vw, 1.625rem);
  font-weight: 650;
  line-height: 1.55;
  text-wrap: balance;
}

.signal {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 17rem;
  aspect-ratio: 1;
  justify-self: end;
  border: 1px solid #41658a33;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd17b70, transparent 62%);
}

.signal::before, .signal-orbit {
  position: absolute;
  border: 1px solid #41658a33;
  border-radius: 50%;
  content: "";
}

.signal::before { inset: 11%; }
.signal-orbit { inset: 23%; }

.signal-orbit::after {
  position: absolute;
  top: 2%;
  right: 24%;
  width: .4rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #b86c1c;
  box-shadow: 0 0 .7rem #eaa54880;
  content: "";
}

.signal-mark {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40%;
  aspect-ratio: 1;
  border: 1px solid #ffe1a3;
  border-radius: 28%;
  background: linear-gradient(150deg, #ffe3a9, #f7b24b);
  box-shadow: 0 0 2.5rem #ffc2663b;
  color: #33200b;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
}

.site-footer {
  padding: 1.4rem 1rem;
  border-top: 1px solid var(--line);
  color: #52627b;
  text-align: center;
  font-size: .875rem;
  line-height: 1.6;
}

.site-footer span { display: inline-block; margin-inline-start: .4em; }
.notice-page .site-footer { border-color: #ffffff20; color: #afbdd2; }

.dashboard {
  width: min(100%, 66rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.dashboard h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

.refresh {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: white;
  color: #1d436e;
  font-weight: 650;
  text-decoration: none;
}

.refresh:hover { background: #eaf1f9; }
.refresh:focus-visible { outline: 3px solid #35649b; outline-offset: 3px; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }

.metric, .history {
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 .25rem 1rem #14243c08;
}

.metric { padding: clamp(1rem, 3vw, 1.5rem); }
.metric dt { margin-bottom: .45rem; color: #52627b; font-weight: 600; }
.metric dd { font-size: 2rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.metric dd span { font-size: .9rem; color: #52627b; }
.metric dd.latest { font-size: clamp(1.15rem, 2.7vw, 1.7rem); }

.history { margin-top: 1.15rem; overflow: hidden; }
.history h2 { padding: 1.2rem 1.45rem; font-size: 1.15rem; }
.history-note { padding: 0 1.45rem 1.05rem; color: #52627b; line-height: 1.6; }
.visit-history-table { table-layout: fixed; }
.visit-history-table th:first-child { width: 52%; }
.visit-history-table td { overflow-wrap: anywhere; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .75rem;
  padding: .85rem 1.45rem;
  border-top: 1px solid #edf0f5;
  color: #52627b;
}
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
thead { background: #edf3fa; color: #42536c; }
th, td { padding: .7rem 1.45rem; text-align: left; }
tbody th { font-weight: 500; }
tr > :last-child { text-align: right; }
.visit-history-table tr > :last-child { text-align: left; }
tbody tr + tr { border-top: 1px solid #edf0f5; }
.metric-note, .locked p { margin-top: 1rem; color: #52627b; line-height: 1.65; }
.locked .refresh { margin-top: 1rem; }

@media (max-width: 700px) {
  .notice {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.5rem;
    min-height: 0;
    padding: 1.6rem;
    border-radius: 1rem;
  }
  .signal { grid-row: 1; width: 7.75rem; justify-self: start; }
  .notice h1 { font-size: clamp(2.35rem, 10.6vw, 3.8rem); }
  .warning { margin-top: 1.25rem; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:last-child { grid-column: 1 / -1; }
}
