@charset "UTF-8";
/**
 * Reset some basic elements
 */
body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
  margin: 0;
  padding: 0;
}

/**
 * Basic styling
 */
body {
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #111;
  background-color: #fdfdfd;
  -webkit-text-size-adjust: 100%;
  -webkit-font-feature-settings: "kern" 1;
  -moz-font-feature-settings: "kern" 1;
  -o-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/**
 * Set `margin-bottom` to maintain vertical rhythm
 */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
.highlight {
  margin-bottom: 15px;
}

/**
 * `main` element
 */
main {
  display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
}

/**
 * Images
 */
img {
  max-width: 100%;
  vertical-align: middle;
}

/**
 * Figures
 */
figure > img {
  display: block;
}

figcaption {
  font-size: 14px;
}

/**
 * Lists
 */
ul, ol {
  margin-left: 30px;
}

li > ul,
li > ol {
  margin-bottom: 0;
}

/**
 * Headings
 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

/**
 * Links
 */
a {
  color: #2a7ae2;
  text-decoration: none;
}
a:visited {
  color: rgb(8.9993518068%, 33.8251498947%, 66.0986874088%);
}
a:hover {
  color: #111;
  text-decoration: underline;
}
.social-media-list a:hover {
  text-decoration: none;
}
.social-media-list a:hover .username {
  text-decoration: underline;
}

/**
 * Blockquotes
 */
blockquote {
  color: #828282;
  border-left: 4px solid #e8e8e8;
  padding-left: 15px;
  font-size: 18px;
  letter-spacing: -1px;
  font-style: italic;
}
blockquote > :last-child {
  margin-bottom: 0;
}

/**
 * Code formatting
 */
pre,
code {
  font-size: 15px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background-color: #eef;
}

code {
  padding: 1px 5px;
}

pre {
  padding: 8px 12px;
  overflow-x: auto;
}
pre > code {
  border: 0;
  padding-right: 0;
  padding-left: 0;
}

/**
 * Wrapper
 */
.wrapper {
  max-width: -webkit-calc(800px - (30px * 2));
  max-width: calc(800px - 30px * 2);
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
}
@media screen and (max-width: 800px) {
  .wrapper {
    max-width: -webkit-calc(800px - (30px));
    max-width: calc(800px - (30px));
    padding-right: 15px;
    padding-left: 15px;
  }
}

/**
 * Clearfix
 */
.footer-col-wrapper:after, .wrapper:after {
  content: "";
  display: table;
  clear: both;
}

/**
 * Icons
 */
.svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  fill: #828282;
  padding-right: 5px;
  vertical-align: text-top;
}

.social-media-list li + li {
  padding-top: 5px;
}

/**
 * Tables
 */
table {
  margin-bottom: 30px;
  width: 100%;
  text-align: left;
  color: rgb(24.6666666667%, 24.6666666667%, 24.6666666667%);
  border-collapse: collapse;
  border: 1px solid #e8e8e8;
}
table tr:nth-child(even) {
  background-color: rgb(96.9803921569%, 96.9803921569%, 96.9803921569%);
}
table th, table td {
  padding: 9.999999999px 15px;
}
table th {
  background-color: rgb(93.9803921569%, 93.9803921569%, 93.9803921569%);
  border: 1px solid rgb(86.9803921569%, 86.9803921569%, 86.9803921569%);
  border-bottom-color: rgb(78.9803921569%, 78.9803921569%, 78.9803921569%);
}
table td {
  border: 1px solid #e8e8e8;
}

/**
 * Site header
 */
.site-header {
  border-top: 5px solid rgb(25.9803921569%, 25.9803921569%, 25.9803921569%);
  border-bottom: 1px solid #e8e8e8;
  min-height: 55.95px;
  position: relative;
}

.site-title {
  font-size: 26px;
  font-weight: 300;
  line-height: 54px;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left;
}
.site-title, .site-title:visited {
  color: rgb(25.9803921569%, 25.9803921569%, 25.9803921569%);
}

