@charset "UTF-8";
html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  position: relative;
  /* 为伪元素提供定位基础 */
}

html::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  /* 禁止背景图重复 */
  background-size: cover;
  /* 背景图覆盖整个页面 */
  background-position: center center;
  /* 背景图居中显示 */
  background-attachment: fixed;
  /* 背景图固定，滚动时不动 */
  opacity: 0.5;
  /* 设置背景图透明度 */
  z-index: -1;
  /* 确保背景图在其他内容之后 */
}

body {
  font-family: "PingHei", "PingFang SC", Helvetica Neue, "Work Sans", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
  font-size: 16px;
  width: 90%;
  /* 使主体宽度适当收缩，以便左右有边距 */
  margin: 0 auto 10px auto;
  /* 保持上下间距，左右自动居中 */
  line-height: 1.5em;
}

p {
  line-height: 1.9em;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.15s linear;
}

a:hover,
a:focus {
  opacity: 0.8;
}

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

/*basic styles ends*/
/*animation starts*/
.animated {
  animation-fill-mode: both;
  animation-duration: 1s;
}

.animated.hinge {
  animation-duration: 1s;
}

@keyframes fadeInDown {
  0% {
    opacity: 0.5;
    transform: translateY(-20px);
    background-color: rgba(255, 255, 255, 0.2);
    /* 透明背景色 */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0);
    /* 保持透明背景 */
  }
}
.fadeInDown {
  animation-name: fadeInDown;
  background-color: rgba(255, 255, 255, 0);
  /* 保持透明背景 */
}

/*animation ends*/
.content {
  height: auto;
  float: right;
  margin-top: 10px;
  right: 5%;
  width: 80%;
  background-color: rgba(255, 255, 255, 0);
  /* 设置背景颜色为白色，透明度为80% */
}

/* 优化手机端显示 */
@media screen and (max-width: 768px) {
  .content {
    float: none;
    /* 移动端取消浮动，避免内容超出屏幕 */
    width: 90%;
    /* 增加宽度以利用更多屏幕空间 */
    margin: 20px auto;
    /* 设置居中显示 */
    right: 0;
    /* 重置右边距 */
  }

  .post {
    margin: 10px;
    /* 在小屏幕上减少外边距 */
    padding: 10px;
    /* 在小屏幕上减少内边距 */
  }

  .post-title h1 {
    font-size: 24px;
    /* 在移动设备上缩小字体 */
  }

  .post-content h3 {
    font-size: 18px;
  }

  .post-content p {
    font-size: 12px;
  }

  .pagination ul {
    display: block;
    /* 改为块级布局 */
    text-align: center;
    /* 居中显示 */
  }

  .pagination li {
    display: inline-block;
    /* 在较小屏幕上仍然保持水平排列 */
    margin: 0 3px;
    /* 缩小间距 */
  }

  .pagination .pre, .pagination .next {
    float: none;
    /* 取消浮动 */
    display: inline-block;
    /* 使上一页和下一页按钮水平排列 */
    margin: 10px 5px;
    /* 增加上下间距 */
  }
}
/* 进一步优化超小屏幕(如手机)的显示 */
@media screen and (max-width: 480px) {
  .content {
    width: 100%;
    /* 在超小屏幕上宽度设置为100% */
    margin: 10px auto;
    /* 进一步减少上方和下方的间距 */
    padding: 0 10px;
    /* 增加左右内边距，避免内容紧贴屏幕 */
  }

  .post {
    margin: 5px;
    padding: 8px;
  }

  .post-title h1 {
    font-size: 20px;
    /* 更小的标题字体 */
  }

  .pagination li {
    margin: 0 2px;
    /* 进一步减少分页按钮间的间距 */
  }

  .pagination a {
    padding: 6px 10px;
    /* 减少点击区域 */
    font-size: 14px;
    /* 缩小字体 */
  }

  .pagination .pre, .pagination .next {
    display: block;
    /* 在超小屏幕上将按钮堆叠显示 */
    width: 100%;
    text-align: center;
    margin: 5px 0;
    /* 上下间距 */
  }
}
.page-top {
  position: fixed;
  right: 0;
  left: 10%;
  z-index: 3;
  height: auto;
  transition: transform 0.2s, background-color 0.3s, opacity 0.3s;
}
.page-top:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.5);
  /* 可以设置透明背景颜色 */
  opacity: 1;
}
.page-top .nav {
  list-style: none;
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  /* 设置元素垂直排列 */
  font-size: 16px;
  font-weight: bold;
  gap: 10px;
  background-color: transparent;
  /* 设置背景为透明 */
  /* 在此也可以为文本设置颜色，使其更清晰可见 */
  color: #000;
}
@media screen and (max-width: 768px) {
  .page-top .nav {
    font-size: 14px;
  }
}
@media screen and (max-width: 400px) {
  .page-top .nav {
    font-size: 12px;
  }
}
.page-top .nav li {
  position: relative;
  display: inline-block;
  padding-right: 0;
}
@media screen and (max-width: 400px) {
  .page-top .nav li {
    padding-right: 0;
  }
}
.page-top .nav a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s, transform 0.3s;
}
.page-top .nav a:hover {
  color: #007BFF;
  background-color: rgba(255, 255, 255, 0.1);
  /* 悬停时添加透明背景 */
  transform: scale(1.5);
}
.page-top .nav a.current {
  border-bottom: 2px solid #007BFF;
  padding-bottom: 5px;
}
.page-top .information {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 12px;
  padding-right: 4px;
}
@media screen and (max-width: 768px) {
  .page-top .information {
    padding-right: 10px;
  }
}
.page-top .information .avatar {
  display: none;
}
@media screen and (min-width: 520px) {
  .page-top .information .avatar {
    display: block;
  }
}
.page-top .information .avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.page-top .information .back_btn {
  padding-top: 7px;
  cursor: pointer;
}
.page-top .information .back_btn a {
  display: inline-block;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}
