/* ---- 自定义外观：克制一点，别盖住正文 ---- */
:root{ --my-accent:#8b7bff; --my-accent-2:#4fc3f7; }

/* 首屏标题渐变 + 轻微发光 */
#page-header #site-title{
  background:linear-gradient(120deg,#ffffff 10%,#c9c2ff 45%,#8fd6ff 80%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  letter-spacing:.06em;
}
#page-header #site-subtitle{ color:#e8e4ff; text-shadow:0 2px 12px rgba(120,100,255,.45); }

/* 文章卡片：悬停浮起 + 柔和边框 */
.recent-post-item{
  transition:transform .28s ease, box-shadow .28s ease;
  border:1px solid rgba(255,255,255,.06);
}
.recent-post-item:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 38px rgba(90,70,200,.22);
}

/* 卡片封面轻微放大（只动 scale，不裁字） */
.recent-post-item .post_cover img{ transition:transform .6s ease; }
.recent-post-item:hover .post_cover img{ transform:scale(1.06); }

/* 侧栏卡片与标签 */
#aside-content .card-widget{ border-radius:14px; border:1px solid rgba(255,255,255,.05); }
.tag_cloud a{ transition:all .2s ease; }
.tag_cloud a:hover{ transform:translateY(-2px); box-shadow:0 4px 12px rgba(120,100,255,.25); }

/* 正文里的表头、行内代码风格统一 */
#article-container table th{ background:rgba(139,123,255,.12); }
#article-container code:not([class]){ background:rgba(139,123,255,.12); border-radius:4px; }

/* 滚动条 */
::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-thumb{ background:rgba(139,123,255,.45); border-radius:6px; }
::-webkit-scrollbar-thumb:hover{ background:rgba(139,123,255,.7); }

/* 粒子画布 */
#my-particles{ position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:.55; }


/* ---- my-codeblock：日志/参数块读起来更清楚 ---- */
figure.highlight, #article-container pre {
  border-radius: 10px;
  border: 1px solid rgba(139,123,255,.22);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  overflow-x: auto;
}
figure.highlight code, #article-container pre code,
figure.highlight .code pre, figure.highlight td {
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.7;
}
figure.highlight .gutter { border-right: 1px solid rgba(255,255,255,.08); }
figure.highlight .gutter pre { color: #5b6478; }
#article-container code:not([class]) {
  font-family: Consolas, monospace;
  padding: 1px 5px;
}


/* ---- my-timeline：首页进展时间线 ---- */
.my-timeline { position: relative; margin: 20px 0 8px; padding-left: 26px; }
.my-timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, rgba(139,123,255,.75), rgba(79,195,247,.12));
  border-radius: 2px;
}
.my-timeline .tl-item { position: relative; margin: 0 0 20px; }
.my-timeline .tl-item:last-child { margin-bottom: 0; }
.my-timeline .tl-dot {
  position: absolute; left: -24px; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: #8b7bff; box-shadow: 0 0 0 4px rgba(139,123,255,.16);
}
.my-timeline .tl-item.done .tl-dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.16); }
.my-timeline .tl-date { font-size: 12px; letter-spacing: .04em; opacity: .62; }
.my-timeline .tl-title { font-weight: 600; margin: 1px 0 2px; }
.my-timeline .tl-desc { font-size: 13.5px; opacity: .78; line-height: 1.7; }
.my-timeline .tl-desc code { font-size: 12px; }


/* ---- 侧栏点赞按钮 ---- */
.like-box { margin: 12px 0 2px; text-align: center; }
.like-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 18px; border: 1px solid rgba(139,123,255,.45); border-radius: 999px;
  background: rgba(139,123,255,.10); color: inherit; font-size: 14px; cursor: pointer;
  transition: transform .16s ease, background .2s ease, border-color .2s ease;
}
.like-btn:hover { background: rgba(139,123,255,.20); border-color: rgba(139,123,255,.75); }
.like-btn:active { transform: scale(.94); }
.like-btn .like-ico { font-size: 15px; line-height: 1; }
.like-btn .like-num { font-variant-numeric: tabular-nums; opacity: .85; }
.like-btn.liked { border-color: rgba(244,114,182,.7); background: rgba(244,114,182,.16); }
.like-btn.pop { animation: like-pop .42s ease; }
@keyframes like-pop {
  0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); }
}