.site-nav {
  float: right;
  line-height: 54px;
}
.site-nav .nav-trigger {
  display: none;
}
.site-nav .menu-icon {
  display: none;
}
.site-nav .page-link {
  color: #111;
  line-height: 1.5;
}
.site-nav .page-link:not(:last-child) {
  margin-right: 20px;
}
@media screen and (max-width: 600px) {
  .site-nav {
    position: absolute;
    top: 9px;
    right: 15px;
    background-color: #fdfdfd;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    text-align: right;
  }
  .site-nav label[for=nav-trigger] {
    display: block;
    float: right;
    width: 36px;
    height: 36px;
    z-index: 2;
    cursor: pointer;
  }
  .site-nav .menu-icon {
    display: block;
    float: right;
    width: 36px;
    height: 26px;
    line-height: 0;
    padding-top: 10px;
    text-align: center;
  }
  .site-nav .menu-icon > svg {
    fill: rgb(25.9803921569%, 25.9803921569%, 25.9803921569%);
  }
  .site-nav input ~ .trigger {
    clear: both;
    display: none;
  }
  .site-nav input:checked ~ .trigger {
    display: block;
    padding-bottom: 5px;
  }
  .site-nav .page-link {
    display: block;
    margin-left: 20px;
    padding: 5px 10px;
  }
  .site-nav .page-link:not(:last-child) {
    margin-right: 0;
  }
}

/**
 * Site footer
 */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 30px 0;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 15px;
}

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0;
}

.footer-col-wrapper {
  font-size: 15px;
  color: #828282;
  margin-left: -15px;
}

.footer-col {
  float: left;
  margin-bottom: 15px;
  padding-left: 15px;
}

.footer-col-1 {
  width: -webkit-calc(35% - (30px / 2));
  width: calc(35% - 30px / 2);
}

.footer-col-2 {
  width: -webkit-calc(20% - (30px / 2));
  width: calc(20% - 30px / 2);
}

.footer-col-3 {
  width: -webkit-calc(45% - (30px / 2));
  width: calc(45% - 30px / 2);
}

@media screen and (max-width: 800px) {
  .footer-col-1,
  .footer-col-2 {
    width: -webkit-calc(50% - (30px / 2));
    width: calc(50% - 30px / 2);
  }
  .footer-col-3 {
    width: -webkit-calc(100% - (30px / 2));
    width: calc(100% - 30px / 2);
  }
}
@media screen and (max-width: 600px) {
  .footer-col {
    float: none;
    width: -webkit-calc(100% - (30px / 2));
    width: calc(100% - 30px / 2);
  }
}
/**
 * Page content
 */
.page-content {
  padding: 30px 0;
  flex: 1;
}

.page-heading {
  font-size: 32px;
}

.post-list-heading {
  font-size: 28px;
}

.post-list {
  margin-left: 0;
  list-style: none;
}
.post-list > li {
  margin-bottom: 30px;
}

.post-meta {
  font-size: 14px;
  color: #828282;
}

.post-link {
  display: block;
  font-size: 24px;
}

/**
 * Posts
 */
.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 42px;
  letter-spacing: -1px;
  line-height: 1;
}
@media screen and (max-width: 800px) {
  .post-title {
    font-size: 36px;
  }
}

.post-content {
  margin-bottom: 30px;
}
.post-content h2 {
  font-size: 32px;
}
@media screen and (max-width: 800px) {
  .post-content h2 {
    font-size: 28px;
  }
}
.post-content h3 {
  font-size: 26px;
}
@media screen and (max-width: 800px) {
  .post-content h3 {
    font-size: 22px;
  }
}
.post-content h4 {
  font-size: 20px;
}
@media screen and (max-width: 800px) {
  .post-content h4 {
    font-size: 18px;
  }
}

/**
 * Syntax highlighting styles
 */