@media screen and (max-width: 768px) {
  .page-top .information .back_btn a {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* 调整页面整体布局 */
@media screen and (max-width: 768px) {
  .content {
    width: 100%;
    /* 在手机端内容宽度为 100% */
    margin-top: 60px;
    margin-right: 0;
    /* 去掉右边距 */
  }
}
/* 侧边栏样式 */
#sidebar {
  width: 20%;
  background-size: cover;
  height: 100%;
  transition: transform 0.3s ease-in-out;
  top: 0;
  left: 0;
  position: fixed;
  z-index: 4;
}
#sidebar .logo-title {
  text-align: center;
  padding-top: 20px;
}
#sidebar .logo-title .description {
  font-size: 14px;
}
#sidebar .logo-title .logo {
  margin: 0 auto;
  /* 居中对齐 */
  padding: 0;
  /* 内边距设置为0，以使其不影响尺寸 */
  background-color: #fff;
  /* 背景颜色 */
  border-radius: 50%;
  /* 圆形边角 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* 阴影效果 */
  display: flex;
  /* 使用flex布局 */
  align-items: center;
  /* 垂直居中对齐 */
  justify-content: center;
  /* 水平居中对齐 */
  width: 200px;
  /* 设置固定宽度，与图片相同 */
  height: 200px;
  /* 设置固定高度，与图片相同 */
  transition: transform 0.2s;
  /* 增加过渡效果 */
  /* 鼠标悬停效果 */
}
/* logo hover scale removed — keep avatar size fixed */
#sidebar .logo-title .logo img {
  border-radius: 50%;
  /* 圆形边角 */
  width: 100%;
  /* 设置为100%以适应父元素 */
  height: auto;
  /* 自动调整高度以保持比例 */
}
#sidebar .social-links {
  list-style: none;
  padding: 0;
  font-size: 18px;
  text-align: center;
}
#sidebar .social-links li {
  display: inline;
  padding: 0 4px;
  /* 为每个社交图标添加左右内边距 */
  line-height: 0;
  /* 行高为0以消除间距 */
}

.post {
  margin: 20px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0);
  /* 设置背景颜色为白色，透明度为80% */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.post:hover {
  transform: translateY(10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.post:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #453d3d;
  transform: scaleX(0);
  transition: transform 0.3s;
}
.post:hover::after {
  transform: scaleX(1);
}

.post-title h1, .post-title h2, .post-title h3 {
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1;
}

.post-title h1 {
  font-size: 28px;
  letter-spacing: 2px;
}

.post-title h2, .post-title h3 {
  font-size: 20px;
}

.post-title a {
  text-decoration: none;
}

.post-content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
}

.post-footer {
  padding-bottom: 10px;
}

.post-footer .meta {
  font-size: 10px;
}

.post-footer .tags {
  font-size: 12px;
}

/* 使用媒体查询优化手机端布局 */
@media screen and (max-width: 768px) {
  .post {
    margin: 5px;
    /* 在小屏幕上减少外边距 */
    padding: 5px;
    /* 在小屏幕上减少内边距 */
  }

  .post-title h1 {
    font-size: 24px;
    /* 在移动设备上缩小字体 */
  }

  .post-content h3 {
    font-size: 18px;
  }

  .post-footer .meta {
    font-size: 10px;
    /* 更小的字体以适应移动设备 */
  }
}
@media screen and (max-width: 480px) {
  .post {
    margin: 5px;
  }

  .post-title h1 {
    font-size: 20px;
    /* 更小的标题字体 */
  }

  .post-footer .meta {
    font-size: 9px;
  }
}
.pagination {
  margin: 30px auto;
  /* 调整为居中 */
  padding-bottom: 56px;
  text-align: center;
  /* 确保分页元素在较大屏幕上居中显示 */
}
.pagination ul {
  list-style: none;
  padding: 0;
  height: auto;
  /* 移动端适应高度 */
}
.pagination ul li {
  margin: 0 5px;
  /* 增加间距 */
  display: inline-block;
  /* 保证分页按钮水平排列 */
  line-height: 1.5;
  /* 调整行高以改善视觉 */
}
.pagination ul li a {
  text-decoration: none;
  padding: 8px 12px;
  /* 增加点击区域 */
  border: 1px solid #ddd;
  /* 增加边框以增强按钮感 */
  border-radius: 5px;
  /* 圆角按钮 */
  transition: background-color 0.3s ease;
  /* 添加过渡效果 */
}
.pagination ul li a:hover {
  background-color: #f0f0f0;
  /* 悬停时改变背景颜色 */
}
.pagination .pre {
  float: left;
  margin-right: auto;
  /* 向左对齐 */
}
.pagination .next {
  float: right;
  margin-left: auto;
  /* 向右对齐 */
}

/* 优化手机端分页显示 */
@media screen and (max-width: 768px) {
  .pagination ul {
    display: block;
    /* 改为块级布局 */
    text-align: center;
    /* 居中显示 */
  }

  .pagination li {
    display: inline-block;
    /* 在较小屏幕上仍然保持水平排列 */
    margin: 0 3px;
    /* 缩小间距 */
  }

  .pagination .pre, .pagination .next {
    float: none;
    /* 取消浮动 */
    display: inline-block;
    /* 使上一页和下一页按钮水平排列 */
    margin: 10px 5px;
    /* 增加上下间距 */
  }
}
/* 进一步优化超小屏幕(如手机)的显示 */
@media screen and (max-width: 480px) {
  .pagination li {
    margin: 0 2px;
    /* 进一步减少分页按钮间的间距 */
  }

  .pagination a {
    padding: 6px 10px;
    /* 减少点击区域 */
    font-size: 14px;
    /* 缩小字体 */
  }

  .pagination .pre, .pagination .next {
    display: block;
    /* 在超小屏幕上将按钮堆叠显示 */
    width: 100%;
    text-align: center;
    margin: 5px 0;
    /* 上下间距 */
  }
}
.like-reblog-buttons {
  float: right;
}

.like-button, .reblog-button {
  float: right;
  padding-left: 10px;
}

#install-btn {
  position: fixed;
  bottom: 0;
  right: 6px;
}

#disqus_thread {
  margin: 30px;
}

