:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --fg: #ededed;
  --muted: #8a8a8a;
  --faint: #5e5e5e;
  --line: rgba(255, 255, 255, 0.11);
  --serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* 极细颗粒感，让纯黑底不显得死板 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

/* 页面顶部的极淡光晕 */
body::after {
  content: "";
  position: fixed;
  left: 50%;
  top: -320px;
  width: 900px;
  height: 640px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
}

a { color: inherit; text-decoration: none; }

.wrap, .notes, .site-foot { position: relative; z-index: 1; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px 32px;
  z-index: 1;
}

/* 头像背后的细圆环 */
.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.055);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  pointer-events: none;
}

/* 底部向下的渐隐细线 */
.hero::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 1px;
  height: 56px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.avatar {
  width: 208px;
  height: 208px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03), 0 24px 60px rgba(0, 0, 0, 0.8);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.4s ease, box-shadow 0.5s ease;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05), 0 28px 70px rgba(0, 0, 0, 0.9);
}

.name {
  margin: 28px 0 0;
  font-size: 46px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  line-height: 1.2;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "onum" 0;
}
.name .num {
  display: inline-block;
  font-size: 1.02em;
  line-height: 1;
}

.tagline {
  margin: 16px 0 0;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.rule {
  width: 40px;
  height: 1px;
  background: var(--line);
  margin: 34px 0;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.icon-btn {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.icon-btn img {
  width: 24px;
  height: 24px;
  display: block;
  opacity: 0.86;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.icon-btn:hover, .icon-btn:focus-visible {
  background: var(--fg);
  border-color: var(--fg);
  transform: translateY(-2px);
  outline: none;
}
.icon-btn:hover img, .icon-btn:focus-visible img {
  filter: invert(1);
  opacity: 1;
}

/* ---------- notes / list ---------- */

.notes {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.notes-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.notes-head .count { margin-left: auto; }

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 2px;
  transition: padding-left 0.3s ease, background 0.3s ease;
}
.post-list a:hover { padding-left: 10px; }
.post-list .idx {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding-top: 7px;
  flex-shrink: 0;
}
.post-list .main { flex: 1; min-width: 0; }
.post-list .row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.post-list .t {
  font-size: 17px;
  letter-spacing: 0.06em;
}
.post-list .d {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  flex-shrink: 0;
}
.post-list .e {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.tag, .post-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.post-tag { display: inline-block; margin-bottom: 16px; padding: 2px 10px; }

/* ---------- article ---------- */

.post-head {
  padding: 84px 0 0;
  text-align: center;
}
.post-title {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.1em;
}
.post-date {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--faint);
}
.post-divider {
  width: 40px;
  height: 1px;
  background: var(--line);
  margin: 32px auto 0;
}

.prose {
  padding: 44px 0 0;
  font-size: 16.5px;
  line-height: 2;
}
.prose p { margin: 0 0 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 2.1em 0 0.85em;
  line-height: 1.5;
}
.prose h1 { font-size: 24px; }
.prose h2 { font-size: 21px; }
.prose h3 { font-size: 18px; }
.prose h4, .prose h5, .prose h6 { font-size: 16px; color: var(--muted); }
.prose ol, .prose ul { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: #b9b9b9;
}
.prose blockquote blockquote { margin: 0.9em 0; }
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
.prose strong { font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { max-width: 100%; height: auto; display: block; margin: 1.6em auto; }

.back {
  margin: 56px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.back a { color: var(--faint); transition: color 0.2s ease; }
.back a:hover { color: var(--fg); }

/* ---------- footer ---------- */

.site-foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 24px 44px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.site-foot .right { margin-left: auto; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 14px);
  padding: 10px 18px;
  background: var(--fg);
  color: #0a0a0a;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 520px) {
  .name { font-size: 34px; }
  .hero { min-height: 86vh; padding: 72px 20px 40px; }
  .avatar { width: 152px; height: 152px; }
  .prose { font-size: 16px; line-height: 1.95; }
  .post-title { font-size: 24px; }
  .icon-btn { width: 42px; height: 42px; }
  .site-foot { flex-wrap: wrap; gap: 6px; }
}

