:root {
  --primary-color: #a31f34;
  --background-color: #ffffff;
  --second-background-color: #fafafa;
  --third-background-color: #f1f1f1;
  --first-text-color: #282e32;
  --second-text-color: #303638;
  --default-text-color: #373d3f;
  --third-text-color: #697072;
  --border-color: rgba(36,41,47,.10);
  --shadow-color: rgba(0,0,0,.05);
  --shadow: rgba(0,0,0,.06) 0 6px 24px,rgba(0,0,0,.08) 0 0 0 1px;
  --shadow-hover: rgba(0,0,0,.10) 0 8px 30px,rgba(0,0,0,.10) 0 0 0 1px;
  --radius: 18px;
  --navbar-height: 70px;
  --content-width: 1000px;
  --sidebar-width: 210px;
}

html.dark {
  --background-color: #16171a;
  --second-background-color: #202124;
  --third-background-color: #292a2e;
  --first-text-color: #f3f4f6;
  --second-text-color: #e5e7eb;
  --default-text-color: #cbd0d7;
  --third-text-color: #9da4ae;
  --border-color: rgba(255,255,255,.09);
  --shadow-color: rgba(0,0,0,.32);
  --shadow-hover: 0 16px 42px rgba(0,0,0,.42);
  color-scheme: dark;
}

* { box-sizing:border-box; }

.skip-link {
  position:fixed;
  left:16px;
  top:-60px;
  z-index:999;
  padding:8px 14px;
  border-radius:8px;
  background:var(--first-text-color);
  color:var(--background-color);
  transition:top .18s ease;
}
.skip-link:focus { top:12px; }

html, body {
  margin:0;
  min-height:100%;
  background:var(--background-color);
  color:var(--default-text-color);
  font-family:"Geist", -apple-system, BlinkMacSystemFont,"Segoe UI","Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:16px;
  line-height:1.75;
  scrollbar-gutter:stable;
}

body {
  transition:background-color .25s ease,color .25s ease;
}

a { color:inherit; text-decoration:none; transition:color .18s ease,opacity .18s ease; }
a:hover { color:var(--primary-color); }
img { max-width:100%; }

:focus-visible {
  outline:2px solid var(--primary-color);
  outline-offset:3px;
}