.highlight {
  background: #fff;
}
.highlighter-rouge .highlight {
  background: #eef;
}
.highlight .c {
  color: #998;
  font-style: italic;
}
.highlight .err {
  color: #a61717;
  background-color: #e3d2d2;
}
.highlight .k {
  font-weight: bold;
}
.highlight .o {
  font-weight: bold;
}
.highlight .cm {
  color: #998;
  font-style: italic;
}
.highlight .cp {
  color: #999;
  font-weight: bold;
}
.highlight .c1 {
  color: #998;
  font-style: italic;
}
.highlight .cs {
  color: #999;
  font-weight: bold;
  font-style: italic;
}
.highlight .gd {
  color: #000;
  background-color: #fdd;
}
.highlight .gd .x {
  color: #000;
  background-color: #faa;
}
.highlight .ge {
  font-style: italic;
}
.highlight .gr {
  color: #a00;
}
.highlight .gh {
  color: #999;
}
.highlight .gi {
  color: #000;
  background-color: #dfd;
}
.highlight .gi .x {
  color: #000;
  background-color: #afa;
}
.highlight .go {
  color: #888;
}
.highlight .gp {
  color: #555;
}
.highlight .gs {
  font-weight: bold;
}
.highlight .gu {
  color: #aaa;
}
.highlight .gt {
  color: #a00;
}
.highlight .kc {
  font-weight: bold;
}
.highlight .kd {
  font-weight: bold;
}
.highlight .kp {
  font-weight: bold;
}
.highlight .kr {
  font-weight: bold;
}
.highlight .kt {
  color: #458;
  font-weight: bold;
}
.highlight .m {
  color: #099;
}
.highlight .s {
  color: #d14;
}
.highlight .na {
  color: #008080;
}
.highlight .nb {
  color: #0086B3;
}
.highlight .nc {
  color: #458;
  font-weight: bold;
}
.highlight .no {
  color: #008080;
}
.highlight .ni {
  color: #800080;
}
.highlight .ne {
  color: #900;
  font-weight: bold;
}
.highlight .nf {
  color: #900;
  font-weight: bold;
}
.highlight .nn {
  color: #555;
}
.highlight .nt {
  color: #000080;
}
.highlight .nv {
  color: #008080;
}
.highlight .ow {
  font-weight: bold;
}
.highlight .w {
  color: #bbb;
}
.highlight .mf {
  color: #099;
}
.highlight .mh {
  color: #099;
}
.highlight .mi {
  color: #099;
}
.highlight .mo {
  color: #099;
}
.highlight .sb {
  color: #d14;
}
.highlight .sc {
  color: #d14;
}
.highlight .sd {
  color: #d14;
}
.highlight .s2 {
  color: #d14;
}
.highlight .se {
  color: #d14;
}
.highlight .sh {
  color: #d14;
}
.highlight .si {
  color: #d14;
}
.highlight .sx {
  color: #d14;
}
.highlight .sr {
  color: #009926;
}
.highlight .s1 {
  color: #d14;
}
.highlight .ss {
  color: #990073;
}
.highlight .bp {
  color: #999;
}
.highlight .vc {
  color: #008080;
}
.highlight .vg {
  color: #008080;
}
.highlight .vi {
  color: #008080;
}
.highlight .il {
  color: #099;
}

/* ============================================================
   EtherNotes — 8-Bit Pixel 主题
   字体: Fusion Pixel 缝合像素字体（OFL 1.1）+ 柔和黑体兜底，绝不回退宋体楷体
   设计: 方块像素边框 / 硬阴影 / 扫描线 / 无圆角
   ============================================================ */
