@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  --bg-color: #F4F4F2;
  --text-main: #141414;
  --text-muted: #737373;
  --border-color: #DCDCDA;
  --accent: #FF3B30;
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --noise-opacity: 0.04;
}

[data-theme='dark'] {
  --bg-color: #111111;
  --text-main: #F4F4F2;
  --text-muted: #A3A3A3;
  --border-color: #333333;
  --accent: #FF453A;
  --noise-opacity: 0.02;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0 5%;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  transition: opacity 0.4s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--text-muted);
}

.layout-wrapper {
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeInDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: border-color 0.4s ease;
  position: relative;
  z-index: 100;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  max-height: 40px;
  max-width: 200px;
  object-fit: contain;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.site-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-item {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  cursor: pointer;
}

.nav-item > a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-item > a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--text-main);
  transition: width 0.3s ease, background-color 0.4s ease;
}

.nav-item > a:hover::after,
.nav-item.active > a::after {
  width: 100%;
}

.nav-item.active > a {
  color: var(--text-muted);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 160px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(244, 244, 242, 0.85); /* fallback default theme color */
}

[data-theme='dark'] .dropdown-menu {
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  background-color: rgba(17, 17, 17, 0.85);
}

/* 隐形交互桥梁：防止鼠标从主导航移向下拉菜单时因间隙导致菜单消失 */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  position: relative;
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* 悬停时左侧优雅伸出的短线 */
.dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1.5px;
  background-color: var(--text-main);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu a:hover {
  background-color: transparent;
  color: var(--text-main);
  padding-left: 2rem; /* 文字配合短线右移 */
}

.dropdown-menu a:hover::before {
  width: 12px; /* 短线伸出 */
}

/* Search Icon */
.icon-search {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.theme-toggle:hover .icon-search {
  color: var(--text-main);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.theme-toggle:hover {
  color: var(--text-main);
}

.theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

[data-theme='dark'] .icon-moon { display: none; }
[data-theme='light'] .icon-sun { display: none; }
[data-theme='light'] .icon-moon { display: block; }
[data-theme='dark'] .icon-sun { display: block; }

/* Main Content */
.main-content {
  flex: 1;
  animation: fadeIn 1s ease-out 0.2s both;
  position: relative;
  z-index: 10;
}

.activity-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 3rem;
  background: var(--bg-color);
}

.activity-card {
  --activity-cell: 14px;
  --activity-gap: 4px;
  --activity-label-width: 3.2rem;
}

.activity-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.activity-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

.activity-count {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: none;
}

.activity-chart {
  width: 100%;
  overflow: hidden;
}

.activity-months {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
  gap: var(--activity-gap);
  margin-left: var(--activity-label-width);
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  text-transform: none;
}

.activity-month {
  white-space: nowrap;
  line-height: 1;
  pointer-events: none;
}

.activity-grid-wrap {
  display: grid;
  grid-template-columns: var(--activity-label-width) 1fr;
  align-items: start;
  gap: 0.5rem;
}

.activity-days {
  display: grid;
  grid-template-rows: repeat(7, var(--activity-cell));
  gap: var(--activity-gap);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  text-transform: none;
  padding-top: 0;
}

.activity-days > div {
  height: var(--activity-cell);
  line-height: var(--activity-cell);
}

.activity-grid {
  display: grid;
  grid-template-rows: repeat(7, var(--activity-cell));
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--activity-gap);
  align-items: start;
}

.activity-cell {
  width: 100%;
  height: var(--activity-cell);
  border-radius: 3px;
  background: var(--border-color);
  display: block;
}

.activity-l0 { background: var(--border-color); }
.activity-l1 { background: rgba(34, 197, 94, 0.25); }
.activity-l2 { background: rgba(34, 197, 94, 0.45); }
.activity-l3 { background: rgba(34, 197, 94, 0.7); }
.activity-l4 { background: rgba(34, 197, 94, 0.95); }

