/* ============================================
   亮色模式 - 全局淡灰色背景
   ============================================ */

:root {
  --body-bg-color: #ececec;
  --content-bg-color: #f5f5f5;
}

/* ============================================
   移动端 - 显示文章时间和分类文字
   ============================================ */

@media (max-width: 991px) {
  .post-meta-item-text {
    display: inline !important;
  }

  /* 移动端导航栏中显示头像 */
  .menu-item-mobile-sidebar {
    display: flex !important;
    justify-content: center;
    padding: 20px !important;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
  }

  .mobile-sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .mobile-sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
  }

  .mobile-sidebar-author {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
  }
}

@media (min-width: 992px) {
  .menu-item-mobile-sidebar {
    display: none !important;
  }
}

/* ============================================
   首页文章卡片 - 自定义样式
   ============================================ */

/* 文章卡片容器 - 悬浮效果 */
.main-inner > .post-block {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.main-inner > .post-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

/* 文章标题 */
.posts-expand .post-title {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.4;
}

.posts-expand .post-title-link {
  position: relative;
  transition: color 0.2s;
}

.posts-expand .post-title-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--link-color);
  transition: width 0.3s ease;
}

.posts-expand .post-title-link:hover::after {
  width: 100%;
}

/* 文章元信息 */
.post-meta-container {
  margin-top: 8px;
}

.post-meta-item {
  font-size: 13px;
  color: var(--text-color);
  opacity: 0.75;
}

.post-meta-item-icon {
  margin-right: 2px;
}

/* 摘要样式 */
.post-summary {
  color: var(--text-color);
  line-height: 1.9;
  margin: 14px 0;
  font-size: 16px;
}

/* 阅读全文按钮 */
.post-button {
  margin-top: 20px;
}

.post-button .btn {
  display: inline-block;
  padding: 8px 24px;
  font-size: 14px;
  border-radius: 6px;
  background: #333;
  color: #ddd;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.post-button .btn:hover {
  background: var(--link-hover-color);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* 标签区块 */
.post-tags {
  margin: 12px 0;
  text-align: left;
}

.post-tags-label {
  font-size: 13px;
  color: var(--text-color);
  margin-right: 4px;
}

.post-tags a {
  display: inline-block;
  font-size: 12px;
  margin-right: 6px;
  padding: 2px 10px;
  background: var(--body-bg-color);
  border-radius: 10px;
  transition: all 0.2s;
}

.post-tags a:hover {
  background: var(--link-color);
  color: #fff !important;
}

/* 分割线 */
.post-eof {
  display: none;
}

/* ============================================
   标签云 - 弹性布局
   ============================================ */
.tag-cloud-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.tag-cloud-tags a {
  margin: 0;
}

/* ============================================
   目录高亮 - 蓝色替代橘色
   ============================================ */

.post-toc .active-current {
  color: #3b82f6;
}

.post-toc ul a:hover {
  color: #3b82f6;
}

/* 站点概览/目录切换高亮 */
.sidebar-nav li:hover {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.sidebar-toc-active .sidebar-nav-toc,
.sidebar-overview-active .sidebar-nav-overview {
  border-bottom-color: #3b82f6;
  color: #3b82f6;
}

.sidebar-toc-active .sidebar-nav-toc:hover,
.sidebar-overview-active .sidebar-nav-overview:hover {
  color: #3b82f6;
}

/* ============================================
   首页标签 - 去掉图标
   ============================================ */
.post-tags a::before {
  content: none !important;
}

/* ============================================
   侧边栏统计项 - 标签 数字 格式
   ============================================ */

/* 计数改为行内显示，与标签在同一行 */
.site-state-item-name {
  color: var(--text-color);
}

.site-state-item-count {
  display: inline;
  font-size: 14px;
  font-weight: 600;
  margin-left: 4px;
  color: var(--link-color);
}

.site-state-posts .site-state-item-name::before { content: "📄"; margin-right: 4px; }
.site-state-categories .site-state-item-name::before { content: "📁"; margin-right: 4px; }
.site-state-tags .site-state-item-name::before { content: "🏷️"; margin-right: 4px; }

/* 三个统计项横排时去掉竖线分隔 */
.site-state {
  flex-wrap: nowrap;
  gap: 0;
}

.site-state-item {
  border-left: none !important;
  padding: 0 10px 0 0;
}

.site-state-item + .site-state-item {
  border-left: 1px solid var(--border-color) !important;
  padding-left: 10px;
}

/* 移除计数前的分隔符 */
.site-state-item-count::before {
  content: none;
}

/* ============================================
   关于页面 - 美化样式
   ============================================ */

.about-page .about-intro {
  font-size: 1.15em;
  color: var(--text-color);
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--body-bg-color);
  border-left: 4px solid var(--link-color);
  border-radius: 8px;
  line-height: 1.8;
}

.about-page h2 {
  margin-top: 32px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}

.skill-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  background: var(--btn-default-bg-color);
  color: var(--btn-default-color);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: var(--link-color);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   友链页面 - 美化样式
   ============================================ */

.flinks-block .flinks-header {
  font-size: 1.8em;
  margin-bottom: 20px;
}

.flinks-block .flinks-list {
  background: var(--body-bg-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  transition: box-shadow 0.3s ease;
}

.flinks-block .flinks-list:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.flinks-block .flinks-list-title {
  font-size: 1.1em;
  margin-bottom: 4px;
}

.flinks-block .flinks-list-desc {
  font-size: 0.9em;
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 16px;
}

.flinks-block .flinks-list-items .flinks-list-item {
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.flinks-block .flinks-list-items .flinks-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--link-color);
}

.flinks-block .flinks-page-desc {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--body-bg-color);
  border-radius: 12px;
  line-height: 1.8;
}

.flinks-block .flinks-page-desc h2 {
  font-size: 1.2em;
  margin-bottom: 12px;
}

.flinks-block .flinks-page-desc ul {
  padding-left: 20px;
}

.flinks-block .flinks-page-desc li {
  margin-bottom: 6px;
}