.footer {
  clear: both;
  text-align: center;
  /* 文本居中 */
  font-size: 10px;
  /* 字体大小 */
  margin: 0 auto;
  /* 自动外边距以居中 */
  position: absolute;
  /* 绝对定位 */
  bottom: 20px;
  /* 距离底部20px */
  left: 50%;
  /* 从左边开始位置50% */
  transform: translateX(-50%);
  /* 向左移动自身宽度的50%以实现居中 */
  width: 60%;
  /* 宽度60% */
  padding: 20px 0;
  /* 上下内边距 */
}

/* For archive */
.archive {
  max-width: 100%;
  /* 最大宽度 */
  margin: 0 auto;
  /* 居中显示 */
  padding: 20px;
  /* 增加外边距 */
}

.list-with-title {
  padding: 0;
  /* 去掉内边距 */
  list-style: none;
  /* 去掉默认的列表样式 */
}

/* 隐藏 summary 默认的三角箭头 */
summary::-webkit-details-marker {
  display: none;
}

details summary {
  list-style: none;
}

.date {
  font-size: 0.9em;
  /* 日期字体大小 */
  color: #888;
  /* 日期颜色 */
}

.tag-list-item {
  margin: 15px;
  padding: 15px;
  /* 增加内边距 */
  cursor: pointer;
  /* 鼠标悬停效果 */
  background-color: #f9f9f9;
  /* 背景颜色 */
  border-radius: 5px;
  /* 圆角 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* 阴影效果 */
  transition: background-color 0.3s, transform 0.3s;
  /* 过渡效果 */
}

.tag-list-item:hover {
  background-color: #e9ecef;
  /* 悬停时的背景颜色 */
  transform: scale(1.02);
  /* 悬停时轻微放大 */
}

.sub-list {
  padding: 0;
  /* 去掉内边距 */
  margin: 20px;
  /* 外边距，增加与上方的间距 */
}

.sub-list li {
  padding: 10px 15px;
  /* 增加内边距 */
  border-bottom: 1px solid #ddd;
  /* 分隔线 */
  transition: background-color 0.3s;
  /* 背景颜色过渡效果 */
}

.sub-list li:last-child {
  border-bottom: none;
  /* 最后一项去掉分隔线 */
}

.sub-list li:hover {
  background-color: #f1f1f1;
}

.listing-item {
  padding: 8px 0;
  /* 列表项内边距 */
  border-bottom: 1px solid #ddd;
  /* 列表项分隔线 */
}

.listing-item:last-child {
  border-bottom: none;
  /* 最后一项去掉分隔线 */
}

.listing-title {
  font-size: 2em;
  /* 字体大小 */
  font-weight: bold;
  /* 粗体字 */
  color: #333;
  /* 字体颜色 */
  padding: 15px;
  /* 内边距 */
  margin: 20px 0;
  /* 外边距 */
  background-color: #f9f9f9;
  /* 背景颜色 */
  border-radius: 5px;
  /* 圆角 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* 阴影效果 */
  transition: background-color 0.3s, transform 0.3s;
  /* 过渡效果 */
}

.listing-title:hover {
  background-color: #e1e1e1;
  /* 悬停时背景颜色 */
  transform: translateY(-2px);
  /* 悬停时轻微抬升 */
}

/* share */
.share {
  margin: 0 30px;
  display: inline-flex;
}

.evernote {
  background-color: #3E3E3E;
}
.evernote a {
  color: #fff;
}
.evernote a:hover {
  color: #ED6243;
}

.weibo, .twitter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  /* 使用50%圆形 */
  margin-right: 5px;
}
.weibo a, .twitter a {
  color: #fff;
  padding: 9px;
}
.weibo a:hover, .twitter a:hover {
  /* 使用不同的hover颜色 */
}

.weibo {
  background-color: #ED6243;
}
.weibo a:hover {
  color: #BD4226;
}

.twitter {
  background-color: #59C0FD;
}
.twitter a:hover {
  color: #4B9ECE;
}

/* about */
.about {
  margin: 30px;
}
.about h3 {
  font-size: 22px;
}

/* comments */
.read_more {
  font-size: 14px;
}

.back-button {
  padding-top: 30px;
  max-width: 100px;
  padding-left: 40px;
  float: left;
}

#fb_comments_container {
  margin: 30px;
}

a.btn {
  font-weight: 400;
}

.btn {
  display: inline-block;
  position: relative;
  outline: 0;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 400;
  font-style: normal;
  border-radius: 999em;
}

.btn:hover {
  display: inline-block;
  position: relative;
  outline: 0px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 400;
  font-style: normal;
  border-radius: 999em;
}

[role=back] {
  padding: 0.5em 1.25em;
  line-height: 1.666em;
}

[role=home] {
  padding: 0.5em 1.25em;
  line-height: 1.666em;
}

[role=navigation] {
  padding: 0.5em 1.25em;
  line-height: 1.666em;
}

[role=tags] {
  padding: 6px 12px;
}

.menu {
  float: right;
  padding-top: 30px;
}
.menu .btn-down {
  margin: 0;
}
.menu .btn-down li {
  list-style: none;
  width: 100px;
}
.menu .btn-down li a {
  display: inline-block;
  position: relative;
  padding: 0.5em 1.25em;
  outline: 0;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 400;
  border-radius: 999em;
  /* 圆形边框 */
  margin-top: 5px;
}
.menu .btn-down li a:hover {
  color: #fff;
  background: #3CBD10;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.menu .btn-down div {
  position: absolute;
  visibility: hidden;
  width: 100px;
  float: right;
}

.page_404 {
  text-align: center;
  padding-top: 50px;
}