/* ---- Pixel Fonts (vendored, OFL 1.1) ---- */
/* 注意: url 相对编译后的 assets/main.css，故为 fonts/ 而非 ../fonts/ */
@font-face {
  font-family: "Fusion Pixel";
  src: url("fonts/fusion-pixel-12px-proportional-latin.otf.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fusion Pixel";
  src: url("fonts/fusion-pixel-12px-proportional-zh_hans.otf.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+3000-303F, U+FF00-FFEF;
}
@font-face {
  font-family: "Fusion Pixel Mono";
  src: url("fonts/fusion-pixel-12px-monospaced-latin.otf.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2000-206F, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fusion Pixel Mono";
  src: url("fonts/fusion-pixel-12px-monospaced-zh_hans.otf.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+3000-303F, U+FF00-FFEF;
}
/* ---- CSS Custom Properties ---- */
:root {
  /* Backgrounds — 深蓝黑像素底 */
  --bg-primary: #12121e;
  --bg-secondary: #1b1b2c;
  --bg-tertiary: #26263c;
  --bg-card: #1b1b2c;
  --bg-header: #12121e;
  /* Text */
  --text-primary: #e8e8f0;
  --text-secondary: #b0b0c4;
  --text-muted: #73738c;
  /* Accents — 高饱和像素色 */
  --accent-blue: #4fc3f7;
  --accent-cyan: #26c6da;
  --accent-purple: #b39ddb;
  --accent-green: #81c784;
  --accent-amber: #ffd54f;
  --accent-rose: #ef9a9a;
  /* Category colors */
  --cat-uart: #4fc3f7;
  --cat-i2c: #81c784;
  --cat-spi: #ffd54f;
  --cat-1-wire: #b39ddb;
  --cat-hardware: #ef9a9a;
  --cat-default: #4fc3f7;
  /* 像素边框与硬阴影（无模糊，方块感） */
  --border-subtle: #34344e;
  --border-active: #4fc3f7;
  --shadow-pixel: 0 4px 0 0 #000;
  --shadow-pixel-sm: 0 2px 0 0 #000;
  --shadow-strong: 0 6px 0 0 #000;
  /* Typography — 像素字体，全站中文也像素 */
  --font-mono: "Fusion Pixel Mono", ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --font-sans: "Fusion Pixel", system-ui, -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  /* Spacing */
  --content-width: 960px;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  /* Transitions — 硬切换，少用平滑 */
  --transition-fast: 0.08s steps(2);
  --transition-normal: 0.12s steps(3);
}

/* ---- Global Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
}

/* 扫描线叠加（复古 CRT 感，极淡） */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0px, rgba(0, 0, 0, 0.14) 1px, transparent 1px, transparent 4px);
  opacity: 0.3;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-cyan);
}

img {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* ---- Override Minima Defaults ---- */
.site-header,
.site-footer {
  background-color: var(--bg-header);
  border: none;
}

.wrapper {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER — 像素顶栏
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 4px solid #000;
  box-shadow: 0 2px 0 0 var(--border-subtle);
  padding: 0;
  min-height: 60px;
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-title::before {
  content: ">";
  color: var(--accent-green);
  font-weight: 400;
}

.site-title:hover {
  color: var(--accent-green) !important;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
}

.site-nav .trigger {
  display: flex;
  gap: 8px;
}

.site-nav .page-link {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-secondary);
  padding: 7px 14px;
  border: 2px solid #000;
  background: var(--bg-tertiary);
  box-shadow: inset 2px 2px 0 0 rgba(255, 255, 255, 0.08), inset -2px -2px 0 0 rgba(0, 0, 0, 0.5);
  transition: none;
  line-height: 1;
}

.site-nav .page-link:hover {
  color: #000;
  background: var(--accent-green);
  box-shadow: var(--shadow-pixel-sm);
  transform: translateY(-1px);
}

/* Hamburger menu (mobile) */
.nav-trigger {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  padding: 8px;
}

.menu-icon-bar {
  display: block;
  width: 22px;
  height: 4px;
  background: var(--text-primary);
  transition: none;
}

.menu-icon-bar + .menu-icon-bar {
  margin-top: 4px;
}

/* ============================================================
   HERO / PROFILE SECTION
   ============================================================ */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}

/* 装饰性像素格点 */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: 90vw;
  height: 100%;
  background-image: linear-gradient(rgba(79, 195, 247, 0.05) 2px, transparent 2px), linear-gradient(90deg, rgba(79, 195, 247, 0.05) 2px, transparent 2px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}

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

/* 方形像素头像 */
.hero-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  position: relative;
  image-rendering: pixelated;
}

.hero-avatar img {
  width: 120px;
  height: 120px;
  border: 4px solid #000;
  outline: 2px solid var(--border-active);
  box-shadow: var(--shadow-strong);
  object-fit: cover;
  image-rendering: pixelated;
  transition: none;
}

.hero-avatar img:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 #000;
}

/* Avatar placeholder (when no image) */
.hero-avatar-placeholder {
  width: 120px;
  height: 120px;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 400;
  color: #000;
  border: 4px solid #000;
  box-shadow: var(--shadow-strong);
  image-rendering: pixelated;
}

.hero-name {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 8px;
  text-shadow: 3px 3px 0 #000;
}

.hero-name .cursor {
  display: inline-block;
  width: 14px;
  height: 1em;
  background: var(--accent-green);
  margin-left: 6px;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.hero-bio {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.6;
  text-shadow: 1px 1px 0 #000;
}

/* Social links — 像素按钮 */
.hero-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 2px solid #000;
  background: var(--bg-tertiary);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-secondary);
  box-shadow: inset 2px 2px 0 0 rgba(255, 255, 255, 0.08), inset -2px -2px 0 0 rgba(0, 0, 0, 0.5), var(--shadow-pixel);
  transition: none;
}

.hero-social a:hover {
  color: #000;
  background: var(--accent-blue);
  transform: translateY(2px);
  box-shadow: inset 2px 2px 0 0 rgba(255, 255, 255, 0.15), inset -2px -2px 0 0 rgba(0, 0, 0, 0.4), var(--shadow-pixel-sm);
}

/* Non-link social item (e.g. QQ number display) */
.hero-social-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 2px solid #000;
  background: var(--bg-tertiary);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-secondary);
  box-shadow: inset 2px 2px 0 0 rgba(255, 255, 255, 0.08), inset -2px -2px 0 0 rgba(0, 0, 0, 0.5);
}

/* SVG icons in social buttons */
.hero-social a svg,
.hero-social-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  image-rendering: pixelated;
}

