/* ==========================================================
   Pixel Dark · 深色像素极客风
   字体:Fusion Pixel(缝合像素字体,开源 OFL 协议)
   ========================================================== */

@font-face {
  font-family: "FusionPixel";
  src: url("assets/zhhans.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+4E00-9FFF, U+3000-303F, U+FF00-FFEF;
}

@font-face {
  font-family: "FusionPixel";
  src: url("assets/latin.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0d1117;
  --bg-soft: #12161d;
  --fg: #00ff41;
  --fg-dim: #3d8b4f;
  --fg-faint: #1e5c2e;
  --line: #1f2a22;
  --glow: 0 0 8px rgba(0, 255, 65, .35);
}

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "FusionPixel", "Noto Sans Mono CJK SC", "Sarasa Mono SC", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* 细微噪点,增强像素 CRT 感 */
  background-image: radial-gradient(rgba(0, 255, 65, .04) 1px, transparent 1px);
  background-size: 3px 3px;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ===== 头部 ===== */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.site-header .wrap { display: flex; align-items: baseline; gap: 14px; }
.brand {
  color: var(--fg);
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: var(--glow);
}
.brand:hover { background: var(--fg); color: var(--bg); }
.tagline { color: var(--fg-dim); font-size: 13px; }

main { flex: 1; padding: 36px 0 56px; }

/* ===== 首页文章列表 ===== */
.list { }
.post-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.post-date { color: var(--fg-dim); font-size: 13px; white-space: nowrap; }
.post-link {
  color: var(--fg);
  text-decoration: none;
  letter-spacing: .5px;
}
.post-link:hover { text-shadow: var(--glow); text-decoration: underline; }
.empty { color: var(--fg-dim); }

/* ===== 分页 ===== */
.page-nav { margin-top: 24px; display: flex; gap: 10px; }
.page-nav a, .page-nav span {
  color: var(--fg-dim);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid var(--line);
}
.page-nav a:hover { color: var(--bg); background: var(--fg); }
.page-nav .current { color: var(--bg); background: var(--fg); border-color: var(--fg); }

/* ===== 文章页 ===== */
.post-title {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.post-date { color: var(--fg-dim); font-size: 13px; }
.post-content { margin-top: 22px; font-size: 15px; }
.post-content p { margin: 12px 0; }
.post-content blockquote {
  border-left: 3px solid var(--fg);
  padding: 4px 14px;
  margin: 16px 0;
  color: var(--fg-dim);
}
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
  border: 1px solid var(--line);
  filter: saturate(.85) contrast(1.05);
}
.post-content a { color: var(--fg); text-decoration: underline; }
.post-content a:hover { text-shadow: var(--glow); }

/* ===== 页脚 ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  color: var(--fg-dim);
  font-size: 13px;
  text-align: center;
}
