/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --container-4xl: 56rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --font-maple: 'Maple Mono NF CN', 'PingFang SC', 'Microsoft YaHei',
    'Noto Sans SC', system-ui, sans-serif;
    --font-code: 'Maple Mono NF CN', 'Fira Code', 'JetBrains Mono', monospace;
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .mx-1 {
    margin-inline: calc(var(--spacing) * 1);
  }
  .mx-auto {
    margin-inline: auto;
  }
  .mt-1 {
    margin-top: calc(var(--spacing) * 1);
  }
  .mt-3 {
    margin-top: calc(var(--spacing) * 3);
  }
  .mt-12 {
    margin-top: calc(var(--spacing) * 12);
  }
  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .mb-8 {
    margin-bottom: calc(var(--spacing) * 8);
  }
  .ml-1 {
    margin-left: calc(var(--spacing) * 1);
  }
  .ml-2 {
    margin-left: calc(var(--spacing) * 2);
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .h-8 {
    height: calc(var(--spacing) * 8);
  }
  .h-14 {
    height: calc(var(--spacing) * 14);
  }
  .h-28 {
    height: calc(var(--spacing) * 28);
  }
  .w-28 {
    width: calc(var(--spacing) * 28);
  }
  .w-64 {
    width: calc(var(--spacing) * 64);
  }
  .w-full {
    width: 100%;
  }
  .max-w-4xl {
    max-width: var(--container-4xl);
  }
  .min-w-0 {
    min-width: calc(var(--spacing) * 0);
  }
  .flex-1 {
    flex: 1;
  }
  .shrink-0 {
    flex-shrink: 0;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .items-center {
    align-items: center;
  }
  .justify-around {
    justify-content: space-around;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-center {
    justify-content: center;
  }
  .gap-1 {
    gap: calc(var(--spacing) * 1);
  }
  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .gap-8 {
    gap: calc(var(--spacing) * 8);
  }
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rounded-full {
    border-radius: calc(infinity * 1px);
  }
  .border-t {
    border-top-style: var(--tw-border-style);
    border-top-width: 1px;
  }
  .object-cover {
    object-fit: cover;
  }
  .p-2 {
    padding: calc(var(--spacing) * 2);
  }
  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }
  .py-8 {
    padding-block: calc(var(--spacing) * 8);
  }
  .pt-2 {
    padding-top: calc(var(--spacing) * 2);
  }
  .pt-6 {
    padding-top: calc(var(--spacing) * 6);
  }
  .text-center {
    text-align: center;
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-3xl {
    font-size: var(--text-3xl);
    line-height: var(--tw-leading, var(--text-3xl--line-height));
  }
  .text-base {
    font-size: var(--text-base);
    line-height: var(--tw-leading, var(--text-base--line-height));
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .font-normal {
    --tw-font-weight: var(--font-weight-normal);
    font-weight: var(--font-weight-normal);
  }
  .break-all {
    word-break: break-all;
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .hover\:text-\[var\(--accent\)\] {
    &:hover {
      @media (hover: hover) {
        color: var(--accent);
      }
    }
  }
  .sm\:grid-cols-2 {
    @media (width >= 40rem) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .lg\:order-first {
    @media (width >= 64rem) {
      order: -9999;
    }
  }
  .lg\:block {
    @media (width >= 64rem) {
      display: block;
    }
  }
  .lg\:w-72 {
    @media (width >= 64rem) {
      width: calc(var(--spacing) * 72);
    }
  }
  .lg\:flex-row {
    @media (width >= 64rem) {
      flex-direction: row;
    }
  }
  .lg\:text-3xl {
    @media (width >= 64rem) {
      font-size: var(--text-3xl);
      line-height: var(--tw-leading, var(--text-3xl--line-height));
    }
  }
}
@font-face {
  font-family: 'Maple Mono NF CN';
  src: url('/fonts/MapleMono-NF-CN-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Maple Mono NF CN';
  src: url('/fonts/MapleMono-NF-CN-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --text: #2c2c2c;
  --text-secondary: #666;
  --muted: #888;
  --border: #eee;
  --card: #ffffff;
  --accent: #49b1f5;
  --accent-hover: #3a9ad9;
  --overlay: rgba(0, 0, 0, 0.5);
  --header-bg: rgba(255, 255, 255, 0.85);
  --toc-border: #e5e7eb;
  --tag-bg: #f0f7ff;
  --tag-text: #49b1f5;
  --scrollbar-track: #f1f1f1;
  --scrollbar-thumb: #c1c1c1;
}
[data-theme='dark'] {
  --bg: #1a1a2e;
  --surface: #16213e;
  --text: #e0e0e0;
  --text-secondary: #b0b0b0;
  --muted: #999;
  --border: #2a2a4a;
  --card: #1e2a3a;
  --accent: #49b1f5;
  --accent-hover: #6ec8ff;
  --overlay: rgba(0, 0, 0, 0.7);
  --header-bg: rgba(26, 26, 46, 0.9);
  --toc-border: #2a2a4a;
  --tag-bg: rgba(73, 177, 245, 0.1);
  --tag-text: #6ec8ff;
  --scrollbar-track: #1a1a2e;
  --scrollbar-thumb: #2a2a4a;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-maple);
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s, color 0.3s;
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-link {
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}
.nav-link:hover {
  color: var(--accent);
  background: var(--tag-bg);
}
.hero {
  position: relative;
  min-height: 15rem;
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
  color: white;
  margin-bottom: 2rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient( 135deg, var(--accent) 0%, #7c3aed 100% );
  z-index: 0;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  will-change: transform;
  transform: translateZ(0);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient( 135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 100% );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 1;
  min-height: 4rem;
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#heroSubtitle {
  font-size: 1.05rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  position: relative;
}
#heroSubtitle::after {
  content: '|';
  position: absolute;
  right: -0.4em;
  top: 0;
  color: rgba(255,255,255,0.8);
  animation: cursor-blink 0.8s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1.5rem 0 1rem;
  position: relative;
}
.timeline-year::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  border: 3px solid var(--bg);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.timeline-item:last-child {
  border-bottom: none;
}
.timeline-item:hover {
  background: var(--surface);
  border-radius: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}
.timeline-date {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  min-width: 6rem;
  padding-top: 0.15rem;
}
.timeline-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  transition: color 0.2s;
}
.timeline-item:hover .timeline-title {
  color: var(--accent);
}
.timeline-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.25s;
}
.post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(73, 177, 245, 0.1);
  transform: translateY(-2px);
}
.post-content {
  font-size: 1rem;
  line-height: 1.9;
}
.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.75em;
  scroll-margin-top: 5rem;
}
.post-content h1 {
  font-size: 1.75rem;
}
.post-content h2 {
  font-size: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.post-content h3 {
  font-size: 1.25rem;
}
.post-content h4 {
  font-size: 1.1rem;
}
.post-content p {
  margin-bottom: 1.25em;
}
.post-content ul, .post-content ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}
.post-content li {
  margin-bottom: 0.35em;
}
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.5em 1em;
  margin: 1.25em 0;
  background: var(--surface);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--text-secondary);
}
.post-content code {
  font-family: var(--font-code);
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}
.post-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.25em 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.post-content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5em auto;
  display: block;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25em 0;
  font-size: 0.9em;
}
.post-content th, .post-content td {
  border: 1px solid var(--border);
  padding: 0.5em 0.75em;
  text-align: left;
}
.post-content th {
  background: var(--surface);
  font-weight: 600;
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}
.toc-wrap {
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}
.toc-wrap nav ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.85rem;
}
.toc-wrap nav ul ul {
  padding-left: 1rem;
}
.toc-wrap nav a {
  display: block;
  padding: 0.25rem 0.5rem;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  transition: all 0.2s;
  border-radius: 0 0.25rem 0.25rem 0;
}
.toc-wrap nav a:hover, .toc-wrap nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--tag-bg);
}
.toc-wrap::-webkit-scrollbar {
  width: 4px;
}
.toc-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.toc-wrap::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 2px;
}
.tag {
  display: inline-block;
  padding: 0.2em 0.6em;
  font-size: 0.8rem;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 0.25rem;
  transition: all 0.2s;
}
.tag:hover {
  background: var(--accent);
  color: white;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
}
.tag-cloud .tag {
  font-size: calc(0.75rem + var(--weight, 0) * 0.15rem);
}
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--overlay);
  backdrop-filter: blur(4px);
}
.search-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}
.search-modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  width: 90%;
  max-width: 640px;
  max-height: 75vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
}
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.1rem;
  font-family: var(--font-maple);
  color: var(--text);
}
.search-input-wrap input::placeholder {
  color: var(--muted);
}
.search-results {
  overflow-y: auto;
  padding: 0.5rem;
  flex: 1;
}
.search-result-item {
  display: block;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.search-result-item:hover {
  background: var(--surface);
}
.search-result-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.search-result-excerpt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}
.search-result-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.search-no-results {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.sidebar-link {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.sidebar-link:hover {
  color: var(--accent);
}
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.2s;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination .active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.post-content pre.chroma {
  counter-reset: line;
  padding-left: 0;
}
.post-content .chroma .line {
  display: block;
  counter-increment: line;
  padding-left: 3.5rem;
  position: relative;
}
.post-content .chroma .line::before {
  content: counter(line);
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  text-align: right;
  padding-right: 0.75rem;
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
  user-select: none;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.post-content .chroma .line:hover {
  background: rgba(255,255,255,0.03);
}
.post-content .chroma .line:hover::before {
  color: rgba(255,255,255,0.5);
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.container-page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  z-index: 999;
  width: 0;
  transition: width 0.05s linear;
}
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--card);
  color: var(--accent);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  box-shadow: 0 2px 12px rgba(73, 177, 245, 0.3);
  transition: all 0.2s;
  z-index: 40;
}
.back-to-top.visible {
  display: flex;
}
.back-to-top:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(73, 177, 245, 0.5);
  transform: translateY(-3px);
}
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.25s;
  font-size: 1.1rem;
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(73, 177, 245, 0.2);
}
.social-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}
.social-icon svg[fill="none"] {
  fill: none;
}
.social-icon:hover svg {
  color: var(--accent);
}
.code-toolbar {
  pointer-events: none;
}
.code-toolbar button {
  pointer-events: auto;
}
.post-content pre.code-expanded {
  background: #1e1e2e !important;
}
.post-content pre.code-expanded code {
  font-size: 1.05rem;
}
.lightbox-overlay {
  animation: lb-fadein 0.2s ease-out;
}
@keyframes lb-fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox-overlay button:hover {
  background: rgba(255,255,255,0.3) !important;
}
.comments-wrap {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.comments-wrap h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}
.giscus-frame {
  width: 100%;
  border: none;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero {
    padding: 3rem 1rem 2rem;
  }
  .timeline {
    padding-left: 1.5rem;
  }
  .timeline-date {
    min-width: 5rem;
    font-size: 0.8rem;
  }
  .site-header .desktop-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-font-weight: initial;
    }
  }
}