/* ============================================================
   COLUMN NAVIGATION (quick-jump)
   ============================================================ */
.column-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 20px 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.column-nav-link {
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 8px 20px;
  border: 2px solid #000;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-decoration: none;
  box-shadow: var(--shadow-pixel-sm);
  transition: none;
  white-space: nowrap;
}

.column-nav-link:hover {
  color: #000;
  background: var(--accent-amber);
  transform: translateY(1px);
  box-shadow: none;
}

/* ============================================================
   COLUMN & SERIES SECTIONS
   ============================================================ */
.column {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px 50px;
}

.column-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 4px solid #000;
  box-shadow: 0 2px 0 0 var(--border-subtle);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 2px 2px 0 #000;
}

.column-title::before {
  content: "▸";
  color: var(--accent-green);
  font-weight: 400;
}

.subcolumn {
  margin-bottom: 36px;
}

.subcolumn-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--border-subtle);
  text-shadow: 2px 2px 0 #000;
}

.subcolumn-title::before {
  content: "▹ ";
  color: var(--accent-blue);
}

.series {
  margin-bottom: 28px;
}

.series-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--accent-amber);
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-amber);
  text-transform: uppercase;
}

/* ============================================================
   POST CARD GRID
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 0 10px;
}

/* No posts message */
.post-grid-empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  font-family: var(--font-mono);
  font-size: 16px;
}

/* ---- Individual Card — 像素卡片 ---- */
.post-card {
  background: var(--bg-card);
  border: 3px solid #000;
  padding: 24px;
  transition: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 3px 3px 0 0 rgba(255, 255, 255, 0.05), inset -3px -3px 0 0 rgba(0, 0, 0, 0.45), var(--shadow-pixel);
}

/* Top accent bar on card */
.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--accent-blue));
  opacity: 0.7;
}

.post-card:hover {
  border-color: #000;
  transform: translateY(-3px);
  box-shadow: inset 3px 3px 0 0 rgba(255, 255, 255, 0.05), inset -3px -3px 0 0 rgba(0, 0, 0, 0.45), 0 7px 0 0 #000;
}

.post-card:hover::before {
  opacity: 1;
}

/* Category badge */
.post-card-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: #000;
  background: var(--card-accent, var(--accent-blue));
  padding: 2px 8px;
  margin-bottom: 14px;
  text-transform: uppercase;
  border: 2px solid #000;
  align-self: flex-start;
}

/* Card title */
.post-card-title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

.post-card-title a {
  color: var(--text-primary);
  text-shadow: 1px 1px 0 #000;
  transition: none;
}

.post-card-title a:hover {
  color: var(--accent-green);
}

/* Card meta (date + reading time) */
.post-card-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.post-card-meta time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-card-reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Card excerpt */
.post-card-excerpt {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Category-specific accent colors (set via --card-accent) */
.post-card[data-category=uart] {
  --card-accent: #4fc3f7;
}

.post-card[data-category=i2c] {
  --card-accent: #81c784;
}

.post-card[data-category=spi] {
  --card-accent: #ffd54f;
}

.post-card[data-category="1-wire"] {
  --card-accent: #b39ddb;
}

.post-card[data-category=ds18b20] {
  --card-accent: #ef9a9a;
}

.post-card[data-category=advanced] {
  --card-accent: #f48fb1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 4px solid #000;
  padding: 32px 20px;
  text-align: center;
}

.site-footer .wrapper {
  max-width: var(--content-width);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-social a,
.footer-social-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-secondary);
  transition: none;
}

.footer-social a:hover {
  color: var(--accent-green);
}