[data-theme='dark'] .activity-l1 { background: rgba(34, 197, 94, 0.2); }
[data-theme='dark'] .activity-l2 { background: rgba(34, 197, 94, 0.35); }
[data-theme='dark'] .activity-l3 { background: rgba(34, 197, 94, 0.55); }
[data-theme='dark'] .activity-l4 { background: rgba(34, 197, 94, 0.8); }

.activity-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  text-transform: none;
}

.activity-legend-scale {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.activity-legend .activity-cell {
  width: var(--activity-cell);
  height: var(--activity-cell);
  flex: 0 0 var(--activity-cell);
}

.activity-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: min(420px, calc(100vw - 32px));
  background: var(--bg-color);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}

.activity-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.activity-tooltip-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.activity-tooltip-meta {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.activity-tooltip-list {
  display: grid;
  gap: 0.25rem;
}

.activity-tooltip-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.moments-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 3rem;
  background: var(--bg-color);
}

.moments-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.moments-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

.moments-more {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: none;
}

.moments-mini-list {
  display: grid;
  gap: 0.75rem;
}

.moments-mini-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.moments-mini-item:hover {
  border-color: var(--text-main);
  transform: translateY(-1px);
}

.moments-mini-time {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.moments-mini-text {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.moments-list {
  display: grid;
  gap: 1rem;
}

.moments-page-head {
  margin-bottom: 2rem;
}

.moments-page-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

.moments-page-subtitle {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.moments-page .post-content {
  margin-bottom: 2.25rem;
}

.moment-item {
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.05rem 1.1rem;
  background: var(--bg-color);
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme='dark'] .moment-item {
  background: var(--bg-color);
}

.moment-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.65;
}

.moment-item:hover {
  border-color: rgba(0,0,0,0.18);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

[data-theme='dark'] .moment-item:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.moment-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.moment-time {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.moment-link {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: none;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
}

.moment-link:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.moment-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
}

.moment-content p {
  margin-bottom: 0.9rem;
}

.moment-content h1,
.moment-content h2,
.moment-content h3,
.moment-content h4 {
  font-family: var(--font-heading);
  margin: 1.8rem 0 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.moment-content ul,
.moment-content ol {
  margin: 0.9rem 0;
  padding-left: 1.35rem;
}

.moment-content li {
  margin-bottom: 0.45rem;
}

.moment-content a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.moment-content a:hover {
  border-bottom-color: var(--accent);
}

.moment-content img {
  margin: 0.75rem 0;
  box-shadow: none;
}

.moment-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 0.95rem;
}

.moment-images[data-count='2'],
.moment-images[data-count='4'] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.moment-images img {
  margin: 0;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.moment-images[data-count='2'] img,
.moment-images[data-count='4'] img {
  height: 160px;
}

.moment-images[data-count='1'] img {
  height: auto;
}

.moment-image a {
  display: block;
}

.moments-empty {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.moments-sidebar {
  position: fixed;
  top: 120px;
  left: max(20px, calc(50vw + 400px));
  width: 250px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  z-index: 50;
  display: grid;
  gap: 0.75rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-color);
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1300px) {
  .moments-sidebar {
    display: none;
  }
}

.moments-sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.moments-sidebar-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.moments-sidebar-item:hover {
  border-color: var(--text-main);
}

.moments-sidebar-time {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.moments-sidebar-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.moments-sidebar-more {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: none;
}

.page-title {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Breadcrumb */
.breadcrumb-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb-title a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.breadcrumb-title a:hover {
  color: var(--text-main);
}

.breadcrumb-title .meta-divider {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--border-color);
  margin: 0 0.2rem;
}

.breadcrumb-title .text-muted {
  color: var(--text-muted);
}

.breadcrumb-title .current-page {
  color: var(--text-main);
}

/* Post List */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.post-item {
  display: block;
  position: relative;
}

.post-item::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top;
}

.post-item:hover::before {
  transform: scaleY(1);
}

.post-sort {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.post-sort a {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
}

.post-sort a.active {
  background-color: var(--text-main);
  border-color: var(--text-main);
  color: var(--bg-color);
}

.post-meta {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  transition: color 0.4s ease;
}

.meta-divider {
  margin: 0 0.6rem;
  color: var(--border-color);
  transition: color 0.4s ease;
}

.meta-category {
  color: var(--accent);
  transition: color 0.2s;
}

.meta-category:hover {
  color: var(--text-main);
}

.post-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 95%;
  transition: color 0.4s ease;
}

.post-tags {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  padding: 0.2rem 0.6rem;
  background-color: rgba(128,128,128,0.1);
  border-radius: 4px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tag-link:hover {
  background-color: var(--text-main);
  color: var(--bg-color);
}

/* Single Post */
.post-header {
  margin-bottom: 4rem;
}

.post-header .post-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
  transition: color 0.4s ease;
  font-weight: 400;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
  font-family: var(--font-heading);
  margin: 2.5rem 0 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text-main);
}

.post-content h1 { font-size: 2.2rem; }
.post-content h2 { font-size: 1.8rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; margin-top: 3rem; }
.post-content h3 { font-size: 1.4rem; }
.post-content h4 { font-size: 1.2rem; }

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content li > p {
  margin-bottom: 0.5rem;
}

.post-content a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.post-content a:hover {
  border-bottom-color: var(--accent);
}

.post-content img {
  max-width: 100%;
  border-radius: 4px;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

[data-theme='dark'] .post-content img {
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  opacity: 0.9; /* Slight dimming for dark mode comfort */
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: color 0.4s ease;
}

.post-content pre {
  background: #111;
  color: #f1f1f1;
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.95rem;
  margin: 2rem 0;
}

[data-theme='dark'] .post-content pre {
  background: #000;
  border: 1px solid var(--border-color);
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--border-color);
  transition: border-color 0.4s ease;
}

/* Comments */
.post-comments {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
  transition: border-color 0.4s ease;
}

halo-comment {
  width: 100%;
  display: block;
}

/* Pagination */
.pagination {
  margin-top: 5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.pagination a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 40px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: var(--text-main);
  color: var(--bg-color);
  border-color: var(--text-main);
}

/* Footer Links & ICP */
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-icp {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer {
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: border-color 0.4s ease, color 0.4s ease;
}

.site-footer .footer-links {
  width: 100%;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* About Me Profile */
.about-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.4s ease;
}

.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.about-info h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
}

.about-occupation {
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.about-company {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.about-description {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.about-links {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background-color: rgba(128,128,128,0.05);
}

.about-links a:hover {
  color: var(--text-main);
  background-color: rgba(128,128,128,0.15);
}

@media (max-width: 768px) {
  .about-profile {
    flex-direction: column;
    text-align: center;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .site-header { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .header-right { width: 100%; justify-content: space-between; }
  .post-header .post-title { font-size: 2.5rem; }
  .breadcrumb-title { font-size: 1.5rem; }
  .breadcrumb-title .meta-divider { font-size: 1.2rem; }
  .post-title { font-size: 1.8rem; }
  .site-nav { gap: 1rem; }
}

/* TOC Component */
.toc-wrapper {
  position: fixed;
  top: 120px;
  left: max(20px, calc(50vw + 400px)); /* Align right of the content. */
  width: 250px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 50;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-color);
}
.toc-wrapper.has-content {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 1300px) {
  .toc-wrapper {
    display: none; /* Hide TOC on smaller screens */
  }
}
.toc-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.toc-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.toc-list .toc-list {
  padding-left: 1rem;
  margin-top: 0.25rem;
}
.toc-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
  border-bottom: none !important;
  line-height: 1.5;
}
.toc-link::before {
  display: none !important;
}
.toc-link:hover {
  color: var(--text-main);
}
.is-active-link {
  color: var(--accent) !important;
  font-weight: 600;
}
