* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font: inherit;
}

.page {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 26px 16px 34px;
}

.hero {
  text-align: center;
  padding: 22px 10px 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #475569;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(148, 163, 184, .35);
  box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
}

.hero h1 {
  margin: 18px 0 8px;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: .03em;
  color: #0f172a;
}

.hero p {
  margin: 0;
  font-size: clamp(14px, 2.6vw, 17px);
  color: #64748b;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 14px;
}

.refresh-btn {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: #2563eb;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
  transition: transform .15s ease, opacity .15s ease;
}

.refresh-btn:active {
  transform: scale(.98);
}

.refresh-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.tip {
  font-size: 13px;
  color: #64748b;
  text-align: right;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.entry-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(148, 163, 184, .28);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.entry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: #94a3b8;
}

.entry-card.is-ok::before {
  background: #16a34a;
}

.entry-card.is-fail::before {
  background: #dc2626;
}

.entry-card.is-timeout::before {
  background: #f59e0b;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, .12);
}

.entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.entry-title {
  margin: 0;
  font-size: 22px;
  color: #0f172a;
}

.entry-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
}

.is-ok .status-pill {
  color: #15803d;
  background: #dcfce7;
}

.is-fail .status-pill {
  color: #b91c1c;
  background: #fee2e2;
}

.is-timeout .status-pill {
  color: #b45309;
  background: #fef3c7;
}

.domain {
  margin-top: 20px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .22);
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-all;
}

.meta {
  margin-top: 12px;
  display: grid;
  gap: 7px;
  color: #64748b;
  font-size: 13px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.meta-row strong {
  color: #334155;
  font-weight: 700;
}

.open-btn {
  margin-top: auto;
  width: 100%;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: #334155;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}

.open-btn:active {
  transform: scale(.99);
}

.is-ok .open-btn {
  background: #16a34a;
}

.is-fail .open-btn {
  background: #dc2626;
}

.is-timeout .open-btn {
  background: #f59e0b;
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(148, 163, 184, .28);
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.notice strong {
  color: #334155;
}

@media (max-width: 860px) {
  .entry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .page {
    padding: 18px 12px 28px;
  }

  .hero {
    padding-top: 12px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .refresh-btn {
    width: 100%;
    min-height: 44px;
  }

  .tip {
    text-align: center;
  }

  .entry-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .entry-card {
    min-height: 222px;
    border-radius: 20px;
  }

  .entry-title {
    font-size: 21px;
  }

  .open-btn {
    min-height: 48px;
    font-size: 16px;
  }
}


.site-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 18px;
}

.site-tabs[hidden] { display: none; }

.site-tab {
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .9);
  color: #334155;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.site-tab.is-active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

.site-section + .site-section { margin-top: 28px; }

.site-section-title {
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 5px solid #2563eb;
  color: #0f172a;
  font-size: 22px;
}

@media (max-width: 560px) {
  .site-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-tab { width: 100%; padding: 11px 8px; }
  .site-section-title { font-size: 19px; }
}