@media screen and (max-width: 960px) {
  #sidebar {
    width: 100%;
    position: absolute;
    border-right: none;
    z-index: 1;
  }
  #sidebar .logo-title {
    padding-top: 20px;
  }

  .page-top {
    margin-top: -20px;
  }
  .page-top .nav {
    flex-direction: row;
    /* 设置元素垂直排列 */
    gap: 10px;
  }

  .content {
    margin-top: 420px;
    width: 100%;
  }

  .post-content .p {
    font-size: 6px;
  }

  .post-footer {
    font-size: 3px;
  }

  .share {
    display: grid;
  }

  .social-links {
    list-style: none;
    font-size: 14px;
    text-align: center;
  }
  .social-links i {
    margin-right: 3px;
  }
}
/* color styles */
/* light mode */
html.theme--light {
  background-color: #fff;
  /*basic styles ends*/
  /*for archive*/
  /* share */
  /* comments */
}
html.theme--light body {
  color: rgba(0, 0, 0, 0.5);
  background-color: rgba(255, 255, 255, 0);
  /* 设置背景颜色为白色，透明度为80% */
}
html.theme--light a:link,
html.theme--light a:visited {
  color: #424242;
}
html.theme--light a:hover,
html.theme--light a:active {
  color: #4786D6;
}
html.theme--light .page-top {
  background-color: #fff;
  margin: 0 auto;
  /* 自动左右边距使其居中对齐 */
}
html.theme--light .page-top .nav a {
  color: #5A5A5A;
}
html.theme--light .page-top .nav a:hover {
  color: #4786D6;
}
html.theme--light .page-top .nav a.current {
  color: #5A5A5A;
  border-bottom: 1px solid #5A5A5A;
}
html.theme--light .page-top .information #language-switch button {
  color: #5f5f5f;
}
html.theme--light .page-top .information #language-switch button:hover {
  background-color: #f5f5f5;
}
html.theme--light .page-top .information #language-switch #languages {
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  background-color: white;
}
html.theme--light .page-top .information #language-switch #languages a:hover {
  background-color: #f5f5f5;
}
@media (max-width: 768px) {
  html.theme--light .page-top {
    margin: 0 auto;
    /* 保证仍然居中 */
  }
}
@media (max-width: 480px) {
  html.theme--light .page-top {
    margin: 0 auto;
    /* 保证仍然居中 */
  }
}
html.theme--light #sidebar {
  background-color: #fff;
  border-right: 1px solid #f2f2f2;
}
html.theme--light #sidebar .logo-title .description {
  color: #565654;
}
html.theme--light #sidebar .logo-title .title a {
  color: #464646;
}
html.theme--light #sidebar .social-links a {
  color: #565654;
}
html.theme--light #sidebar .social-links a:hover {
  color: #4786D6;
}
html.theme--light .post {
  background-color: rgba(255, 255, 255, 0);
  /* 半透明背景 */
  flex: 1;
  /* 每篇文章在一行中占据相等的空间 */
}
html.theme--light .post .post-title h2 {
  color: #000000;
  font-weight: bolder;
}
html.theme--light .post .post-title h3 {
  color: #464646;
  text-transform: capitalize;
}
html.theme--light .post .post-content {
  color: #111111;
  font-size: 16px;
  line-height: 1.6em;
  /* 增加整体行间距，提升可读性 */
  /* 链接样式 */
  /* 标题 h1 样式 */
  /* 标题 h2 样式 */
  /* 标题 h3 样式 */
  /* 标题 h4 样式 */
  /* 段落 p 样式 */
  /* 引用 blockquote 样式 */
  /* 代码块样式 */
  /* 代码块的基础样式 */
  /* 改善代码内容的显示 */
  /* 单行代码块 */
  /* 无序列表样式 */
  /* 有序列表样式 */
  /* 图片样式 */
  /* 表格样式 */
  /* 水平分隔线样式 */
  /* 强调文本样式 */
}
html.theme--light .post .post-content a:link {
  text-decoration: underline;
  border-bottom: 0;
  text-decoration-thickness: 1.2px;
  text-underline-offset: 2px;
  transition: all 0.3s ease;
  /* 增加平滑过渡效果 */
}
html.theme--light .post .post-content a:visited {
  color: inherit;
  /* 保持访问过的链接颜色一致 */
}
html.theme--light .post .post-content a:hover,
html.theme--light .post .post-content a:focus {
  color: #2F69B3;
  /* 悬停时的颜色效果 */
  opacity: 0.8;
  /* 轻微的透明度变化，增强悬停效果 */
}
html.theme--light .post .post-content h1 {
  color: #000000;
  font-size: 2rem;
  margin-top: 20px;
  padding-left: 20px;
  position: relative;
  display: inline-block;
  font-weight: bold;
  /* 强调标题 */
  border-radius: 4px;
}
html.theme--light .post .post-content h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  width: 5px;
  background-color: #4a4a4a;
}
html.theme--light .post .post-content h2 {
  color: #000000;
  font-size: 1.5rem;
  margin-top: 15px;
  padding-left: 20px;
  position: relative;
  display: inline-block;
  border-radius: 4px;
}
html.theme--light .post .post-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  width: 3px;
  background-color: #4a4a4a;
}
html.theme--light .post .post-content h3 {
  color: #5F5F5F;
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}
html.theme--light .post .post-content h4 {
  color: #5F5F5F;
  margin-bottom: 8px;
  font-weight: 500;
}
html.theme--light .post .post-content p {
  line-height: 1.8em;
  /* 增加段落行高，提升可读性 */
  margin-top: 5px;
  margin-bottom: 15px;
  /* 增加段落之间的间距 */
  font-weight: 400;
}
html.theme--light .post .post-content blockquote {
  border-left: 4px solid #4a4a4a;
  padding: 15px 20px;
  margin: 20px 0;
  background-color: #f9f9f9;
  border-radius: 5px;
  font-style: italic;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
html.theme--light .post .post-content blockquote p {
  margin: 0;
  line-height: 1.6;
}
html.theme--light .post .post-content pre {
  margin: 20px 0;
  padding: 15px;
  background-color: #f4f4f4;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  overflow-x: auto;
  position: relative;
  /* 确保子元素可以相对于pre定位 */
  line-height: 1.5;
  /* 提升可读性 */
}
html.theme--light .post .post-content pre code {
  display: block;
  white-space: pre-wrap;
  /* 代码换行 */
  word-break: break-all;
  /* 长单词或URL地址会自动换行 */
  font-family: "Courier New", Courier, monospace;
  /* 使用等宽字体 */
  color: #333;
  /* 设置代码文本颜色 */
  background: inherit;
  /* 保持背景一致 */
  padding: 0;
  /* 去除额外内边距 */
}
html.theme--light .post .post-content code {
  padding: 2px 4px;
  /* 增加内边距 */
  background-color: #f4f4f4;
  border-radius: 4px;
  font-size: 1rem;
}
html.theme--light .post .post-content ul {
  list-style-type: disc;
  /* 圆点列表 */
  margin-top: 5px;
}
html.theme--light .post .post-content ul li {
  margin-bottom: 5px;
  /* 增加列表项之间的间距 */
}
html.theme--light .post .post-content ol {
  margin-top: 5px;
}
html.theme--light .post .post-content ol li {
  margin-bottom: 5px;
  /* 增加列表项之间的间距 */
}
html.theme--light .post .post-content img {
  max-width: 480px;
  /* 限制为合理阅读宽度 */
  width: 80%;
  height: auto;
  /* 高度自适应 */
  display: block;
  /* 去除图片底部空隙 */
  margin: 16px auto;
  /* 图片上下间距 */
  border-radius: 6px;
  /* 为图片添加圆角 */
}
html.theme--light .post .post-content table {
  width: 100%;
  /* 让表格占满容器宽度 */
  margin: 10px 0;
  /* 表格上下间距 */
  border-collapse: collapse;
  /* 合并表格边框 */
}
html.theme--light .post .post-content table th,
html.theme--light .post .post-content table td {
  padding: 10px;
  /* 内边距 */
  text-align: left;
  /* 左对齐 */
  border: 1px solid #ddd;
  /* 设置表格边框 */
}
html.theme--light .post .post-content table th {
  background-color: #f4f4f4;
  /* 设置表头背景色 */
  font-weight: bold;
  /* 设置表头加粗 */
}
html.theme--light .post .post-content table tr:nth-child(even) {
  background-color: #f9f9f9;
  /* 设置偶数行的背景色 */
}
html.theme--light .post .post-content table tr:hover {
  background-color: #f1f1f1;
  /* 鼠标悬停时改变行背景色 */
}
html.theme--light .post .post-content hr {
  border: 0;
  height: 1px;
  background-color: #ccc;
  /* 灰色分隔线 */
  margin: 20px 0;
  /* 分隔线上下间距 */
}
html.theme--light .post .post-content strong {
  font-weight: bold;
  color: #2F69B3;
  /* 强调文字的颜色 */
}
html.theme--light .post .post-content em {
  font-style: italic;
  color: #8C8C8C;
  /* 强调文字为斜体且使用灰色 */
}
html.theme--light .post .post-footer {
  border-bottom: 1px solid #f2f2f2;
}
html.theme--light .post .post-footer .meta {
  color: #8C8C8C;
  font-size: 15px;
  font-weight: bold;
}
html.theme--light .post .post-footer .meta a {
  color: #8C8C8C;
}
html.theme--light .post .post-footer .meta a:hover {
  color: #4786D6;
}
@media screen and (max-width: 768px) {
  html.theme--light .post .post-footer .meta {
    font-size: 9px;
    /* 调整为较小的字体大小 */
    line-height: 1.3;
    /* 缩小行间距 */
  }
}
html.theme--light .post .post-footer .tags a {
  color: rgba(0, 0, 0, 0.44);
}
html.theme--light .post-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 5px;
}
html.theme--light .post-row {
  display: flex;
  gap: 20px;
}
html.theme--light .pagination {
  border-bottom: 1px solid #f2f2f2;
}
html.theme--light #disqus_thread {
  border-bottom: 1px solid #f2f2f2;
}
html.theme--light .footer {
  color: #A6A6A6;
}
html.theme--light .footer a {
  color: #A6A6A6;
}
html.theme--light .footer a:hover {
  color: #4786D6;
}
html.theme--light .list-with-title .listing-title {
  color: #666666;
}
html.theme--light .list-with-title .listing .listing-post .post-time {
  color: #C5C5C5;
}
html.theme--light .list-with-title .listing .listing-post a {
  color: #8F8F8F;
}
html.theme--light .list-with-title .listing .listing-post a:hover {
  color: #4786D6;
}
html.theme--light .list-with-title .tag-list-item .tagcount {
  color: #000000;
}
html.theme--light .evernote {
  background-color: #3E3E3E;
}
html.theme--light .evernote a {
  color: #fff;
}
html.theme--light .evernote a:hover {
  color: #ED6243;
}
html.theme--light .weibo {
  background-color: #ED6243;
}
html.theme--light .weibo a:hover {
  color: #BD4226;
}
html.theme--light .twitter {
  background-color: #59C0FD;
}
html.theme--light .twitter a:hover {
  color: #4B9ECE;
}
html.theme--light .comment-count {
  color: #666;
}
html.theme--light .tab-community {
  color: #666;
}
html.theme--light a.btn {
  color: #868686;
}
html.theme--light .btn {
  color: rgba(0, 0, 0, 0.44);
  background: rgba(0, 0, 0, 0);
  border: 1px solid rgba(0, 0, 0, 0.15);
}
html.theme--light .btn:hover {
  color: #464545;
  background: rgba(0, 0, 0, 0);
  border: 1px solid #464545;
}
html.theme--light .menu .btn-down li a {
  color: rgba(0, 0, 0, 0.44);
  background: rgba(0, 0, 0, 0);
  border: 1px solid rgba(0, 0, 0, 0.15);
}
html.theme--light .menu .btn-down li a:hover {
  color: #fff;
  background: #3CBD10;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

#vcomments {
  max-width: 94%;
  /* 设置评论区最大宽度 */
  margin: 10px auto;
  /* 减少上方和下方的间距 */
  padding: 10px;
  /* 减少内边距，缩小高度 */
  border-radius: 10px;
  /* 圆角 */
  background-color: #fff;
  /* 背景颜色 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  /* 添加阴影效果 */
  font-family: "Arial", sans-serif;
  /* 使用简洁的字体 */
  transition: transform 0.3s, box-shadow 0.3s;
}

