/* ============================================================
   Hello World 网站样式
   ============================================================ */

:root {
  --bg-start: #eef2ff;
  --bg-end: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-sub: #64748b;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --ok: #10b981;
  --warn: #ef4444;
  --radius: 20px;
  --shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 55%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
}

/* ---------------- 卡片 ---------------- */
.card {
  width: 100%;
  max-width: 720px;
  padding: 44px 40px 32px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  animation: rise 0.5s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

/* ---------------- 标题 ---------------- */
.title {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.title .name {
  color: var(--accent);
  position: relative;
  padding: 0 4px;
}

.title .name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 8px;
  background: var(--accent-soft);
  border-radius: 4px;
  z-index: -1;
}

.subtitle {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ---------------- 时间区 ---------------- */
.clock {
  padding: 26px 20px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.clock-label {
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: 1px;
}

.clock-time {
  margin: 10px 0 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.clock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  padding: 5px 12px;
  font-size: 13px;
  color: #334155;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

/* ---------------- 状态 ---------------- */
.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-sub);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.25s ease;
}

.dot.online {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.dot.offline {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}

/* ---------------- 页脚 ---------------- */
.footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
  font-size: 12.5px;
  color: #94a3b8;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 560px) {
  .card {
    padding: 32px 22px 24px;
  }

  .title {
    font-size: 22px;
  }

  .clock-time {
    font-size: 32px;
    letter-spacing: 1px;
  }
}
