/* sunsunsunhome — Notion 风格样式 */

:root {
  --bg: #ffffff;
  --bg-subtle: #f7f7f5;
  --bg-hover: #f1f1ef;
  --text: #37352f;
  --text-2: #6f6e69;
  --text-3: #9b9b9b;
  --text-4: #a3a29e;
  --border: #e9e9e8;
  --border-strong: #d3d3d1;
  --link: #0b6e99;
  --link-underline: #cfe3ea;
  --green: #0f7b6c;
  --yellow: #c29343;
  --red: #d44c47;
  --gray: #c7c7c5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191919;
    --bg-subtle: #212121;
    --bg-hover: #252525;
    --text: #e8e7e4;
    --text-2: #a3a29e;
    --text-3: #7a7975;
    --text-4: #6f6e69;
    --border: #2e2e2e;
    --border-strong: #454443;
    --link: #4a9db5;
    --link-underline: #2a4a55;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.nav .avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.nav .links { display: flex; gap: 4px; }

.nav .links a {
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
}

.nav .links a:hover { background: var(--bg-hover); color: var(--text); }

/* 主体 */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px 32px;
}

.hero { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 12px; }

.hero .face {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  flex-shrink: 0;
}

.hero h1 {
  font-size: 38px;
  font-weight: 700;
  margin: 2px 0 6px;
  letter-spacing: -0.01em;
}

.hero p { font-size: 15.5px; color: var(--text-2); margin: 0; }

.div { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

.sec-title { font-size: 20px; font-weight: 600; margin: 0 0 4px; }

.sec-desc { font-size: 13.5px; color: var(--text-3); margin: 0 0 16px; }

/* 工具卡片 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card .ic {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.card .ic svg {
  width: 17px;
  height: 17px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { font-size: 14.5px; font-weight: 600; margin: 0 0 5px; }

.card p { font-size: 13px; color: var(--text-2); margin: 0 0 12px; }

.card .tag {
  display: inline-block;
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
}

/* 监控面板 */
.panel {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.panel .phead {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
}

.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-g { background: var(--green); }
.dot-y { background: var(--yellow); }
.dot-r { background: var(--red); }
.dot-gr { background: var(--gray); }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-hover);
  font-size: 14px;
}

.row:last-child { border-bottom: none; }

.row .nm { font-weight: 500; flex: 1; }

.row .val { font-size: 12.5px; color: var(--text-2); }

.row .tm { font-size: 12px; color: var(--text-4); min-width: 70px; text-align: right; }

.note {
  font-size: 12.5px;
  color: var(--text-4);
  margin: 10px 0 0;
}

/* 关于 */
.about { font-size: 14.5px; }
.about p { margin: 0 0 10px; }
.about a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--link-underline);
}

/* 页脚 */
footer {
  border-top: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-4);
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 560px) {
  main { padding: 32px 20px; }
  .hero h1 { font-size: 30px; }
  .row .tm { display: none; }
}