.valine-comment {
  font-size: 14px;
  /* 评论内容字体大小 */
  line-height: 1.5;
  /* 行高 */
  color: #333;
  /* 文字颜色 */
}

.valine-input {
  border: 1px solid #ddd;
  /* 输入框的边框 */
  padding: 5px;
  /* 减少内边距 */
  border-radius: 4px;
  /* 输入框的圆角 */
  width: 50%;
  /* 输入框宽度设置为50% */
  height: 30px;
  /* 设置输入框高度 */
}

.calendar {
  margin-top: 10%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 90%;
  background-color: #fff;
  /* 背景颜色 */
  border-radius: 10px;
  /* 圆角 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* 阴影效果 */
  padding: 20px;
  /* 内边距 */
  transition: box-shadow 0.3s;
  /* 过渡效果 */
}

/* 鼠标悬停效果 */
#category {
  border: 1px solid #ccc;
  /* 添加边框 */
  padding: 10px;
  /* 内边距 */
  margin-top: 1px;
  /* 上边距 */
  background-color: #f9f9f9;
  /* 背景颜色 */
  border-radius: 5px;
  /* 圆角效果 */
}

.calendar:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  /* 增强阴影效果 */
}

.details-2 ::-webkit-details-marker {
  display: none;
}

.details-2 ::-moz-list-bullet {
  font-size: 0;
}

