html:root {
  --background: 48 33% 97%;
  --foreground: 60 3% 8%;
  --card: 0 0% 100%;
  --card-foreground: 60 3% 8%;
  --popover: 0 0% 100%;
  --popover-foreground: 60 3% 8%;
  --primary: 14 52% 47%;
  --primary-foreground: 0 0% 100%;
  --secondary: 51 23% 95%;
  --secondary-foreground: 36 3% 23%;
  --muted: 51 23% 95%;
  --muted-foreground: 51 3% 41%;
  --accent: 23 63% 93%;
  --accent-foreground: 16 56% 42%;
  --border: 50 21% 89%;
  --input: 48 18% 81%;
  --ring: 14 52% 47%;
  --radius: 0.9rem;
}

html.dark:root,
html.dark {
  --background: 60 3% 15%;
  --foreground: 48 33% 97%;
  --card: 60 2% 18%;
  --card-foreground: 48 33% 97%;
  --popover: 60 2% 18%;
  --popover-foreground: 48 33% 97%;
  --primary: 15 70% 66%;
  --primary-foreground: 60 3% 15%;
  --secondary: 60 2% 16%;
  --secondary-foreground: 51 18% 84%;
  --muted: 60 2% 16%;
  --muted-foreground: 45 6% 63%;
  --accent: 17 21% 22%;
  --accent-foreground: 17 69% 72%;
  --border: 45 3% 23%;
  --input: 48 3% 29%;
  --ring: 15 70% 66%;
}

html body {
  background-color: hsl(var(--background)) !important;
  color: hsl(var(--foreground)) !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

html body header {
  border-color: hsl(var(--border)) !important;
  background-color: hsl(var(--background) / 0.88) !important;
  backdrop-filter: blur(12px);
}

html body header h1 + p {
  font-size: 0 !important;
  line-height: 0 !important;
}

html body header h1 + p::after {
  content: "实时可用性与链路延迟监控";
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.25;
  color: hsl(var(--muted-foreground));
}

html body header img {
  border-radius: 0.5rem;
}

html body .rounded-lg,
html body .rounded-xl {
  border-color: hsl(var(--border)) !important;
}

html body .bg-card {
  background-color: hsl(var(--card)) !important;
  box-shadow: 0 1px 2px rgb(20 20 19 / 0.04), 0 8px 20px -14px rgb(20 20 19 / 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

html.dark body .bg-card {
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 10px 26px -14px rgb(0 0 0 / 0.45);
}

html body .bg-card:hover {
  border-color: rgb(217 119 87 / 0.42) !important;
}

html body header nav a,
html body header a[href*="api.zhanli.si"]:not(:has(img)) {
  border-radius: 9999px;
}

html body #settings > div {
  background-color: hsl(var(--card) / 0.94) !important;
  border-color: hsl(var(--border)) !important;
  box-shadow: 0 8px 24px -8px rgb(20 20 19 / 0.16);
}

@media (min-width: 1024px) {
  html body .lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

html body #social {
  display: none !important;
}

html body footer a {
  color: hsl(var(--primary)) !important;
}

@media (max-width: 639px) {
  html body main {
    padding-bottom: 1.5rem !important;
  }
  html body footer {
    padding-top: 0.75rem !important;
    padding-bottom: 2rem !important;
  }
  html body #settings {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    margin: 1.25rem auto 0 !important;
  }
}