.footer-social svg,
.footer-social-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.footer-license {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.footer-license a {
  color: var(--accent-blue);
  text-decoration: none;
}

.footer-license a:hover {
  color: var(--accent-green);
}

.footer-copyright .heart {
  color: var(--accent-rose);
}

/* ============================================================
   POST PAGE OVERRIDES (for individual post pages)
   ============================================================ */
/* ---- Tables (global reset — minima's light defaults break dark theme) ---- */
table {
  color: var(--text-primary) !important;
  border-color: var(--border-subtle) !important;
}

table tr:nth-child(even) {
  background: none !important;
}

table tr:nth-child(even) td {
  background: transparent !important;
}

.post-content,
.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.post-header {
  text-align: center;
  padding: 40px 20px 0;
  max-width: 780px;
  margin: 0 auto;
}

.post-title {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 400;
  color: var(--text-primary);
  text-shadow: 3px 3px 0 #000;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}

.post-categories {
  margin-left: 12px;
}

.post-category {
  display: inline-block;
  padding: 2px 10px;
  margin: 0 2px;
  border: 2px solid #000;
  background: var(--bg-tertiary);
  font-size: 13px;
  color: var(--accent-blue);
}

/* ---- Post & Page content typography (像素排版) ---- */
.post-content h1, .post-content h2, .post-content h3, .post-content h4,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--text-primary);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.3;
  font-weight: 400;
  text-shadow: 2px 2px 0 #000;
}
.post-content h1,
.page-content h1 {
  font-size: 28px;
  border-bottom: 4px solid #000;
  padding-bottom: 0.4em;
}
.post-content h2,
.page-content h2 {
  font-size: 24px;
  border-bottom: 3px solid #000;
  padding-bottom: 0.3em;
}
.post-content h3,
.page-content h3 {
  font-size: 20px;
}
.post-content h4,
.page-content h4 {
  font-size: 18px;
  color: var(--text-secondary);
}
.post-content p,
.page-content p {
  margin: 0 0 1em;
  line-height: 1.7;
}
.post-content a,
.page-content a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.post-content a:hover,
.page-content a:hover {
  color: var(--accent-green);
}
.post-content,
.page-content {
  /* Lists */
}
.post-content ul, .post-content ol,
.page-content ul,
.page-content ol {
  padding-left: 1.5em;
  margin: 0 0 1em;
}
.post-content li,
.page-content li {
  margin-bottom: 0.35em;
  line-height: 1.7;
}
.post-content li > ul, .post-content li > ol,
.page-content li > ul,
.page-content li > ol {
  margin-top: 0.35em;
  margin-bottom: 0;
}
.post-content,
.page-content {
  /* Blockquote — 像素引语框 */
}
.post-content blockquote,
.page-content blockquote {
  border-left: 4px solid var(--accent-blue);
  margin: 1.2em 0;
  padding: 0.6em 1em;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  box-shadow: inset 0 0 0 2px #000;
}
.post-content blockquote p:last-child,
.page-content blockquote p:last-child {
  margin-bottom: 0;
}
.post-content,
.page-content {
  /* Horizontal rule — 像素双线 */
}
.post-content hr,
.page-content hr {
  border: none;
  border-top: 2px solid var(--border-subtle);
  border-bottom: 2px solid #000;
  margin: 2em 0;
}
.post-content,
.page-content {
  /* Tables */
}
.post-content table,
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 16px;
}
.post-content th, .post-content td,
.page-content th,
.page-content td {
  padding: 10px 14px;
  border: 2px solid var(--border-subtle);
  text-align: left;
}
.post-content th,
.page-content th {
  background: var(--bg-tertiary);
  font-weight: 400;
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 14px;
}
.post-content tr:hover td,
.page-content tr:hover td {
  background: rgba(79, 195, 247, 0.06);
}
.post-content,
.page-content {
  /* Images — 像素硬边框 */
}
.post-content img,
.page-content img {
  max-width: 100%;
  height: auto;
  border: 3px solid #000;
  outline: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-pixel);
  display: block;
  margin: 1.2em auto;
  image-rendering: pixelated;
}
.post-content,
.page-content {
  /* Inline code */
}
.post-content code,
.page-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--bg-tertiary);
  color: var(--accent-green);
  border: 2px solid #000;
  box-shadow: 0 2px 0 0 #000;
}
.post-content,
.page-content {
  /* Code blocks — 像素终端 */
}
.post-content pre,
.post-content div.highlight,
.page-content pre,
.page-content div.highlight {
  background: #0a0a12 !important;
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0 0 rgba(255, 255, 255, 0.04), inset -3px -3px 0 0 rgba(0, 0, 0, 0.5);
  margin: 1.2em 0;
  overflow-x: auto;
}
.post-content pre,
.page-content pre {
  padding: 16px 20px;
  line-height: 1.5;
}
.post-content pre code,
.page-content pre code {
  padding: 0;
  background: none !important;
  border: none;
  box-shadow: none;
  color: var(--text-primary);
  font-size: 15px;
}
.post-content div.highlight pre,
.page-content div.highlight pre {
  margin: 0;
  border: none;
  box-shadow: none;
}
.post-content,
.page-content {
  /* Strong / emphasis */
}
.post-content strong,
.page-content strong {
  color: var(--accent-amber);
  font-weight: 400;
  text-shadow: 1px 1px 0 #000;
}
.post-content em,
.page-content em {
  color: var(--text-secondary);
}