.details-2 summary {
  padding: 5px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  /* 添加边框 */
  border-radius: 4px;
  /* 可选：添加圆角效果 */
}

.details-2 content {
  display: block;
  padding: 5px;
  background-color: #f5f7f7;
}

/* 自定义的三角 */
.details-2 summary::after {
  content: "";
  position: absolute;
  width: 1em;
  height: 1em;
  margin: 0.2em 0 0 0.5ch;
  background: url(./arrow-on.svg) no-repeat;
  background-size: 100% 100%;
  transition: transform 0.2s;
}

.details-2:not([open]) summary::after {
  margin-top: 0.25em;
  transform: rotate(90deg);
}

summary {
  user-select: none;
  outline: 0;
}

summary a {
  color: inherit;
}

/* link */
.links-content {
  margin-top: 1rem;
}

.link-navigation::after {
  content: " ";
  display: flex;
  clear: both;
}

.card {
  margin: 10px 15px 1rem;
  /* 合并margin设置 */
  width: calc(20% - 25px);
  /* 调整width以适应新margin */
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 10px;
  display: flex;
  background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
  transition: transform 0.15s, box-shadow 0.15s;
  /* 使用transition简化效果 */
}

.card:nth-child(odd) {
  float: left;
}

.card:nth-child(even) {
  float: right;
}

.card:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
}

.card a {
  border: none;
  /* 清除边框 */
}

.card .ava {
  width: 3rem;
  height: 3rem;
  margin: 0 1em 0 0;
  /* 合并margin设置 */
  border-radius: 4px;
}

.card .card-header {
  font-style: italic;
  overflow: hidden;
  width: 100%;
}

.card .card-header a {
  font-style: normal;
  color: #2bbc8a;
  font-weight: bold;
  text-decoration: none;
}

.card .card-header a:hover {
  color: #d480aa;
}

.card .card-header .info {
  font-style: normal;
  color: #a3a3a3;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

/*search*/
/* 搜索页面弹窗 */
.search-overlay {
  position: fixed;
  width: 95%;
  height: 80vh;
  display: none;
  /* 默认隐藏 */
  background-color: rgba(255, 255, 255, 0.8);
  /* 半透明背景 */
  backdrop-filter: blur(10px);
  /* 毛玻璃效果 */
  z-index: 1000;
  justify-content: center;
  align-items: flex-start;
  /* 从顶部对齐 */
}

/* 搜索框容器 */
.search-container {
  background-color: white;
  padding: 2rem 4rem 2rem 2rem;
  /* 上 2rem, 右 3rem, 下 2rem, 左 3rem */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 90%;
  /* 增加最大宽度 */
  width: 100%;
  position: absolute;
  /* 使用绝对定位 */
  top: 10%;
  /* 位置 */
  transform: translate(-50%, 0);
  /* 使容器在水平和垂直上居中 */
  left: 50%;
  /* 水平居中 */
}

/* 搜索输入框 */
#search {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

/* 关闭按钮 */
#close-search {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  /* 确保按钮位于最前 */
  color: #333;
  /* 关闭按钮颜色 */
}

.close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  font-size: 10px;
  cursor: pointer;
}

/* 搜索结果样式 */
.search-results {
  height: 500px;
  overflow-y: auto;
  /* 允许上下滚动 */
  list-style-type: none;
  /* 去掉默认列表样式 */
  padding: 0;
  /* 去掉内边距 */
  margin: 0;
  /* 去掉外边距 */
}

/* 搜索结果项 */
.search-results__item {
  height: 80px;
  /* 固定高度 */
  margin-bottom: 1rem;
  /* 项目之间的间距 */
  padding: 0.5rem;
  /* 内边距 */
  border-bottom: 1px solid #ddd;
  /* 底部边框 */
  transition: background-color 0.3s ease;
  /* 背景色变化效果 */
  font-size: 0.85rem;
  /* 缩小字体大小 */
}

/* 悬停效果 */
.search-results__item:hover {
  background-color: #f9f9f9;
  /* 鼠标悬停时改变背景色 */
}

/* 搜索结果标题 */
.search-results__item a {
  font-size: 1rem;
  /* 搜索结果标题的字体大小 */
  color: #333;
  /* 标题颜色 */
  text-decoration: none;
  /* 去掉下划线 */
}

/* 搜索结果摘要 */
.search-results__teaser {
  font-size: 0.8rem;
  /* 搜索结果摘要的字体大小 */
  color: #666;
  /* 摘要颜色 */
}

