/* 文章访问次数样式 */
.article-page-pv {
  font-size: 14px;
  color: var(--red-1);
  background: var(--red-5);
  border-radius: 8px;
  padding: 10px 20px;
  margin: 0 12px 16px 0;
  box-shadow: var(--shadow-meta);
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-page-pv .icon-eye {
  font-size: 14px;
}

/* ========== 排版优化 ========== */

/* 文章正文：行高 */
body .article-entry {
  font-size: 16px !important;
  line-height: 2 !important;
}

body .article-entry p,
body .article-entry table {
  line-height: 2 !important;
  margin: 1.2em 0 !important;
}

body .article-entry h1 {
  margin: 1.8em 0 1em !important;
  font-size: 1.6em !important;
}

body .article-entry h2 {
  margin: 2em 0 1em !important;
  font-size: 1.4em !important;
  padding-bottom: 0.3em !important;
  border-bottom: 1px solid var(--color-border) !important;
}

body .article-entry h3 {
  margin: 1.6em 0 0.8em !important;
  font-size: 1.2em !important;
}

body .article-entry h4 {
  margin: 1.4em 0 0.6em !important;
}

body .article-entry ul,
body .article-entry ol {
  margin: 1em 0 !important;
  padding-left: 2em !important;
}

body .article-entry li {
  margin: 0.5em 0 !important;
  line-height: 1.9 !important;
}

body .article-entry blockquote {
  margin: 1.5em 0 !important;
  padding: 16px 20px !important;
}

/* 代码块上下间距 */
body .article-entry .code-container,
body .article-entry pre {
  margin: 1.5em 0 !important;
}

/* 表格间距 */
body .article-entry table {
  margin: 1.5em 0 !important;
}

body .article-entry th,
body .article-entry td {
  padding: 10px 16px !important;
}

/* 图片上下间距 */
body .article-entry img {
  margin: 1.5em auto !important;
}

/* ========== 左侧播放器 ========== */
#container {
  position: relative;
}
#left-player-wrap {
  position: absolute;
  left: 20px;
  top: 535px;
  z-index: 100;
  width: 280px;
}
#aplayer.sidebar-player {
  width: 280px;
  cursor: grab;
}
#aplayer.sidebar-player:active {
  cursor: grabbing;
}
/* 强制显示播放列表和按钮 */
#aplayer.sidebar-player .aplayer-list {
  display: block !important;
  max-height: 500px !important;
  height: auto !important;
  overflow-y: auto !important;
}
#aplayer.sidebar-player .aplayer-list[style] {
  max-height: 500px !important;
  height: auto !important;
}
#left-player-wrap {
  overflow: visible !important;
}
#aplayer.sidebar-player .aplayer-icon-order,
#aplayer.sidebar-player .aplayer-icon-loop {
  display: inline-block !important;
}
.aplayer-prev-btn,
.aplayer-next-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  color: var(--color-link);
  opacity: 0.7;
  line-height: 24px;
}
.aplayer-prev-btn:hover,
.aplayer-next-btn:hover {
  opacity: 1;
}
#aplayer.sidebar-player .aplayer-controller {
  align-items: center !important;
  margin-top: -10px;
}
body #aplayer.sidebar-player .aplayer-controller .aplayer-time {
  top: auto !important;
  bottom: auto !important;
  position: relative !important;
  align-self: center !important;
}

/* 整体布局右移，给左侧播放器腾空间 */
@media (min-width: 1200px) {
  #content.sidebar-right {
    padding-left: 320px;
  }
}

@media (max-width: 1199px) {
  #left-player-wrap {
    position: static;
    width: 100%;
    padding: 10px 20px;
  }
}

/* ========== 首页文章卡片 ========== */

.post-info {
  padding: 24px !important;
}

.post-title {
  padding: 16px 0 !important;
  font-size: 22px !important;
}

.post-article {
  line-height: 1.8 !important;
  font-size: 15px !important;
}

.post-meta span {
  font-size: 13px !important;
}