/* WaveDrom rendered diagrams — 横向滚动窗口：超长时序图保持原始宽度，
   不缩小，容器内横向滚动阅读 */
.post-content .wavedrom,
.post-content script[type=WaveDrom] {
  display: block;
  max-width: 100%;
  margin: 1.2em auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px; /* 给横向滚动条留空间 */
}

.post-content .wavedrom svg {
  background: var(--bg-secondary);
  border: 3px solid #000;
  max-width: none; /* 关键：禁止缩放，保持波形原始宽度 */
  height: auto;
  display: block;
}

.post-content .wavedrom-error {
  padding: 12px 16px;
  color: var(--accent-rose);
  font-family: var(--font-mono);
  font-size: 15px;
  border: 2px solid #000;
  background: var(--bg-tertiary);
}

/* Mermaid diagrams — 同样横向滚动，宽图不缩放 */
.post-content .mermaid {
  display: block;
  margin: 1.2em 0;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--bg-secondary);
  border: 3px solid #000;
  padding: 20px;
}

.post-content .mermaid svg {
  display: block;
  margin: 0 auto; /* 短图居中；超宽时可完整滚动到左侧 */
  max-width: none;
  height: auto;
}

/* ============================================================
   ROUGE SYNTAX THEME (像素终端配色)
   ============================================================ */
.highlight {
  background: #0a0a12 !important;
}

/* Comments */
.highlight .c,
.highlight .cm,
.highlight .c1 {
  color: #6b6b82;
  font-style: italic;
}

.highlight .cp,
.highlight .cs {
  color: #9a9ab2;
}

/* Keywords & types */
.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kc,
.highlight .kt,
.highlight .nc {
  color: #b39ddb;
}

/* Operators */
.highlight .o,
.highlight .ow {
  color: #73738c;
}

/* Numbers */
.highlight .m,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo,
.highlight .il {
  color: #ffd54f;
}

/* Strings */
.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr {
  color: #81c784;
}

.highlight .ss {
  color: #f48fb1;
}

/* Names / attributes / variables */
.highlight .na,
.highlight .no,
.highlight .nv,
.highlight .vc,
.highlight .vg,
.highlight .vi {
  color: #4fc3f7;
}

.highlight .nb {
  color: #26c6da;
}

.highlight .nf,
.highlight .ne {
  color: #ef9a9a;
}

.highlight .nn {
  color: #9a9ab2;
}

.highlight .nt {
  color: #4fc3f7;
}

.highlight .ni {
  color: #f48fb1;
}

/* Misc */
.highlight .bp,
.highlight .gh,
.highlight .gu,
.highlight .w {
  color: #73738c;
}

.highlight .go,
.highlight .gp {
  color: #9a9ab2;
}

.highlight .gr,
.highlight .gt {
  color: #ef9a9a;
}

.highlight .err {
  color: #ef9a9a;
  background: transparent;
}

.highlight .gd {
  color: #ef9a9a;
  background: transparent;
}

.highlight .gi {
  color: #81c784;
  background: transparent;
}

.highlight .ge {
  font-style: italic;
}

.highlight .gs {
  font-weight: 400;
}

/* ============================================================
   POST SIDEBAR (series navigation)
   ============================================================ */
.post-wrapper {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 20px 0;
}

.post-wrapper.has-sidebar {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  /* 侧栏贴屏幕左侧：放开 960px 限宽，文章列在剩余空间中居中 */
  max-width: none;
  padding: 20px 32px 0;
}

.post-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 76px;
  padding: 24px 0;
}

.sidebar-header {
  margin-bottom: 20px;
}

.sidebar-breadcrumb {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-blue);
  text-decoration: none;
  transition: none;
}

.sidebar-breadcrumb:hover {
  color: var(--accent-green);
}

.sidebar-sep {
  color: var(--text-muted);
  margin: 0 6px;
}

.sidebar-breadcrumb-current {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}

.sidebar-series {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 3px solid #000;
}

.sidebar-series-name {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  text-transform: uppercase;
  margin: 0;
  text-shadow: 2px 2px 0 #000;
}

.sidebar-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 4px;
}

.sidebar-link {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: none;
  border-left: 4px solid transparent;
  line-height: 1.5;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: rgba(79, 195, 247, 0.08);
  border-left-color: var(--border-subtle);
}

.sidebar-link.active {
  color: #000;
  background: var(--accent-blue);
  border-left-color: #000;
  box-shadow: 0 3px 0 0 #000;
}