::selection { background:var(--primary-color); color:#fff; }

.site-header {
  position:fixed;
  top:0;
  left:0;
  z-index:100;
  width:100%;
  height:var(--navbar-height);
  padding-top:2px;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:height .25s ease,background .25s ease,box-shadow .25s ease;
}

body.has-home-banner .site-header {
  background:rgba(18,20,24,.18);
  border-bottom-color:rgba(255,255,255,.14);
}

body.has-home-banner .brand,
body.has-home-banner .main-navigation a,
body.has-home-banner .theme-toggle,
body.has-home-banner .navbar-toggle span { color:#fff; }

body.has-home-banner .navbar-toggle span { background:#fff; }
body.has-home-banner .site-header.is-fixed {
  background:color-mix(in srgb,var(--second-background-color) 90%,transparent);
  border-bottom-color:var(--border-color);
}

body.has-home-banner .site-header.is-fixed .brand,
body.has-home-banner .site-header.is-fixed .main-navigation a,
body.has-home-banner .site-header.is-fixed .theme-toggle { color:var(--default-text-color); }

body.has-home-banner .site-header.is-fixed .navbar-toggle span { background:var(--first-text-color); }

html.dark .site-header { background:rgba(32,33,36,.72); }

.site-header.is-fixed {
  height:54px;
  background:color-mix(in srgb,var(--second-background-color) 88%,transparent);
  box-shadow:0 4px 18px var(--shadow-color);
}

.navbar {
  position:relative;
  z-index:2;
  max-width:1200px;
  height:68px;
  margin:auto;
  padding:0 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.is-fixed .navbar { height:52px; }

.brand {
  display:flex;
  align-items:center;
  min-width:0;
  font-size:1.7rem;
  font-weight:520;
  color:var(--first-text-color);
  letter-spacing:-.02em;
}

.brand-logo { max-height:42px; }

.main-navigation ul,
.navbar-drawer ul {
  display:flex;
  align-items:center;
  gap:22px;
  margin:0;
  padding:0;
  list-style:none;
}

.main-navigation ul {
  gap:24px;
}

.main-navigation li {
  float:none;
}

.main-navigation li,
.navbar-drawer li { position:relative; }

.main-navigation a {
  position:relative;
  display:block;
  padding:8px 2px;
  color:var(--default-text-color);
  font-size:.95rem;
  font-weight:500;
}

.main-navigation a::after {
  content:"";
  position:absolute;
  bottom:-2px;
  left:50%;
  width:100%;
  height:2px;
  border-radius:999px;
  background:var(--primary-color);
  transform:translate(-50%,5px);
  opacity:0;
  transition:.2s ease;
}

.main-navigation a:hover::after { transform:translate(-50%,0); opacity:1; }

.theme-toggle {
  width:38px;
  height:38px;
  flex:none;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--default-text-color);
  cursor:pointer;
  font-size:18px;
}

.navbar-search-trigger {
  width:38px;
  height:38px;
  flex:none;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--default-text-color);
  cursor:pointer;
  font-size:1.55rem;
  line-height:1;
}

.navbar-search-trigger:hover { background:var(--third-background-color); color:var(--primary-color); }

body.has-home-banner .navbar-search-trigger { color:#fff; }
body.has-home-banner .site-header.is-fixed .navbar-search-trigger { color:var(--default-text-color); }

.search-modal {
  position:fixed;
  inset:0;
  z-index:400;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:15vh 20px 24px;
  background:rgba(15,17,20,.48);
  backdrop-filter:blur(8px);
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease,visibility .2s ease;
}

.search-modal.open { opacity:1; visibility:visible; }

.search-dialog {
  position:relative;
  width:min(620px,100%);
  padding:28px;
  border:1px solid var(--border-color);
  border-radius:18px;
  background:var(--second-background-color);
  box-shadow:0 24px 80px rgba(0,0,0,.24);
  transform:translateY(-8px) scale(.99);
  transition:transform .2s ease;
}

.search-modal.open .search-dialog { transform:translateY(0) scale(1); }
.search-dialog h2 { margin:0 0 18px; color:var(--second-text-color); font-size:1.25rem; }
.search-dialog form { display:flex; gap:10px; }
.search-input {
  width:100%;
  min-width:0;
  height:50px;
  padding:0 15px;
  border:1px solid var(--border-color);
  border-radius:11px;
  outline:none;
  background:var(--background-color);
  color:var(--first-text-color);
  font:inherit;
}
.search-input:focus { border-color:var(--primary-color); box-shadow:0 0 0 3px color-mix(in srgb,var(--primary-color) 15%,transparent); }
.search-submit {
  width:52px;
  flex:none;
  border:0;
  border-radius:11px;
  background:var(--primary-color);
  color:#fff;
  font-size:1.5rem;
  cursor:pointer;
}
.search-close {
  position:absolute;
  top:14px;
  right:16px;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--third-text-color);
  font-size:1.6rem;
  cursor:pointer;
}
.search-close:hover { background:var(--third-background-color); color:var(--first-text-color); }
.search-hint { margin:14px 0 0; color:var(--third-text-color); font-size:.85rem; }

.navbar-toggle {
  display:none;
  width:40px;
  height:40px;
  flex:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:0;
  border-radius:50%;
  background:transparent;
  cursor:pointer;
}

.navbar-toggle:hover { background:var(--third-background-color); }

.navbar-toggle span {
  width:19px;
  height:2px;
  border-radius:2px;
  background:var(--first-text-color);
  transition:transform .22s ease,opacity .22s ease;
}

.drawer-open .navbar-toggle span:first-child { transform:translateY(7px) rotate(45deg); }
.drawer-open .navbar-toggle span:nth-child(2) { opacity:0; }
.drawer-open .navbar-toggle span:last-child { transform:translateY(-7px) rotate(-45deg); }

.navbar-drawer {
  position:fixed;
  inset:0;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--background-color);
  opacity:0;
  visibility:hidden;
  transform:translateY(-8px);
  transition:opacity .25s ease,visibility .25s ease,transform .25s ease;
}

.navbar-drawer nav { width:min(420px,calc(100% - 48px)); }
.navbar-drawer ul { display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.navbar-drawer li { width:100%; }
.navbar-drawer a {
  display:block;
  width:100%;
  padding:12px 8px;
  border-bottom:1px solid var(--border-color);
  color:var(--first-text-color);
  font-size:1.35rem;
  font-weight:600;
}

.site-header.drawer-open .navbar-drawer {
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.home-banner {
  position:relative;
  z-index:1;
  width:100%;
  height:100vh;
  min-height:560px;
  overflow:hidden;
  background:#202124;
  color:#fff;
}

.home-banner img {
  position:fixed;
  inset:-3%;
  z-index:0;
  width:106%;
  height:106%;
  max-width:none;
  object-fit:cover;
  transform:scale(1.03);
  filter:brightness(.82) blur(0);
  transition:opacity .25s ease,filter .12s linear,transform .12s linear;
  will-change:filter,transform;
}

.home-banner .banner-dark { display:none; }
html.dark .home-banner .banner-light { display:none; }
html.dark .home-banner .banner-dark { display:block; }

.banner-content {
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:90px 24px 80px;
  text-align:center;
  text-shadow:0 3px 18px rgba(0,0,0,.35);
}

.banner-content h1 {
  margin:0;
  font-size:clamp(2.8rem,7vw,5.2rem);
  line-height:1.05;
  letter-spacing:-.055em;
  font-weight:700;
}

.banner-content p {
  margin:18px 0 0;
  font-size:clamp(1.15rem,2.2vw,1.65rem);
  letter-spacing:.02em;
}

.banner-subtitle::after {
  content:"";
  display:inline-block;
  width:2px;
  height:1em;
  margin-left:5px;
  vertical-align:-.12em;
  background:currentColor;
  opacity:1;
  animation:bannerCursor .75s step-end infinite;
}

@keyframes bannerCursor {
  0%, 48% { opacity:1; }
  49%, 100% { opacity:0; }
}
.banner-subtitle.typing-paused::after {
  animation-duration:.65s;
  opacity:1;
}

.banner-controls {
  position:absolute;
  z-index:2;
  right:max(24px,calc((100vw - 1200px) / 2));
  bottom:34px;
  left:max(24px,calc((100vw - 1200px) / 2));
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.banner-scroll {
  width:44px;
  height:44px;
  flex:none;
  border:1px solid rgba(255,255,255,.38);
  border-radius:50%;
  background:rgba(255,255,255,.18);
  color:#fff;
  backdrop-filter:blur(10px);
  cursor:pointer;
  animation:bannerBounce 2s ease-in-out infinite;
}

@keyframes bannerBounce {
  50% { transform:translateY(8px); }
}

.banner-social-links {
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 20px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(220,225,230,.38);
  color:#30343a;
  backdrop-filter:blur(14px);
}
.banner-social-links a { color:inherit; font-size:.95rem; font-weight:600; }
.banner-social-links a:hover { color:var(--primary-color); }

.page-shell {
  max-width:calc(var(--content-width) + var(--sidebar-width) + 32px);
  position:relative;
  z-index:3;
  min-height:70vh;
  margin:0 auto;
  padding:38px 24px 48px;
  display:grid;
  grid-template-columns:minmax(0,var(--content-width)) var(--sidebar-width);
  gap:38px;
  align-items:start;
}

.page-single .page-shell,
.page-search .page-shell,
.page-404 .page-shell { padding-top:108px; }

.page-index .home-banner + .page-shell { padding-top:38px; }
.page-index:not(.has-home-banner) .page-shell { padding-top:108px; }

.content-column { min-width:0; }
.sidebar-column { min-width:0; }

.post-card,
.article-card,
.sidebar-card,
.error-card {
  background:var(--second-background-color);
  border:1px solid var(--border-color);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.post-card {
  position:relative;
  margin:0 0 38px;
  overflow:hidden;
  transition:transform .22s ease,box-shadow .22s ease;
}

.post-card:hover {
  transform:scale(1.015);
  box-shadow:var(--shadow-hover);
}

.post-sticky {
  position:absolute;
  top:12px;
  right:12px;
  z-index:3;
  padding:3px 10px;
  border:1px solid var(--border-color);
  border-radius:999px;
  background:color-mix(in srgb,var(--second-background-color) 82%,transparent);
  backdrop-filter:blur(10px);
  color:var(--third-text-color);
  font-size:.72rem;
}

.post-cover {
  display:block;
  height:150px;
  overflow:hidden;
  border-radius:var(--radius) var(--radius) 0 0;
  background:var(--third-background-color);
}

.post-cover img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease,filter .35s ease;
}
.post-cover img,
.article-content img {
  opacity:0;
  transition:opacity .35s ease,transform .35s ease,filter .35s ease;
}
.post-cover img.loaded,
.article-content img.loaded { opacity:1; }

.post-card:hover .post-cover img { transform:scale(1.025); }

.post-card-body {
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:28px;
}

.post-card:not(:has(.post-cover)) .post-card-body { padding-top:28px; }

.post-card h2,
.article-header h1 {
  margin:0;
  color:var(--second-text-color);
  line-height:1.35;
  letter-spacing:-.025em;
  font-weight:600;
}

.post-card h2 { font-size:1.4rem; }
.post-summary { color:var(--default-text-color); text-align:justify; }

.post-card-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:4px;
  color:var(--third-text-color);
  font-size:.92rem;
}

.post-card-footer a { color:var(--third-text-color); }
.post-card-footer a:hover { color:var(--primary-color); }

.post-meta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  color:var(--third-text-color);
  font-size:.92rem;
  letter-spacing:.02em;
}

.post-meta a { color:var(--third-text-color); }

.article-card { overflow:hidden; }
.article-header { padding:32px 28px 20px; }
.article-header h1 { margin-top:12px; font-size:2.45rem; }
.article-header .post-meta {
  padding-bottom:14px;
  border-bottom:1px solid var(--border-color);
}
.article-header .post-meta span + span::before {
  content:"·";
  margin-right:12px;
  color:var(--third-text-color);
}

.article-content {
  padding:12px 28px 28px;
  color:var(--default-text-color);
  font-size:1.02rem;
  overflow-wrap:anywhere;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color:var(--second-text-color);
  line-height:1.35;
}

.article-content h2 { margin-top:3.2rem; }
.article-content h3 { margin-top:2.4rem; }
.article-content h2,
.article-content h3,
.article-content h4 { scroll-margin-top:88px; }
.article-content p { margin:1.15em 0; }
.article-content a {
  color:var(--primary-color);
  text-decoration:underline;
  text-decoration-color:color-mix(in srgb,var(--primary-color) 45%,transparent);
  text-underline-offset:3px;
}
.article-content blockquote {
  margin:1.4em 0;
  padding:12px 18px;
  border-left:4px solid var(--primary-color);
  border-radius:0 10px 10px 0;
  background:var(--third-background-color);
  color:var(--third-text-color);
}
.article-content blockquote.alert-tip,
.article-content blockquote.alert-info,
.article-content blockquote.alert-warning,
.article-content blockquote.alert-danger,
.article-content blockquote.alert-note {
  position:relative;
  padding:14px 18px 14px 46px;
  border:1px solid var(--border-color);
  border-left-width:4px;
  border-radius:10px;
  background:var(--third-background-color);
}
.article-content blockquote[class*="alert-"]::before {
  position:absolute;
  left:17px;
  top:13px;
  font-weight:800;
}
.article-content blockquote.alert-tip { border-left-color:#16a34a; }
.article-content blockquote.alert-tip::before { content:"✓"; color:#16a34a; }
.article-content blockquote.alert-info,
.article-content blockquote.alert-note { border-left-color:#2563eb; }
.article-content blockquote.alert-info::before,
.article-content blockquote.alert-note::before { content:"i"; color:#2563eb; }
.article-content blockquote.alert-warning { border-left-color:#d97706; }
.article-content blockquote.alert-warning::before { content:"!"; color:#d97706; }
.article-content blockquote.alert-danger { border-left-color:#dc2626; }
.article-content blockquote.alert-danger::before { content:"×"; color:#dc2626; }
.article-content blockquote .alert-title {
  display:block;
  margin-bottom:4px;
  color:var(--second-text-color);
  font-size:.82rem;
  letter-spacing:.06em;
}
.article-content details {
  margin:1.2em 0;
  border:1px solid var(--border-color);
  border-radius:12px;
  background:var(--third-background-color);
  overflow:hidden;
}
.article-content details summary {
  padding:12px 16px;
  color:var(--second-text-color);
  cursor:pointer;
  font-weight:600;
  list-style:none;
}
.article-content details summary::-webkit-details-marker { display:none; }
.article-content details summary::after {
  content:"+";
  float:right;
  color:var(--primary-color);
  font-size:1.1rem;
}
.article-content details[open] summary { border-bottom:1px solid var(--border-color); }
.article-content details[open] summary::after { content:"−"; }
.article-content details > :not(summary) { margin-left:16px; margin-right:16px; }
.article-content kbd {
  display:inline-block;
  min-width:1.6em;
  padding:.05em .45em;
  border:1px solid var(--border-color);
  border-bottom-width:3px;
  border-radius:5px;
  background:var(--second-background-color);
  color:var(--second-text-color);
  font:600 .88em Consolas,"SFMono-Regular",monospace;
  text-align:center;
  box-shadow:0 1px 2px var(--shadow-color);
}
.article-content mark {
  padding:.05em .25em;
  border-radius:4px;
  background:color-mix(in srgb,#facc15 55%,transparent);
  color:inherit;
}
.heading-anchor { position:relative; }
.heading-anchor::before {
  content:"#";
  position:absolute;
  left:-1.1em;
  color:var(--primary-color);
  opacity:0;
  transition:opacity .15s ease;
}
.heading-anchor:hover::before { opacity:.75; }
.heading-permalink {
  position:absolute;
  right:0;
  top:50%;
  width:32px;
  height:32px;
  border:1px solid var(--border-color);
  border-radius:50%;
  background:var(--second-background-color);
  color:var(--third-text-color);
  font:700 .78rem/1 Consolas,"SFMono-Regular",monospace;
  cursor:pointer;
  opacity:0;
  transform:translateY(-50%);
  transition:.18s ease;
}
.heading-anchor:hover .heading-permalink,
.heading-permalink:focus-visible { opacity:1; }
.heading-permalink:hover { color:var(--primary-color); border-color:var(--primary-color); }
.post-cover.image-error {
  background:
    linear-gradient(135deg,var(--third-background-color),var(--second-background-color));
}
.post-cover.image-error img { display:none; }

.reveal-ready .post-card,
.reveal-ready .article-header,
.reveal-ready .article-content,
.reveal-ready .article-toc,
.reveal-ready .post-navigation {
  opacity:0;
  transform:translateY(18px);
  transition:opacity .55s ease,transform .55s ease;
}
.reveal-ready .revealed {
  opacity:1;
  transform:translateY(0);
}

.main-navigation li.active a::after {
  transform:translate(-50%,0);
  opacity:1;
}

.pagination {
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0 8px;
}
.pagination a,
.pagination .current {
  min-width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid var(--border-color);
  border-radius:50%;
  background:var(--second-background-color);
  color:var(--third-text-color);
  font-size:.92rem;
  box-shadow:0 3px 10px var(--shadow-color);
}
.pagination a:hover {
  border-color:var(--primary-color);
  color:var(--primary-color);
  transform:translateY(-2px);
}
.pagination .current {
  border-color:var(--primary-color);
  background:var(--primary-color);
  color:#fff;
  font-weight:700;
}

.article-content figure {
  margin:1.5em 0;
  text-align:center;
}
.article-content figure img { margin:0 auto; }
.article-content figcaption {
  margin-top:.6em;
  color:var(--third-text-color);
  font-size:.86rem;
  text-align:center;
}

.sidebar-card h3 {
  margin:0 0 12px;
  color:var(--second-text-color);
  font-size:1.05rem;
}
.sidebar-card h3::before {
  content:"";
  display:inline-block;
  width:3px;
  height:1em;
  margin-right:8px;
  border-radius:999px;
  background:var(--primary-color);
  vertical-align:-.12em;
}

@media print {
  .site-header,
  .sidebar-column,
  .side-tools,
  .reading-progress,
  .post-navigation,
  #divCommentPost,
  .article-toc,
  .code-copy-button,
  .site-footer { display:none !important; }
  body,
  html { background:#fff !important; color:#222 !important; }
  .page-shell {
    display:block;
    max-width:none;
    padding:0;
  }
  .article-card {
    border:0;
    box-shadow:none;
  }
  .article-content a { color:#222; text-decoration:underline; }
}
.article-content ul,
.article-content ol { padding-left:1.7em; }
.article-content li { padding:.15em 0; }
.article-content code:not(pre code) {
  padding:.15em .4em;
  border:1px solid var(--border-color);
  border-radius:5px;
  background:var(--third-background-color);
  color:var(--primary-color);
  font-family:Consolas,"SFMono-Regular",monospace;
  font-size:.9em;
}
.article-content pre {
  overflow:auto;
  margin:1.4em 0;
  padding:18px 20px;
  border:1px solid var(--border-color);
  border-radius:14px;
  background:#f6f3f1;
  color:#292929;
  line-height:1.65;
  tab-size:2;
  position:relative;
}
.code-copy-button {
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  padding:4px 9px;
  border:1px solid rgba(127,127,127,.18);
  border-radius:7px;
  background:color-mix(in srgb,var(--second-background-color) 82%,transparent);
  color:var(--third-text-color);
  font-size:.78rem;
  line-height:1.5;
  cursor:pointer;
  opacity:0;
  transition:.18s ease;
  backdrop-filter:blur(8px);
}
.article-content pre:hover .code-copy-button,
.code-copy-button:focus-visible,
.code-copy-button.copied { opacity:1; }
.code-copy-button:hover,
.code-copy-button.copied { color:var(--primary-color); }
html.dark .article-content pre {
  background:#191a1d;
  color:#e5e7eb;
}
.article-content img {
  border-radius:14px;
  cursor:zoom-in;
  box-shadow:0 8px 28px var(--shadow-color);
}
.article-content table {
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:10px;
}
.table-scroll {
  width:100%;
  overflow-x:auto;
  margin:1.4em 0;
  border:1px solid var(--border-color);
  border-radius:10px;
}
.table-scroll table {
  margin:0;
  border:0;
  min-width:520px;
  border-radius:0;
}
.article-content th,.article-content td { padding:8px 12px; border:1px solid var(--border-color); }
.article-footer { padding:18px 28px; border-top:1px solid var(--border-color); color:var(--third-text-color); }
.article-footer a {
  display:inline-block;
  margin-left:8px;
  padding:2px 10px;
  border:1px solid var(--border-color);
  border-radius:999px;
  background:var(--third-background-color);
  color:var(--third-text-color);
  font-size:.88rem;
}

.post-navigation {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:0 28px 28px;
}
.post-navigation-item {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:15px 17px;
  border:1px solid var(--border-color);
  border-radius:12px;
  background:var(--third-background-color);
  transition:border-color .18s ease,transform .18s ease;
}
.post-navigation-item:hover { border-color:var(--primary-color); transform:translateY(-2px); }
.post-navigation-item span { color:var(--third-text-color); font-size:.84rem; }
.post-navigation-item strong {
  overflow:hidden;
  color:var(--second-text-color);
  font-size:.95rem;
  font-weight:550;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.post-next { text-align:right; }
.navigation-shortcut-hint {
  grid-column:1/-1;
  color:var(--third-text-color);
  font-size:.78rem;
  text-align:center;
  opacity:.72;
}

.sidebar {
  position:sticky;
  top:92px;
  display:grid;
  gap:16px;
}

.sidebar-card {
  padding:18px;
  box-shadow:none;
  overflow:hidden;
}

.sidebar-card h3 {
  margin:0 0 10px;
  padding-bottom:8px;
  border-bottom:1px solid var(--border-color);
  color:var(--second-text-color);
  font-size:1rem;
}

.sidebar-card ul { margin:0; padding:0; list-style:none; }
.sidebar-card li { padding:5px 0; border-bottom:1px dashed var(--border-color); }
.sidebar-card li:last-child { border-bottom:0; }

.pagination { display:flex; justify-content:center; gap:8px; padding:4px 0 24px; }
.pagination a,.pagination .current {
  min-width:38px;
  height:38px;
  display:inline-grid;
  place-items:center;
  border:1px solid var(--border-color);
  border-radius:9px;
  background:var(--second-background-color);
  box-shadow:0 4px 12px var(--shadow-color);
}
.pagination .current { border-color:var(--primary-color); background:var(--primary-color); color:#fff; }

.site-footer {
  position:relative;
  z-index:3;
  margin-top:20px;
  border-top:1px solid var(--border-color);
  background:var(--second-background-color);
  color:var(--third-text-color);
}
.footer-inner {
  position:relative;
  max-width:calc(var(--content-width) + var(--sidebar-width) + 32px);
  margin:auto;
  min-height:112px;
  padding:20px 24px 18px;
  text-align:center;
  font-size:.88rem;
}
.footer-inner p { margin:2px 0; }
.footer-center { margin:0 auto; line-height:1.7; }
.footer-powered {
  position:absolute;
  left:24px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  font-size:.78rem;
  line-height:1.7;
}
.footer-powered a { color:var(--second-text-color); }
.footer-powered a:hover { color:var(--primary-color); }
.footer-counter {
  position:absolute;
  right:24px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  font-size:.78rem;
  line-height:1.7;
}
.footer-counter strong {
  color:var(--second-text-color);
  font-size:.9rem;
  font-variant-numeric:tabular-nums;
}
.footer-uptime {
  margin-top:4px;
  font-size:.78rem;
  line-height:1.7;
}
.footer-uptime .odometer {
  display:inline-block;
  min-width:.8em;
  color:var(--second-text-color);
  font-variant-numeric:tabular-nums;
}

.reading-progress {
  position:fixed;
  top:0;
  left:0;
  z-index:200;
  width:100%;
  height:2px;
  pointer-events:none;
}
.reading-progress-bar {
  display:block;
  width:0;
  height:100%;
  background:var(--primary-color);
  box-shadow:0 0 8px color-mix(in srgb,var(--primary-color) 45%,transparent);
  transition:width .08s linear;
}

.side-tools {
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:90;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
}
.side-tool {
  width:42px;
  height:42px;
  display:none;
  place-items:center;
  border:1px solid var(--border-color);
  border-radius:50%;
  background:var(--second-background-color);
  color:var(--default-text-color);
  box-shadow:0 6px 18px var(--shadow-color);
  cursor:pointer;
}
.scroll-top { position:relative; }
.scroll-top-arrow { display:block; }
.scroll-progress-percent {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--second-background-color);
  opacity:0;
  font-size:.78rem;
  font-weight:650;
  transition:opacity .15s ease;
}
.scroll-top:hover .scroll-progress-percent { opacity:1; }
.side-tool.toggle-tools,
.side-tool.scroll-top { display:grid; }
.side-tools.expanded .side-tool { display:grid; }
.scroll-top { display:none; }
.scroll-top.visible { display:grid; }

.lightbox {
  position:fixed;
  inset:0;
  z-index:300;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(10,10,12,.88);
  backdrop-filter:blur(12px);
}
.lightbox.open { display:flex; }
.lightbox img { max-width:92vw; max-height:92vh; border-radius:12px; box-shadow:0 20px 70px rgba(0,0,0,.5); }

.article-toc {
  margin:0 28px 28px;
  padding:18px;
  border:1px solid var(--border-color);
  border-radius:14px;
  background:var(--third-background-color);
}
.article-toc h3 { margin:0 0 10px; color:var(--second-text-color); font-size:1rem; }
.article-toc nav { display:flex; flex-direction:column; gap:5px; }
.article-toc a {
  color:var(--third-text-color);
  font-size:.92rem;
  line-height:1.5;
}
.article-toc a.toc-level-3 { padding-left:14px; }
.article-toc a:hover,
.article-toc a.active { color:var(--primary-color); }

#divCommentPost {
  margin:24px 28px 28px;
  padding:22px;
  border:1px solid var(--border-color);
  border-radius:14px;
  background:var(--third-background-color);
}

#divCommentPost .posttop {
  margin:0 0 16px;
  color:var(--second-text-color);
  font-size:1.2rem;
  font-weight:600;
}

#divCommentPost form p { margin:12px 0; }
#divCommentPost form p:has(input.text) {
  display:grid;
  grid-template-columns:minmax(0,1fr) 90px;
  align-items:center;
  gap:12px;
}

#divCommentPost input.text,
#divCommentPost textarea.text {
  width:100%;
  min-width:0;
  padding:10px 12px;
  border:1px solid var(--border-color);
  border-radius:9px;
  outline:none;
  background:var(--second-background-color);
  color:var(--first-text-color);
  font:inherit;
  transition:border-color .18s ease,box-shadow .18s ease;
}

#divCommentPost input.text:focus,
#divCommentPost textarea.text:focus {
  border-color:var(--primary-color);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--primary-color) 14%,transparent);
}

#divCommentPost textarea.text { min-height:130px; resize:vertical; }
#divCommentPost .button {
  padding:9px 22px;
  border:0;
  border-radius:9px;
  background:var(--primary-color);
  color:#fff;
  font:inherit;
  cursor:pointer;
}
#divCommentPost .postbottom { margin:14px 0 0; color:var(--third-text-color); font-size:.9rem; }
.article-card .msg {
  margin:18px 28px;
  padding:16px;
  border:1px solid var(--border-color);
  border-radius:12px;
  background:var(--second-background-color);
  list-style:none;
}
.article-card .msgname { color:var(--second-text-color); }
.article-card .msgname small { color:var(--third-text-color); }
.article-card .msgarticle { padding-top:12px; overflow-wrap:anywhere; }

.page-heading { margin:0 0 20px; color:var(--second-text-color); }
.error-card { padding:64px 24px; text-align:center; }
.error-card h1 { margin:0; color:var(--primary-color); font-size:5rem; line-height:1; }
.error-card { position:relative; overflow:hidden; }
.error-orbit {
  position:absolute;
  width:220px;
  height:220px;
  left:50%;
  top:20px;
  border:1px solid var(--border-color);
  border-radius:50%;
  transform:translateX(-50%);
  opacity:.55;
}
.error-orbit::before,
.error-orbit::after {
  content:"";
  position:absolute;
  border-radius:50%;
  background:var(--primary-color);
}
.error-orbit::before { width:8px; height:8px; left:-4px; top:106px; }
.error-orbit::after { width:5px; height:5px; right:28px; bottom:28px; opacity:.55; }
.empty-state {
  margin-bottom:38px;
  padding:46px 24px;
  border:1px solid var(--border-color);
  border-radius:var(--radius);
  background:var(--second-background-color);
  text-align:center;
  box-shadow:var(--shadow);
}
.empty-state-icon {
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  margin:0 auto 14px;
  border-radius:50%;
  background:var(--third-background-color);
  color:var(--primary-color);
  font-size:2rem;
}
.empty-state h2 { margin:8px 0; color:var(--second-text-color); }
.empty-state p { color:var(--third-text-color); }
.empty-state .button,
.error-card .button {
  display:inline-block;
  margin-top:12px;
  padding:9px 18px;
  border-radius:999px;
  background:var(--primary-color);
  color:#fff;
}

@media (max-width:900px) {
  .page-shell { grid-template-columns:minmax(0,1fr); }
  .sidebar-column { display:none; }
  .main-navigation { display:none; }
  .navbar-toggle { display:flex; }
  .brand { font-size:1.45rem; }
}

@media (max-width:1100px) {
  .page-shell {
    grid-template-columns:minmax(0,1fr);
    max-width:860px;
  }
  .sidebar-column { display:none; }
}

@media (max-width:640px) {
  :root { --navbar-height:60px;   }
  .footer-inner { min-height:auto; padding:24px 16px; }
  .footer-powered,
  .footer-counter {
    position:static;
    transform:none;
    align-items:center;
  }
  .footer-powered { margin-top:12px; }
  .footer-counter { margin-top:8px; }
  .footer-grid { grid-template-columns:minmax(0,1fr); gap:18px; }
  .footer-identity { grid-column:auto; }
  .uptime-values { gap:3px; }
  .footer-uptime strong {
    min-width:38px;
    height:34px;
  }
  .uptime-digit {
    min-width:18px;
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      scroll-behavior:auto !important;
      animation-duration:.01ms !important;
      animation-iteration-count:1 !important;
      transition-duration:.01ms !important;
    }
  }
  .navbar { height:60px; padding:0 16px; }
  .is-fixed .navbar { height:52px; }
  .navbar-search-trigger { margin-left:auto; }
  .home-banner { height:82vh; min-height:520px; }
  .banner-content h1 { font-size:2.7rem; }
  .banner-content p { font-size:1.1rem; }
  .banner-controls { right:16px; bottom:20px; left:16px; }
  .banner-social-links { gap:10px; padding:9px 13px; }
  .banner-social-links a { font-size:.82rem; }
  .page-shell { padding:20px 12px 36px; }
  .page-single .page-shell,
  .page-search .page-shell,
  .page-404 .page-shell,
  .page-index:not(.has-home-banner) .page-shell { padding-top:84px; }
  .post-card { margin-bottom:20px; }
  .post-card-body,.article-header,.article-content,.article-footer { padding:20px; }
  .article-header h1 { font-size:1.75rem; }
  .post-card h2 { font-size:1.25rem; }
  .side-tools { right:12px; bottom:12px; }
  #divCommentPost { margin:18px 12px; padding:16px; }
  #divCommentPost form p:has(input.text) { grid-template-columns:minmax(0,1fr); gap:4px; }
  .article-card .msg { margin:14px 12px; }
  .post-navigation { grid-template-columns:minmax(0,1fr); margin:0 12px 20px; }
  .post-next { text-align:left; }
  .navigation-shortcut-hint { display:none; }
  .side-tool { width:38px; height:38px; }
  .heading-permalink { opacity:.75; right:-8px; }
  .article-toc { margin:0 12px 20px; }
  .article-footer { padding:16px 20px; }
}
