.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: var(--bg-primary);
  pointer-events: all;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-char {
  display: inline-block;
  animation: loader-wave 1.8s calc(var(--i) * -0.13s) infinite;
}
.loader-text {
  position: absolute;
  left: 24px;
  bottom: 76px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 1px;
}
.loader-dots {
  display: inline-block;
}
.loader-dots span {
  animation: dot-blink 1.4s infinite;
}
.loader-dots span:nth-child(1) {
  animation-delay: 0s;
}
.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
.loader-track {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 40px;
  height: 26px;
  background: var(--border-gray);
  overflow: hidden;
}
.loader-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--text-primary);
  transition: width 0.15s linear;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--bg-primary), transparent);
  opacity: 0.5;
  animation: bar-sheen 1.5s linear infinite;
}
.loader-percent {
  position: absolute;
  right: 24px;
  bottom: 76px;
  font-size: 14px;
  font-weight: 600;
  font-family: "SF Mono", "Cascadia Code", "Fira Code", Menlo, monospace;
  color: var(--text-primary);
}
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #00d4ff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease;
}
.page-transition.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.page-transition.closing {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease 0.2s;
}
body {
  opacity: 0;
  transition: opacity 0.8s ease;
}
body.loaded {
  opacity: 1;
}
.article-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.article-card.visible {
  opacity: 1;
  transform: translateY(0);
}
html {
  transition: background-color 0.4s ease, color 0.3s ease;
}
:root {
  --bg-primary: #fff;
  --bg-secondary: #f5f5f5;
  --bg-footer: rgba(255,255,255,0.7);
  --text-primary: #111;
  --text-secondary: #555;
  --text-muted: #999;
  --border-light: #e0e0e0;
  --border-gray: #ccc;
  --card-bg: #fff;
  --nav-bg: rgba(255,255,255,0.2);
  --nav-border: rgba(0,0,0,0.07);
  --nav-blur: 10px;
  --nav-edge: 24px;
  --nav-rim: rgba(255,255,255,0.85);
  --nav-rim-top: #fff;
  --nav-rim-w: 1.5px;
  --nav-inner-shadow: rgba(0,0,0,0.18);
  --nav-accent: #007a99;
  --pill-blur: 6px;
  --pill-bg-hover: rgba(255,255,255,0.26);
  --pill-bg-active: rgba(255,255,255,0.52);
  --pill-rim: rgba(255,255,255,0.85);
  --pill-ring: rgba(17,17,17,0.42);
  --pill-ring-w: 1px;
  --code-glass-bg: rgba(252,252,253,0.78);
  --code-glass-blur: 14px;
  --code-rim: rgba(255,255,255,0.9);
  --code-shade: rgba(0,0,0,0.06);
  --code-gutter-bg: rgba(0,0,0,0.02);
  --code-gutter-text: #6e7781;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.06);
  --shadow-brand: 0 0 12px rgba(0,0,0,0.08);
  --shadow-card: 0 8px 20px rgba(0,0,0,0.08);
  --brand-color: #111;
  --brand-link-hover: #333;
  --btn-bg: rgba(0,0,0,0.04);
  --btn-hover-bg: rgba(0,0,0,0.08);
  --nav-hover-bg: rgba(0,0,0,0.04);
  --code-bg: #f0f0f0;
  --code-text: #333;
  --pre-bg: #f6f8fa;
  --pre-text: #1f2328;
  --blockquote-bg: #f5f5f5;
  --footer-text: #555;
  --footer-link: #999;
  --code-border: #d0d7de;
  --code-header-bg: rgba(246,248,250,0.72);
  --code-lang: #656d76;
  --code-copy-bg: rgba(0,0,0,0.04);
  --code-copy-hover-bg: rgba(0,0,0,0.07);
  --code-copy-shadow: rgba(0,0,0,0.12);
  --code-copy-press: rgba(0,0,0,0.16);
  --ctl-bg: rgba(255,255,255,0.62);
  --ctl-bg-hover: rgba(255,255,255,0.88);
  --ctl-edge: rgba(0,0,0,0.07);
  --ctl-rim: rgba(255,255,255,0.95);
  --ctl-shade: rgba(0,0,0,0.05);
  --ctl-glow: rgba(0,0,0,0.1);
  --ctl-outer-1: 0 1px 2px rgba(0,0,0,0.05);
  --ctl-outer-2: 0 6px 16px -6px rgba(0,0,0,0.26);
  --ctl-press-1: inset 0 2px 5px rgba(0,0,0,0.13);
  --ctl-press-2: inset 0 -1px 0 rgba(255,255,255,0.7);
  --ctl-ring-track: rgba(0,0,0,0.08);
  --nav-sweep: rgba(0,0,0,0.055);
  --nav-sweep-active: rgba(255,255,255,0.12);
  --glass-blur: 24px;
  --glass-saturate: 180%;
}
[data-theme="dark"] {
  --bg-primary: #000;
  --bg-secondary: #0a0a0a;
  --bg-footer: rgba(18,18,18,0.58);
  --text-primary: #f0f0f0;
  --text-secondary: #999;
  --text-muted: #666;
  --border-light: #222;
  --border-gray: #333;
  --card-bg: #0a0a0a;
  --nav-bg: rgba(12,12,12,0.32);
  --nav-border: rgba(255,255,255,0.1);
  --nav-rim: rgba(255,255,255,0.3);
  --nav-rim-top: rgba(255,255,255,0.42);
  --nav-rim-w: 1px;
  --nav-inner-shadow: rgba(0,0,0,0.5);
  --nav-accent: #00d4ff;
  --pill-bg-hover: rgba(255,255,255,0.1);
  --pill-bg-active: rgba(255,255,255,0.2);
  --pill-rim: rgba(255,255,255,0.35);
  --pill-ring: rgba(240,240,240,0.34);
  --pill-ring-w: 1px;
  --code-glass-bg: rgba(8,8,10,0.68);
  --code-rim: rgba(255,255,255,0.07);
  --code-shade: rgba(0,0,0,0.3);
  --code-gutter-bg: rgba(255,255,255,0.03);
  --code-gutter-text: #7a828b;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.5);
  --shadow-brand: 0 0 12px rgba(0,0,0,0.6);
  --shadow-card: 0 8px 20px rgba(0,0,0,0.5);
  --brand-color: #f0f0f0;
  --brand-link-hover: #ccc;
  --btn-bg: rgba(255,255,255,0.06);
  --btn-hover-bg: rgba(255,255,255,0.12);
  --nav-hover-bg: rgba(255,255,255,0.05);
  --code-bg: #1a1a1a;
  --code-text: #d0d0d0;
  --pre-bg: #000;
  --pre-text: #e0e0e0;
  --blockquote-bg: rgba(255,255,255,0.04);
  --footer-text: #999;
  --footer-link: #666;
  --code-border: #30363d;
  --code-header-bg: rgba(22,27,34,0.7);
  --code-lang: #8b949e;
  --code-copy-bg: rgba(255,255,255,0.04);
  --code-copy-hover-bg: rgba(255,255,255,0.1);
  --code-copy-shadow: rgba(0,0,0,0.35);
  --code-copy-press: rgba(0,0,0,0.5);
  --ctl-bg: rgba(255,255,255,0.055);
  --ctl-bg-hover: rgba(255,255,255,0.11);
  --ctl-edge: rgba(255,255,255,0.1);
  --ctl-rim: rgba(255,255,255,0.17);
  --ctl-shade: rgba(0,0,0,0.45);
  --ctl-glow: rgba(0,0,0,0.55);
  --ctl-outer-1: 0 1px 2px rgba(0,0,0,0.45);
  --ctl-outer-2: 0 6px 16px -6px rgba(0,0,0,0.75);
  --ctl-press-1: inset 0 2px 6px rgba(0,0,0,0.72);
  --ctl-press-2: inset 0 -1px 0 rgba(255,255,255,0.06);
  --ctl-ring-track: rgba(255,255,255,0.14);
  --nav-sweep: rgba(255,255,255,0.075);
  --nav-sweep-active: rgba(0,0,0,0.1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: url("/img/bg-tech.svg");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 720px 480px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand-color);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--brand-link-hover);
}
img,
svg {
  max-width: 100%;
  display: block;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.main-container {
  flex: 1 0 auto;
  padding: 92px 24px 64px;
}
.content-wrapper {
  max-width: 860px;
  margin: 0 auto;
}
.navbar {
  position: fixed;
  top: 16px;
  left: var(--nav-edge);
  right: var(--nav-edge);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.is-hidden {
  transform: translateY(-160%);
}
.navbar:focus-within {
  transform: translateY(0);
}
.navbar-brand,
.navbar-actions,
.theme-toggle {
  display: flex;
  align-items: center;
  height: 56px;
  pointer-events: auto;
  border-radius: 999px;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--nav-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--nav-border);
  box-shadow: inset 0 0 0 var(--nav-rim-w) var(--nav-rim), inset 0 1px 0 var(--nav-rim-top), inset 0 8px 10px -6px var(--nav-inner-shadow), var(--ctl-outer-1), var(--ctl-outer-2);
}
.navbar-brand {
  flex-shrink: 1;
  min-width: 0;
  padding: 0 20px;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}
.navbar-brand .navbar-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
@media (hover: hover) and (pointer: fine) {
  .navbar-brand:hover {
    color: var(--nav-accent);
  }
}
.navbar-actions {
  margin-left: auto;
  flex-shrink: 0;
  gap: 6px;
  padding: 0 8px;
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  min-width: 0;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.18s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--nav-sweep);
  clip-path: circle(0% at 0% 100%);
  transition: clip-path 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.nav-link svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nav-link.active {
  background: var(--pill-bg-active);
  color: var(--nav-accent);
  backdrop-filter: blur(var(--pill-blur)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--pill-blur)) saturate(200%);
  box-shadow: 0 0 0 var(--pill-ring-w) var(--pill-ring), inset 0 0 0 1px var(--pill-rim), inset 0 1px 0 var(--pill-rim);
}
.nav-link.active svg {
  stroke: var(--nav-accent);
}
.nav-link.active::after {
  background: var(--nav-sweep-active);
}
.nav-link.active:hover {
  background: var(--pill-bg-active);
  color: var(--nav-accent);
}
.nav-link.active:hover svg {
  stroke: var(--nav-accent);
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--nav-accent);
    background: var(--pill-bg-hover);
    backdrop-filter: blur(var(--pill-blur)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--pill-blur)) saturate(200%);
    box-shadow: inset 0 0 0 1px var(--pill-rim);
  }
  .nav-link:hover svg {
    stroke: var(--nav-accent);
  }
  .nav-link:hover::after {
    clip-path: circle(140% at 0% 100%);
  }
}
.nav-link:active {
  transform: scale(0.96);
  background: var(--pill-bg-hover);
}
.nav-link .nav-text {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 500;
}
.theme-toggle {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s, background 0.25s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.theme-toggle svg {
  position: relative;
  z-index: 1;
  stroke: currentColor;
  width: 22px;
  height: 22px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    background: var(--ctl-bg-hover);
    color: var(--text-primary);
  }
  .theme-toggle:hover svg {
    transform: rotate(25deg);
  }
}
.theme-toggle:active {
  transform: scale(0.96);
  background: var(--ctl-bg-hover);
  box-shadow: var(--ctl-press-1), var(--ctl-press-2);
}
.theme-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(128,128,128,0.25);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}
.home-hero {
  min-height: calc(100vh - 92px);
  min-height: calc(100svh - 92px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 48px;
}
.home-signature {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.home-signature svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.home-signature .sig-variant {
  display: none;
  width: 100%;
}
.home-signature .sig-stroke {
  animation: none;
}
.home-signature.is-playing .sig-stroke {
  animation-name: sig-draw;
  animation-duration: var(--dur);
  animation-delay: var(--delay);
  animation-fill-mode: forwards;
}
html[data-theme="dark"] .home-signature .sig-dark {
  display: block;
}
html[data-theme="light"] .home-signature .sig-light {
  display: block;
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: hint-bob 2.2s ease-in-out infinite;
}
.scroll-hint .scroll-hint-icon {
  display: none;
  width: 26px;
  height: 26px;
}
.scroll-hint .scroll-hint-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
@media (hover: hover) and (pointer: fine) {
  .scroll-hint:hover {
    color: var(--text-primary);
  }
}
html[data-theme="dark"] .scroll-hint .arrow-dark {
  display: block;
}
html[data-theme="light"] .scroll-hint .arrow-light {
  display: block;
}
.home-posts {
  padding-top: 8px;
  scroll-margin-top: 84px;
}
.home-empty {
  font-size: 1.05rem;
  color: var(--text-secondary);
}
.home-intro {
  padding: 40px 0 40px;
}
.intro-greeting {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.intro-greeting strong {
  font-weight: 700;
}
.intro-underline {
  width: 0;
  height: 12px;
  background: rgba(0,113,227,0.3);
  margin-bottom: 40px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.intro-underline.animate {
  width: 100%;
}
.intro-body {
  margin-bottom: 40px;
}
.intro-body p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 4px;
}
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.article-card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow-brand);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.article-card .card-title {
  font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}
.article-card .card-title a {
  color: var(--text-primary);
}
.article-card .card-title a:hover {
  color: var(--brand-color);
}
.article-card .card-meta {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.article-card .card-meta a {
  color: var(--brand-color);
}
.article-card .card-meta a:hover {
  text-decoration: underline;
}
.article-card .card-excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.article-card .read-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-color);
  padding: 6px 16px;
  border-radius: 8px;
  background: var(--btn-bg);
  transition: background 0.2s, transform 0.18s ease;
}
.article-card .read-more:hover {
  background: var(--btn-hover-bg);
  color: var(--brand-link-hover);
}
.article-card .read-more:active {
  transform: scale(0.95);
}
.post-header,
.page-single > .page-title {
  margin-bottom: 32px;
  text-align: center;
}
.post-title,
.page-title {
  font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.post-meta {
  font-size: 14px;
  color: var(--text-muted);
}
.post-meta a {
  color: var(--brand-color);
}
.post-meta a:hover {
  text-decoration: underline;
}
.post-content,
.page-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-wrap: break-word;
}
.post-content h1,
.page-content h1,
.post-content h2,
.page-content h2,
.post-content h3,
.page-content h3,
.post-content h4,
.page-content h4,
.post-content h5,
.page-content h5,
.post-content h6,
.page-content h6 {
  font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.post-content h1,
.page-content h1 {
  font-size: 2rem;
}
.post-content h2,
.page-content h2 {
  font-size: 1.75rem;
}
.post-content h3,
.page-content h3 {
  font-size: 1.5rem;
}
.post-content h4,
.page-content h4 {
  font-size: 1.25rem;
}
.post-content h5,
.page-content h5 {
  font-size: 1.1rem;
}
.post-content h6,
.page-content h6 {
  font-size: 1rem;
}
.post-content p,
.page-content p {
  margin-bottom: 16px;
}
.post-content img,
.page-content img {
  border-radius: 8px;
  margin: 24px auto;
}
.post-content blockquote,
.page-content blockquote {
  border-left: 3px solid var(--brand-color);
  padding: 4px 20px;
  margin: 20px 0;
  color: var(--text-secondary);
  background: var(--blockquote-bg);
  border-radius: 0 8px 8px 0;
}
.post-content code,
.page-content code {
  font-family: "SF Mono", "Cascadia Code", "Fira Code", Menlo, monospace;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.post-content pre,
.page-content pre {
  background: var(--pre-bg);
  color: var(--pre-text);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}
.post-content pre code,
.page-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.post-content .code-block,
.page-content .code-block {
  position: relative;
  margin: 24px 0;
  border: 1px solid var(--code-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--code-glass-bg);
  backdrop-filter: blur(var(--code-glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--code-glass-blur)) saturate(160%);
  box-shadow: inset 0 1px 0 var(--code-rim), inset 0 -1px 0 var(--code-shade), var(--ctl-outer-1), var(--ctl-outer-2);
}
.post-content .code-block .code-header,
.page-content .code-block .code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--code-header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--code-border);
  user-select: none;
}
.post-content .code-block .code-lang,
.page-content .code-block .code-lang {
  font-size: 12px;
  font-weight: 600;
  color: var(--code-lang);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-content .code-block .code-copy,
.page-content .code-block .code-copy {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  position: relative;
  color: var(--code-lang);
  background: var(--code-copy-bg);
  border: 1px solid var(--code-border);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .post-content .code-block .code-copy:hover,
  .page-content .code-block .code-copy:hover {
    background: var(--code-copy-hover-bg);
    color: var(--text-primary);
    border-color: var(--text-muted);
    box-shadow: 0 1px 3px var(--code-copy-shadow);
  }
  .post-content .code-block .code-copy:hover svg,
  .page-content .code-block .code-copy:hover svg {
    opacity: 1;
  }
}
.post-content .code-block .code-copy:active,
.page-content .code-block .code-copy:active {
  transform: scale(0.94);
  box-shadow: inset 0 2px 5px var(--code-copy-press);
}
.post-content .code-block .code-copy.copied,
.page-content .code-block .code-copy.copied {
  color: #3fb950;
  border-color: #3fb950;
}
.post-content .code-block .code-copy svg,
.page-content .code-block .code-copy svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: opacity 0.18s ease;
}
.post-content .code-block table,
.page-content .code-block table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.post-content .code-block pre,
.page-content .code-block pre {
  margin: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
}
.post-content .code-block .gutter,
.page-content .code-block .gutter {
  width: 3.4em;
  white-space: nowrap;
  vertical-align: top;
  user-select: none;
  background: var(--code-gutter-bg);
  border-right: 1px solid var(--code-border);
}
.post-content .code-block .gutter pre,
.page-content .code-block .gutter pre {
  padding: 16px 12px 16px 16px;
  text-align: right;
}
.post-content .code-block .gutter .line,
.page-content .code-block .gutter .line {
  color: var(--code-gutter-text);
}
.post-content .code-block .code,
.page-content .code-block .code {
  width: auto;
  vertical-align: top;
}
.post-content .code-block .code pre,
.page-content .code-block .code pre {
  padding: 16px;
}
.post-content a,
.page-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content .hljs-keyword,
.page-content .hljs-keyword,
.post-content .hljs-selector-tag,
.page-content .hljs-selector-tag,
.post-content .hljs-literal,
.page-content .hljs-literal,
.post-content .hljs-section,
.page-content .hljs-section,
.post-content .hljs-link,
.page-content .hljs-link {
  color: #cf222e;
}
.post-content .hljs-string,
.page-content .hljs-string,
.post-content .hljs-title.class_,
.page-content .hljs-title.class_,
.post-content .hljs-title.class_.inherited__,
.page-content .hljs-title.class_.inherited__,
.post-content .hljs-name,
.page-content .hljs-name {
  color: #0a3069;
}
.post-content .hljs-title,
.page-content .hljs-title,
.post-content .hljs-attr,
.page-content .hljs-attr,
.post-content .hljs-params,
.page-content .hljs-params {
  color: #6639ba;
}
.post-content .hljs-built_in,
.page-content .hljs-built_in,
.post-content .hljs-type,
.page-content .hljs-type {
  color: #cf222e;
}
.post-content .hljs-number,
.page-content .hljs-number,
.post-content .hljs-regexp,
.page-content .hljs-regexp {
  color: #0550ae;
}
.post-content .hljs-comment,
.page-content .hljs-comment,
.post-content .hljs-quote,
.page-content .hljs-quote {
  color: #656d76;
  font-style: italic;
}
.post-content .hljs-meta,
.page-content .hljs-meta {
  color: #656d76;
}
.post-content .hljs-symbol,
.page-content .hljs-symbol,
.post-content .hljs-bullet,
.page-content .hljs-bullet,
.post-content .hljs-addition,
.page-content .hljs-addition {
  color: #116329;
}
.post-content .hljs-variable,
.page-content .hljs-variable,
.post-content .hljs-template-variable,
.page-content .hljs-template-variable,
.post-content .hljs-template-tag,
.page-content .hljs-template-tag {
  color: #953800;
}
.post-content .hljs-attribute,
.page-content .hljs-attribute,
.post-content .hljs-tag,
.page-content .hljs-tag {
  color: #116329;
}
.post-content .hljs-deletion,
.page-content .hljs-deletion {
  color: #cf222e;
}
.post-content .hljs-emphasis,
.page-content .hljs-emphasis {
  font-style: italic;
}
.post-content .hljs-strong,
.page-content .hljs-strong {
  font-weight: 700;
}
[data-theme="dark"] .post-content .hljs-keyword,
[data-theme="dark"] .page-content .hljs-keyword,
[data-theme="dark"] .post-content .hljs-selector-tag,
[data-theme="dark"] .page-content .hljs-selector-tag,
[data-theme="dark"] .post-content .hljs-literal,
[data-theme="dark"] .page-content .hljs-literal,
[data-theme="dark"] .post-content .hljs-section,
[data-theme="dark"] .page-content .hljs-section,
[data-theme="dark"] .post-content .hljs-link,
[data-theme="dark"] .page-content .hljs-link {
  color: #ff6b9d;
}
[data-theme="dark"] .post-content .hljs-string,
[data-theme="dark"] .page-content .hljs-string,
[data-theme="dark"] .post-content .hljs-title.class_,
[data-theme="dark"] .page-content .hljs-title.class_,
[data-theme="dark"] .post-content .hljs-title.class_.inherited__,
[data-theme="dark"] .page-content .hljs-title.class_.inherited__,
[data-theme="dark"] .post-content .hljs-name,
[data-theme="dark"] .page-content .hljs-name {
  color: #5eff8f;
}
[data-theme="dark"] .post-content .hljs-title,
[data-theme="dark"] .page-content .hljs-title,
[data-theme="dark"] .post-content .hljs-attr,
[data-theme="dark"] .page-content .hljs-attr,
[data-theme="dark"] .post-content .hljs-params,
[data-theme="dark"] .page-content .hljs-params {
  color: #d2a8ff;
}
[data-theme="dark"] .post-content .hljs-built_in,
[data-theme="dark"] .page-content .hljs-built_in,
[data-theme="dark"] .post-content .hljs-type,
[data-theme="dark"] .page-content .hljs-type {
  color: #ffa657;
}
[data-theme="dark"] .post-content .hljs-number,
[data-theme="dark"] .page-content .hljs-number,
[data-theme="dark"] .post-content .hljs-regexp,
[data-theme="dark"] .page-content .hljs-regexp {
  color: #79c0ff;
}
[data-theme="dark"] .post-content .hljs-comment,
[data-theme="dark"] .page-content .hljs-comment,
[data-theme="dark"] .post-content .hljs-quote,
[data-theme="dark"] .page-content .hljs-quote {
  color: #8b949e;
  font-style: italic;
}
[data-theme="dark"] .post-content .hljs-meta,
[data-theme="dark"] .page-content .hljs-meta {
  color: #8b949e;
}
[data-theme="dark"] .post-content .hljs-symbol,
[data-theme="dark"] .page-content .hljs-symbol,
[data-theme="dark"] .post-content .hljs-bullet,
[data-theme="dark"] .page-content .hljs-bullet,
[data-theme="dark"] .post-content .hljs-addition,
[data-theme="dark"] .page-content .hljs-addition {
  color: #5eff8f;
}
[data-theme="dark"] .post-content .hljs-variable,
[data-theme="dark"] .page-content .hljs-variable,
[data-theme="dark"] .post-content .hljs-template-variable,
[data-theme="dark"] .page-content .hljs-template-variable,
[data-theme="dark"] .post-content .hljs-template-tag,
[data-theme="dark"] .page-content .hljs-template-tag {
  color: #ffe082;
}
[data-theme="dark"] .post-content .hljs-attribute,
[data-theme="dark"] .page-content .hljs-attribute,
[data-theme="dark"] .post-content .hljs-tag,
[data-theme="dark"] .page-content .hljs-tag {
  color: #79c0ff;
}
[data-theme="dark"] .post-content .hljs-deletion,
[data-theme="dark"] .page-content .hljs-deletion {
  color: #ff6b9d;
}
[data-theme="dark"] .post-content .hljs-emphasis,
[data-theme="dark"] .page-content .hljs-emphasis {
  font-style: italic;
}
[data-theme="dark"] .post-content .hljs-strong,
[data-theme="dark"] .page-content .hljs-strong {
  font-weight: 700;
}
.archive-title,
.category-cloud h1,
.tag-cloud h1 {
  font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--text-primary);
}
.archive-year h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand-color);
  margin: 32px 0 12px;
}
.archive-year ul {
  list-style: none;
}
.archive-year ul li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.archive-year ul li time {
  font-size: 14px;
  color: var(--text-muted);
  min-width: 60px;
}
.archive-year ul li a {
  font-weight: 500;
}
.category-cloud,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill-item {
  display: inline-block;
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 9999px;
  background: var(--btn-bg);
  transition: background 0.2s, color 0.2s, transform 0.18s ease;
}
.pill-item:hover {
  background: var(--brand-color);
  color: var(--bg-primary);
}
.pill-item:active {
  transform: scale(0.95);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.pill-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 9999px;
  background: var(--btn-bg);
  transition: background 0.2s, color 0.2s, transform 0.18s ease;
}
.pill-btn:hover {
  background: var(--brand-color);
  color: var(--bg-primary);
}
.pill-btn:active {
  transform: scale(0.95);
}
.is-home .footer {
  margin-top: 0;
}
.footer {
  flex-shrink: 0;
  background: var(--bg-footer);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  color: var(--footer-text);
  border-top: 1px solid var(--border-light);
  padding: 16px 0;
  margin-top: auto;
}
.footer .footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer .footer-col {
  font-size: 14px;
}
.footer .footer-col p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.footer .footer-sep {
  opacity: 0.5;
}
.footer .footer-gongan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer .footer-gongan img {
  display: block;
  width: 18px;
  height: 20px;
}
.footer .footer-uptime .uptime-days {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.footer .footer-license {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer .footer-license .cc-icons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.footer .footer-license .cc-icons svg {
  display: block;
  width: 18px;
  height: 18px;
}
.footer .footer-license .license-text {
  font-size: 14px;
}
.footer a {
  color: var(--footer-link);
}
.footer a:hover {
  color: var(--brand-color);
}
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 300;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  background: var(--ctl-bg);
  border: 1px solid var(--ctl-edge);
  box-shadow: inset 0 1px 0 var(--ctl-rim), inset 0 -1px 0 var(--ctl-shade), var(--ctl-outer-1), var(--ctl-outer-2);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, box-shadow 0.25s ease;
}
.back-to-top::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--brand-color) calc(var(--scroll-p, 0) * 360deg), var(--ctl-ring-track) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: var(--ctl-bg-hover);
  transform: translateY(-2px) scale(1);
}
.back-to-top:active {
  transform: scale(0.96);
  background: var(--ctl-bg-hover);
  box-shadow: var(--ctl-press-1), var(--ctl-press-2);
}
.back-to-top svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.back-to-top:hover svg {
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  body {
    background-size: 480px 320px;
  }
  .main-container {
    padding: 80px 16px 48px;
  }
  .navbar {
    top: 10px;
    left: 50%;
    right: auto;
    width: calc(100vw - 20px);
    height: 56px;
    gap: 2px;
    padding: 0 4px 0 8px;
    pointer-events: auto;
    transform: translateX(-50%);
    background: var(--nav-bg);
    backdrop-filter: blur(var(--nav-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--nav-border);
    box-shadow: inset 0 0 0 var(--nav-rim-w) var(--nav-rim), inset 0 1px 0 var(--nav-rim-top), inset 0 8px 10px -6px var(--nav-inner-shadow), var(--ctl-outer-1), var(--ctl-outer-2);
  }
  .navbar.is-hidden {
    transform: translate(-50%, -160%);
  }
  .navbar:focus-within {
    transform: translateX(-50%);
  }
  .nav-text {
    display: none;
  }
  .navbar-brand {
    padding: 8px 6px;
  }
  .navbar .navbar-title {
    font-size: 0.72rem;
  }
  .navbar .nav-link {
    padding: 13px 10px;
    gap: 0;
  }
  .nav-link {
    -webkit-tap-highlight-color: transparent;
  }
  .navbar-brand,
  .navbar-actions,
  .theme-toggle {
    height: auto;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
  }
  .navbar-actions {
    margin-left: auto;
    padding: 0;
    gap: 0;
  }
  .navbar-menu {
    gap: 2px;
  }
  .theme-toggle {
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
  }
  .home-hero {
    min-height: calc(100vh - 80px);
    min-height: calc(100svh - 80px);
    padding: 0 0 40px;
  }
  .home-hero .home-signature {
    max-width: none;
    width: calc(100% + 16px);
    margin: 0 -8px;
  }
  .post-title,
  .page-title {
    font-size: 1.75rem;
  }
  .intro-greeting {
    font-size: 1.9rem;
  }
  .post-content h1,
  .page-content h1 {
    font-size: 1.5rem;
  }
  .post-content h2,
  .page-content h2 {
    font-size: 1.3rem;
  }
  .post-content h3,
  .page-content h3 {
    font-size: 1.15rem;
  }
  .post-content .code-block pre,
  .page-content .code-block pre {
    padding: 14px;
  }
  .code-copy {
    -webkit-tap-highlight-color: transparent;
  }
  .code-copy::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 44px;
    transform: translateY(-50%);
  }
  .footer {
    padding: 12px 0;
  }
  .footer .footer-inner {
    padding: 0 16px;
  }
  .footer a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }
  .footer .footer-col p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .footer .footer-sep {
    display: none;
  }
  .footer a.footer-icp,
  .footer a.footer-gongan {
    min-height: 28px;
  }
  .footer-license {
    gap: 6px;
  }
  .footer-license .cc-icons {
    gap: 2px;
  }
  .footer-license .cc-icons svg {
    width: 16px;
    height: 16px;
  }
  .footer-license .license-text {
    font-size: 13px;
  }
  .footer-license a {
    min-height: 24px;
  }
  .footer a.footer-gongan {
    min-height: 24px;
  }
  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}