.has-sidebar .post-main {
  flex: 1;
  min-width: 0;
  padding: 20px 0 0;
}

.has-sidebar .post-header {
  text-align: left;
  padding: 0 0 20px;
  /* 文章列在侧栏右侧剩余空间中水平居中，限阅读舒适宽度 */
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.has-sidebar .post-content {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 40px;
}

.has-sidebar .post-series-nav {
  max-width: 720px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Series prev/next navigation — 像素按钮 */
.post-series-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 3px solid #000;
}

.series-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border: 2px solid #000;
  background: var(--bg-secondary);
  text-decoration: none;
  transition: none;
  max-width: 48%;
  box-shadow: var(--shadow-pixel-sm);
}

.series-nav-link:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-pixel);
}

.series-nav-link.empty {
  visibility: hidden;
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.nav-title {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 400;
}

/* Sidebar on mobile: collapse to horizontal pills */
@media (max-width: 768px) {
  .post-wrapper.has-sidebar {
    flex-direction: column;
    gap: 0;
  }
  .post-sidebar {
    position: static;
    width: 100%;
    padding: 16px 0 8px;
  }
  .sidebar-header {
    margin-bottom: 12px;
  }
  .sidebar-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .sidebar-nav li {
    margin-bottom: 0;
  }
  .sidebar-link {
    padding: 5px 12px;
    font-size: 14px;
    border-left: none;
    border: 2px solid #000;
    background: var(--bg-secondary);
  }
  .sidebar-link.active {
    border-color: #000;
  }
  .sidebar-series {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  .has-sidebar .post-main {
    padding-top: 0;
  }
  .post-series-nav {
    flex-direction: column;
    gap: 10px;
  }
  .series-nav-link {
    max-width: 100%;
  }
}
/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
/* Tablet */
@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
  }
  .hero {
    padding: 40px 20px 30px;
  }
  .hero-name {
    font-size: 28px;
  }
  .hero-avatar,
  .hero-avatar img,
  .hero-avatar-placeholder {
    width: 96px;
    height: 96px;
  }
  .post-title {
    font-size: 26px;
  }
}
/* Mobile */
@media (max-width: 520px) {
  .post-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero {
    padding: 30px 16px 24px;
  }
  .hero-name {
    font-size: 24px;
  }
  .hero-bio {
    font-size: 16px;
  }
  .hero-avatar,
  .hero-avatar img,
  .hero-avatar-placeholder {
    width: 80px;
    height: 80px;
  }
  .site-title {
    font-size: 17px;
  }
  .column-nav {
    gap: 6px;
    padding: 0 12px 24px;
  }
  .column-nav-link {
    font-size: 13px;
    padding: 6px 14px;
  }
  .post-card {
    padding: 18px;
  }
  .post-card-title {
    font-size: 18px;
  }
  .post-title {
    font-size: 22px;
  }
  /* Mobile hamburger menu */
  .site-nav .trigger {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--bg-secondary);
    border: 3px solid #000;
    padding: 12px;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
    box-shadow: 0 6px 0 0 #000;
  }
  .nav-trigger:checked ~ .trigger {
    display: flex;
  }
  .menu-icon {
    display: block;
  }
  .site-nav .page-link {
    padding: 10px 14px;
  }
}
/* ============================================================
   ANIMATIONS
   ============================================================ */
/* Fade in cards on load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.post-card {
  animation: fadeInUp 0.4s steps(5) backwards;
}

.post-card:nth-child(1) {
  animation-delay: 0.05s;
}

.post-card:nth-child(2) {
  animation-delay: 0.1s;
}

.post-card:nth-child(3) {
  animation-delay: 0.15s;
}

.post-card:nth-child(4) {
  animation-delay: 0.2s;
}

.post-card:nth-child(5) {
  animation-delay: 0.25s;
}

.post-card:nth-child(6) {
  animation-delay: 0.3s;
}

.post-card:nth-child(7) {
  animation-delay: 0.35s;
}

.post-card:nth-child(8) {
  animation-delay: 0.4s;
}

/* ============================================================
   SCROLLBAR STYLING — 方块滚动条
   ============================================================ */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-left: 2px solid #000;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 0 rgba(255, 255, 255, 0.1), inset -2px -2px 0 0 rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================================
   SELECTION — 8-bit 反色块选
   ============================================================ */
::selection {
  background: var(--accent-green);
  color: #000;
}

/*# sourceMappingURL=main.css.map */