* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: #1f2937;
  background: #f8fafc;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.title {
  margin: 8px 0 24px;
  font-size: 28px;
  font-weight: 700;
}

.grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 560px;
  gap: 12px;
  margin: 0 auto;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  padding-top: 36px; /* 为左上角徽标留出空间，避免与标题重叠 */
  min-height: 56px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .04s ease;
}

.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.card:active { transform: translateY(1px); }

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0 6px;
}

.card-desc {
  font-size: 13px;
  color: #6b7280;
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
  user-select: none;
}
.badge.ok { background: #10b981; }
.badge.fail { background: #ef4444; }
.badge.checking { background: #9ca3af; }

.footer {
  margin-top: 24px;
  color: #6b7280;
  font-size: 12px;
}

.hint { margin: 0; }

/* 顶部全局提示 */
.global-message {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.global-message.msg-warn { background: #fef3c7; color: #92400e; }
.global-message.msg-ok { background: #ecfdf5; color: #065f46; }

/* 移动端适配 */
@media (max-width: 600px) {
  .title {
    font-size: 24px;
    margin: 4px 0 16px;
    text-align: center;
  }

  .grid {
    max-width: 94vw;
    gap: 10px;
  }

  .card {
    padding: 18px;
    padding-top: 44px; /* 移动端额外留白，避免重叠 */
    min-height: 64px;
    border-radius: 14px;
  }

  .card-title { font-size: 17px; }
  .card-desc { font-size: 14px; }
}