@media (max-width: 370px) {
  .theme-toggle {
    padding: 9px;
  }
}
:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .home-signature .sig-stroke {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .scroll-hint {
    animation: none;
  }
  .loader-char,
  .loader-bar::after {
    animation: none;
  }
  .nav-link::after {
    transition-duration: 0.01ms;
  }
  .nav-link,
  .navbar,
  .back-to-top,
  .theme-toggle {
    transition-duration: 0.01ms;
  }
}
@-moz-keyframes loader-wave {
  0%, 100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@-webkit-keyframes loader-wave {
  0%, 100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@-o-keyframes loader-wave {
  0%, 100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@keyframes loader-wave {
  0%, 100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@-moz-keyframes dot-blink {
  0%, 20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@-webkit-keyframes dot-blink {
  0%, 20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@-o-keyframes dot-blink {
  0%, 20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes dot-blink {
  0%, 20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@-moz-keyframes bar-sheen {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}
@-webkit-keyframes bar-sheen {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}
@-o-keyframes bar-sheen {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}
@keyframes bar-sheen {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}
@-moz-keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
@-webkit-keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
@-o-keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
@-moz-keyframes sig-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@-webkit-keyframes sig-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@-o-keyframes sig-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes sig-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@-moz-keyframes hint-bob {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 7px);
  }
}
@-webkit-keyframes hint-bob {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 7px);
  }
}
@-o-keyframes hint-bob {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 7px);
  }
}
@keyframes hint-bob {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 7px);
  }
}
