/* ============================================================
   王随风的博客 - 全站沉浸式磨砂美化 (GitHub 部署修正版)
   ============================================================ */
#web_bg {
  background-image: url("../img/bg.webp") !important;
  background-attachment: fixed !important;
  background-position: center !important;
  background-size: cover !important;
  display: block !important;
}
#page-header,
#footer,
.post-bg,
#post-info {
  background-image: none !important;
  background-color: transparent !important;
}
#page-header:before {
  background: transparent !important;
}
#content-inner,
.layout,
#recent-posts,
.layout_page,
#archive,
#category,
#tag,
#page,
#post {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.recent-post-item,
#post,
#page,
#archive,
#category,
#tag {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px);
  border-radius: 15px !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
  padding: 40px !important;
  transition: all 0.3s ease-in-out;
}
.recent-post-item:hover {
  background: rgba(255,255,255,0.95) !important;
  transform: translateY(-4px);
}
/* --- 增强阅读可读性 --- */
#article-container {
  color: #1a1a1a !important;
  font-size: 17.5px !important;
  line-height: 2 !important;
  font-weight: 450 !important;
}
#article-container h1,
#article-container h2,
#article-container h3,
#article-container h4 {
  color: #000 !important;
  font-weight: 800 !important;
}
/* --- 移动端侧边栏优化：仅保留文章和分类 --- */
#sidebar-menus .site-data a[href="/tags/"] {
  display: none !important;
}
#sidebar-menus .site-data a[href="/archives/"],
#sidebar-menus .site-data a[href="/categories/"] {
  width: 50% !important;
  display: inline-block !important;
}
/* 分类页美化 */
#page .category-lists {
  padding: 20px 0;
}
#page .category-lists ul.category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
#page .category-lists ul.category-list li.category-list-item {
  list-style: none;
  background: rgba(255,255,255,0.7);
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
#page .category-lists ul.category-list li.category-list-item:hover {
  background: #49b1f5;
  transform: translateY(-3px);
}
#page .category-lists ul.category-list li.category-list-item:hover a {
  color: #fff !important;
}
#page .category-lists ul.category-list li.category-list-item a.category-list-link {
  color: #333;
  font-weight: bold;
  text-decoration: none;
}
#page .category-lists ul.category-list li.category-list-item span.category-list-count {
  margin-left: 8px;
  font-size: 0.8rem;
  color: #888;
}
/* --- 关于我：静态紧凑布局 --- */
#article-container {
  text-align: center;
}
.about-main {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 20px auto 0;
  max-width: 900px;
  width: 100%;
}
.author-center {
  flex-shrink: 0;
}
.author-center .avatar-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 15px;
}
.author-center .avatar-wrapper .center-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.author-center .avatar-wrapper .online-status {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  background: #52c41a;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(82,196,26,0.5);
  animation: online-flicker 2s infinite alternate;
}
.author-center .author-quote {
  font-size: 1rem;
  color: #555;
  font-weight: 500;
}
.tag-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 180px;
}
.left-tags {
  align-items: flex-end;
}
.right-tags {
  align-items: flex-start;
}
.tag-static {
  background: rgba(255,255,255,0.7) !important;
  backdrop-filter: blur(10px);
  padding: 10px 20px !important;
  border-radius: 50px !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-weight: 600;
  white-space: nowrap;
  color: #333;
}
.about-contact {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}
.about-contact .contact-pill {
  background: rgba(255,255,255,0.8);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
/* 音乐播放器磨砂透明美化 */
.aplayer.aplayer-fixed {
  background: rgba(255,255,255,0.4) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 0 15px 15px 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
.aplayer .aplayer-info {
  background: transparent !important;
}
/* 代码块调整 */
/* 强制代码块使用等宽字体，解决对齐问题 */
#article-container pre,
#article-container code {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Monaco', monospace !important;
  font-size: 14.5px !important; /* 调整到你觉得舒服的大小 */
  -webkit-font-smoothing: antialiased;
}
/* 优化行号和代码之间的间距 */
.highlight > table {
  width: 100% !important;
}
/* 如果开启了 macStyle，优化顶部横条 */
#article-container .highlight {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* --- 其他微调 --- */
#footer {
  background: transparent !important;
}
#nav {
  background: rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(10px);
}
@-moz-keyframes online-flicker {
  0% {
    opacity: 1;
    box-shadow: 0 0 2px rgba(82,196,26,0.4);
  }
  100% {
    opacity: 0.7;
    box-shadow: 0 0 15px rgba(82,196,26,0.9);
  }
}
@-webkit-keyframes online-flicker {
  0% {
    opacity: 1;
    box-shadow: 0 0 2px rgba(82,196,26,0.4);
  }
  100% {
    opacity: 0.7;
    box-shadow: 0 0 15px rgba(82,196,26,0.9);
  }
}
@-o-keyframes online-flicker {
  0% {
    opacity: 1;
    box-shadow: 0 0 2px rgba(82,196,26,0.4);
  }
  100% {
    opacity: 0.7;
    box-shadow: 0 0 15px rgba(82,196,26,0.9);
  }
}
@keyframes online-flicker {
  0% {
    opacity: 1;
    box-shadow: 0 0 2px rgba(82,196,26,0.4);
  }
  100% {
    opacity: 0.7;
    box-shadow: 0 0 15px rgba(82,196,26,0.9);
  }
}
