/* 顶部信息栏布局：替代原左侧固定信息栏；信息栏随页面滚动。
   原左侧栏、移动端导航、滑出面板保留在 DOM 中（主题 JS 依赖），这里统一隐藏。 */
.left-col, #mobile-nav, .tools-col, .mobile-mask, .js-mobile-btnctn { display: none !important; }
.mid-col, .mid-col.show, .mid-col.hide { left: 0 !important; animation: none !important; }

.body-wrap { max-width: 960px; margin-left: auto; margin-right: auto; }

/* 与文章卡片同宽（文章区最大 960px，卡片左右各留 30px） */
#top-header {
  background: #fff; text-align: center; padding-bottom: 18px; border: 1px solid #ddd; border-top: 0;
  width: calc(100% - 60px); max-width: 900px; box-sizing: border-box; margin: 0 auto;
}

/* 页脚：版权信息靠左，访问统计在页面正中 */
#footer .outer { position: absolute; left: 0; top: 0; }
#footer .footer-stats { text-align: center; padding: 0 0 10px; }
#top-header .top-header-band { height: 110px; }
#top-header .top-header-inner { max-width: 960px; margin: 0 auto; padding: 0 16px; }
#top-header .top-header-avatar {
  display: inline-block; width: 110px; height: 110px; margin-top: -58px;
  border: 5px solid #fff; border-radius: 50%; overflow: hidden; background: #88acdb;
  transition: transform .3s ease;
}
#top-header .top-header-avatar:hover { transform: rotate(8deg); }
#top-header .top-header-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
#top-header .top-header-author { margin: 10px 0 0; font-size: 30px; font-weight: 400; font-family: Roboto, serif; line-height: 1.3; }
#top-header .top-header-author a { color: #696969; }
#top-header .top-header-subtitle { margin: 6px 0 0; color: #999; font-size: 14px; line-height: 22px; }
#top-header .top-header-menu { margin: 16px 0 12px; line-height: 30px; }
#top-header .top-header-menu a { display: inline-block; margin: 0 10px; color: #696969; font-size: 15px; transition: color .2s; }
#top-header .top-header-menu a:hover { color: #B0A0AA; }
.top-header-social { display: flex; flex-wrap: wrap; justify-content: center; }
.top-header-social a { margin: 0 8px !important; }
.top-header-social a{border-radius:50%;display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;margin:0 8px 15px;transition:.3s;text-align:center;color:#fff;opacity:.7;width:28px;height:28px;line-height:26px}
.top-header-social a.weibo{background:#aaf;border:1px solid #aaf}
.top-header-social a.segmentfault{background:#009a61;border:1px solid #009a61}
.top-header-social a.rss{background:#ef7522;border:1px solid #ef7522}
.top-header-social a.github{background:#afb6ca;border:1px solid #afb6ca}
.top-header-social a.facebook{background:#3b5998;border:1px solid #3b5998}
.top-header-social a.google{background:#c83d20;border:1px solid #c83d20}
.top-header-social a.twitter{background:#55cff8;border:1px solid #55cff8}
.top-header-social a.linkedin{background:#005a87;border:1px solid #005a87}
.top-header-social a.acfun{background:#fd4c5d;border:1px solid #fd4c5d}
.top-header-social a.bilibili{background:#e15280;border:1px solid #e15280}
.top-header-social a.zhihu{background:#0078d8;border:1px solid #0078d8}
.top-header-social a.douban{background:#06c611;border:1px solid #06c611}
.top-header-social a.mail{background:#005a87;border:1px solid #005a87}
.top-header-social a.jianshu{background:#ff5722;border:1px solid #ff5722}
.top-header-social a.weixin{background:#4caf50;border:1px solid #4caf50}
.top-header-social a.qq{background:#34baad;border:1px solid #34baad}
.top-header-social a.csdn{background:#c71d23;border:1px solid #c71d23}
.top-header-social a.gitee{background:#c71d23;border:1px solid #c71d23}
.top-header-social a.psn{background:#086ef6;border:1px solid #086ef6}
.top-header-social a,.top-header-social a[class*=""],.top-header-social a[class^=""]{background:#c71d23;border:1px solid #c71d23}

@media screen and (max-width: 800px) {
  #top-header { width: 100%; border-left: 0; border-right: 0; }
  #footer .outer { position: static; }
  #top-header .top-header-band { height: 80px; }
  #top-header .top-header-avatar { width: 88px; height: 88px; margin-top: -46px; }
  #top-header .top-header-author { font-size: 24px; }
  #top-header .top-header-menu a { margin: 0 7px; font-size: 14px; }
}

/* 所有文章页：标题搜索框 */
.archive-filter { padding: 24px 30px 0; }
.archive-filter input {
  width: 100%; box-sizing: border-box; padding: 10px 14px; font-size: 15px;
  border: 1px solid #ddd; border-radius: 4px; outline: none; background: #fff; color: #555; font-family: inherit;
}
.archive-filter input:focus { border-color: #a0a0a0; }
.archive-search-empty { padding: 20px 30px; color: #999; display: none; }

/* 友链页 */
.friends-list { list-style: none !important; margin: 1.6em 0 !important; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.article-entry ul.friends-list li:before { display: none; }
.friends-list li { margin: 0; }
.friends-list a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e5e5e5; border-radius: 6px; color: #555; transition: border-color .2s, background .2s; }
.friends-list a:hover { border-color: #b0a0aa; background: #faf8f9; }
.friends-list img { width: 28px; height: 28px; border-radius: 50%; }
.friends-list .friends-desc { display: block; color: #999; font-size: 12px; line-height: 1.5; }

@media screen and (max-width: 800px) {
  .archive-filter { padding: 16px 10px 0; }
}