/* 搜索图标 */
#search-ico {
  font-family: "FabricMDL2Icons";
  cursor: pointer;
  line-height: 1;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .search-container {
    max-width: 90%;
    /* 移动端最大宽度调整 */
  }
}
/* === Theme toggle button (added) === */
.theme-toggle{display:flex;justify-content:center;margin:.5rem 0 1rem 0}
.theme-toggle button{cursor:pointer;background:transparent;border:1px solid #ddd;border-radius:999px;padding:.3rem .9rem;font-size:.85rem;color:inherit;display:inline-flex;align-items:center;gap:.4rem;transition:all .2s}
.theme-toggle button:hover{background:rgba(0,0,0,.05)}

/* === Dark theme overrides (added) === */
html.theme--dark{background-color:#1a1a1a;color:#e6e6e6}
html.theme--dark body{background-color:#1a1a1a;color:#e6e6e6}
html.theme--dark a{color:#9cd0ff}
html.theme--dark .post,html.theme--dark .post-wrapper{background-color:#262626!important;color:#e6e6e6;border-color:#333}
html.theme--dark .post-title h1,html.theme--dark .post-title h3,html.theme--dark .post-content,html.theme--dark .post-content p{color:#e6e6e6!important}
html.theme--dark .meta,html.theme--dark .info{color:#aaa}
html.theme--dark .page-top .nav a{color:#e6e6e6}
html.theme--dark .page-top .nav a.current{color:#9cd0ff}
html.theme--dark #sidebar h1 a,html.theme--dark .description p{color:#e6e6e6}
html.theme--dark .theme-toggle button{border-color:#444;color:#e6e6e6}
html.theme--dark .theme-toggle button:hover{background:rgba(255,255,255,.06)}
html.theme--dark .search-container{background:#262626;color:#e6e6e6}
html.theme--dark #search{background:#1a1a1a;color:#e6e6e6;border-color:#444}
html.theme--dark .search-overlay{background-color:rgba(0,0,0,.6)}

/* === Theme toggle button as social icon (override) === */
.theme-toggle-li button{
  background:transparent;border:none;cursor:pointer;color:inherit;
  font-size:1rem;padding:0;line-height:1;
  display:inline-flex;align-items:center;justify-content:center;
  width:1.6em;height:1.6em;border-radius:50%;
  transition:all .2s;
}
.theme-toggle-li button:hover{background:rgba(0,0,0,.06);transform:scale(1.1)}
html.theme--dark .theme-toggle-li button:hover{background:rgba(255,255,255,.1)}

/* === Dark theme: stronger overrides to actually win against existing rules === */
html.theme--dark,
html.theme--dark body{background-color:#1a1a1a !important;color:#e6e6e6 !important}
html.theme--dark a{color:#9cd0ff}
html.theme--dark .post,
html.theme--dark .post-wrapper,
html.theme--dark .post-content-wrapper{background-color:#262626 !important;color:#e6e6e6 !important;border-color:#333 !important}
html.theme--dark .post-title h1,
html.theme--dark .post-title h3,
html.theme--dark .post-title a,
html.theme--dark .post-content,
html.theme--dark .post-content p,
html.theme--dark .post-content li{color:#e6e6e6 !important}
html.theme--dark .meta,html.theme--dark .info,html.theme--dark .info i{color:#aaa !important}
html.theme--dark .page-top .nav a{color:#e6e6e6 !important}
html.theme--dark .page-top .nav a.current{color:#9cd0ff !important}
html.theme--dark #sidebar h1 a,
html.theme--dark #sidebar .description p,
html.theme--dark #sidebar .social-links a,
html.theme--dark #sidebar .social-links i{color:#e6e6e6 !important}
html.theme--dark .footer,html.theme--dark .footer span{color:#888 !important}
html.theme--dark .search-container{background:#262626 !important;color:#e6e6e6}
html.theme--dark #search{background:#1a1a1a !important;color:#e6e6e6 !important;border-color:#444 !important}
html.theme--dark .search-overlay{background-color:rgba(0,0,0,.6) !important}


/* === Post content image: smaller, centered (added) === */
.post-content img,
.content article img,
.post img{
  display:block;max-width:560px;width:90%;height:auto;
  margin:1.2rem auto;border-radius:8px;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
}
@media (max-width:768px){
  .post-content img,.content article img,.post img{max-width:100%;}
}
html.theme--dark .post-content img,html.theme--dark .content article img,html.theme--dark .post img{box-shadow:0 2px 10px rgba(0,0,0,.5);}

/* ============================
   Pet corner — sleeping kitty
   ============================ */
/* pinned inside sidebar, in the empty area below nav and above footer */
.pet-corner{
  position:absolute;left:50%;transform:translateX(-50%);
  bottom:100px;
  width:140px;height:120px;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  z-index:5;
  pointer-events:none; /* container itself ignored */
}
.pet-corner > *{pointer-events:auto;}
@media (max-width:1024px){.pet-corner{display:none}}

.pet-bubble{
  position:absolute;left:50%;bottom:108px;transform:translateX(-50%) scale(.7);
  background:#fff;color:#333;font-size:12px;line-height:1.4;
  padding:6px 10px;border-radius:12px;white-space:nowrap;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  opacity:0;pointer-events:none;transition:opacity .2s ease, transform .2s ease;
  max-width:160px;
}
.pet-bubble::after{
  content:"";position:absolute;left:50%;bottom:-5px;transform:translateX(-50%) rotate(45deg);
  width:8px;height:8px;background:#fff;box-shadow:2px 2px 4px rgba(0,0,0,.06);
}
.pet-bubble.show{opacity:1;transform:translateX(-50%) scale(1);}
html.theme--dark .pet-bubble{background:#3a3a3a;color:#eee;box-shadow:0 4px 12px rgba(0,0,0,.5)}
html.theme--dark .pet-bubble::after{background:#3a3a3a}

.pet-shadow{
  position:absolute;left:50%;bottom:6px;transform:translateX(-50%);
  width:90px;height:8px;border-radius:50%;
  background:radial-gradient(ellipse,rgba(0,0,0,.18) 0%,rgba(0,0,0,0) 70%);
  animation:pet-shadow 3.6s ease-in-out infinite;
}
@keyframes pet-shadow{
  0%,100%{width:90px;opacity:.7}
  50%{width:78px;opacity:.5}
}

.pet-cat{
  position:relative;width:90px;height:96px;
  background:transparent;border:none;padding:0;cursor:pointer;
  animation:pet-breathe 3.6s ease-in-out infinite;
  transform-origin:center bottom;
  transition:filter .2s;
}
.pet-cat:hover{filter:brightness(1.05) drop-shadow(0 0 4px rgba(244,168,107,.4));}
.pet-cat:focus{outline:none;}
.pet-cat.jump{animation:pet-jump .55s ease-out;}
@keyframes pet-breathe{
  0%,100%{transform:translateY(0) scale(1,1)}
  50%{transform:translateY(-2px) scale(1.02,.98)}
}
@keyframes pet-jump{
  0%{transform:translateY(0) scale(1,1)}
  30%{transform:translateY(-14px) scale(1.05,.95) rotate(-3deg)}
  60%{transform:translateY(-8px) scale(.97,1.03) rotate(2deg)}
  100%{transform:translateY(0) scale(1,1) rotate(0)}
}

/* ears */
.cat-ear{position:absolute;top:6px;width:0;height:0;
  border-left:14px solid transparent;border-right:14px solid transparent;
  border-bottom:20px solid #f4a86b;}
.cat-ear.left{left:8px;transform:rotate(-15deg)}
.cat-ear.right{right:8px;transform:rotate(15deg)}
.cat-ear::after{content:"";position:absolute;left:-8px;top:6px;
  border-left:8px solid transparent;border-right:8px solid transparent;
  border-bottom:11px solid #ffd0a8;}

/* head */
.cat-head{position:absolute;top:14px;left:10px;width:70px;height:60px;
  background:#f4a86b;border-radius:50% 50% 45% 45%;
  box-shadow:inset 0 -6px 0 rgba(0,0,0,.06);}

/* eyes (blink) */
.cat-eye{position:absolute;top:24px;width:8px;height:10px;
  background:#2a2a2a;border-radius:50%;
  animation:pet-blink 4s ease-in-out infinite;}
.cat-eye.left{left:18px}
.cat-eye.right{right:18px}
.cat-eye::after{content:"";position:absolute;top:1px;left:2px;
  width:3px;height:3px;background:#fff;border-radius:50%;}
@keyframes pet-blink{
  0%,46%,52%,96%,100%{transform:scaleY(1)}
  48%,50%{transform:scaleY(.1)}
  98%{transform:scaleY(.1)}
}

/* nose & mouth */
.cat-nose{position:absolute;top:36px;left:50%;transform:translateX(-50%);
  width:6px;height:5px;background:#e26a6a;border-radius:50% 50% 50% 50% / 60% 60% 40% 40%;}
.cat-mouth{position:absolute;top:42px;left:50%;width:14px;height:6px;
  transform:translateX(-50%);
  border-bottom:1.5px solid #2a2a2a;border-radius:0 0 50% 50%;}

/* whiskers */
.cat-whisker{position:absolute;width:14px;height:1px;background:rgba(0,0,0,.35);}
.cat-whisker.w1{top:36px;left:0;transform:rotate(8deg)}
.cat-whisker.w2{top:42px;left:0;transform:rotate(-6deg)}
.cat-whisker.w3{top:36px;right:0;transform:rotate(-8deg)}
.cat-whisker.w4{top:42px;right:0;transform:rotate(6deg)}

/* body */
.cat-body{position:absolute;bottom:0;left:8px;width:74px;height:42px;
  background:#f4a86b;border-radius:42% 42% 28% 28% / 60% 60% 40% 40%;
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.05);}

/* paws */
.cat-paw{position:absolute;bottom:-2px;width:18px;height:10px;
  background:#ffd0a8;border-radius:50% 50% 30% 30% / 60% 60% 40% 40%;}
.cat-paw.left{left:8px}
.cat-paw.right{right:8px}

/* tail (wagging) */
.cat-tail{position:absolute;bottom:8px;right:-10px;width:30px;height:8px;
  background:#f4a86b;border-radius:50% 50% 50% 50% / 60% 60% 40% 40%;
  transform-origin:left center;
  animation:pet-tail 1.8s ease-in-out infinite;}
@keyframes pet-tail{
  0%,100%{transform:rotate(-15deg)}
  50%{transform:rotate(20deg)}
}

/* dark theme tweaks */
html.theme--dark .cat-head,html.theme--dark .cat-body,html.theme--dark .cat-tail{background:#d68850}
html.theme--dark .cat-ear{border-bottom-color:#d68850}
html.theme--dark .cat-paw{background:#e9b988}
html.theme--dark .cat-ear::after{border-bottom-color:#e9b988}
html.theme--dark .pet-shadow{background:radial-gradient(ellipse,rgba(0,0,0,.45) 0%,rgba(0,0,0,0) 70%)}

/* button reset for cat */
button.pet-cat{font:inherit;color:inherit;-webkit-appearance:none;appearance:none;}
button.pet-cat *{pointer-events:none;}

/* Theme toggle on its own row, below social-links */
.theme-toggle-row{
  display:flex;justify-content:center;
  margin:.4rem 0 .6rem;
}
.theme-toggle-row button{
  background:transparent;border:1px solid #ddd;color:inherit;cursor:pointer;
  border-radius:999px;padding:.25rem .8rem;font-size:.8rem;
  display:inline-flex;align-items:center;gap:.4rem;transition:all .2s;
}
.theme-toggle-row button:hover{background:rgba(0,0,0,.05);transform:translateY(-1px)}
html.theme--dark .theme-toggle-row button{border-color:#444;color:#e6e6e6}
html.theme--dark .theme-toggle-row button:hover{background:rgba(255,255,255,.08)}

/* Force post images to stay readable size in any theme */
.post-content img,article.post-content img,article .post-content img{
  max-width:480px !important;width:80% !important;height:auto !important;
  display:block !important;margin:16px auto !important;border-radius:6px;
}
@media (max-width:768px){
  .post-content img,article.post-content img,article .post-content img{
    max-width:100% !important;width:100% !important;
  }
}
