/* 自定义样式文件 */
/* 你可以在这里添加自己的样式 */

/* 主题色调整（可选） */
:root {
  --theme-color: #42b983;  /* 主题绿色，可改成你喜欢的颜色 */
  --sidebar-width: 280px;
}

/* 代码块优化 */
pre[data-lang] {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 搜索框美化 */
.search input {
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
}

.search input:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 8px rgba(66, 185, 131, 0.2);
}

/* 侧边栏链接样式 */
.sidebar-nav li a {
  transition: all 0.2s ease;
}

.sidebar-nav li a:hover {
  transform: translateX(5px);
}

/* 提示框样式 */
blockquote {
  border-left: 4px solid var(--theme-color);
  padding: 12px 20px;
  background-color: rgba(66, 185, 131, 0.05);
  border-radius: 4px;
}

/* 表格美化 */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

table th {
  background-color: var(--theme-color);
  color: white;
  padding: 12px;
}

table td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
  :root {
    --sidebar-width: 260px;
  }
}

/* 返回顶部按钮（可选） */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--theme-color);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 1;
}

/* 标题样式优化 */
h1, h2, h3 {
  font-weight: 600;
}

h1 {
  border-bottom: 2px solid var(--theme-color);
  padding-bottom: 10px;
}

/* 链接样式 */
a {
  transition: color 0.2s;
}

/* 强调文本 */
strong {
  color: var(--theme-color);
  font-weight: 600;
}
/* 内容区域居中 + 宽度限制 */
/* .app-nav, .sidebar, .content {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Helvetica Neue", Arial, sans-serif;
} */

/* .markdown-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  line-height: 1.8;
  font-size: 15px;
} */
/*标题层次感*/
.markdown-section h1 {
  font-size: 2rem;
  margin-top: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.markdown-section h2 {
  font-size: 1.4rem;
  margin-top: 1.6rem;
  border-left: 3px solid #42b983;
  padding-left: .6rem;
}

.markdown-section h3 {
  font-size: 1.1rem;
  margin-top: 1.2rem;
}
/*侧边栏*/
.sidebar {
  width: 250px;
}

.sidebar ul {
  padding-left: 0.75rem;
}

.sidebar li a {
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
}

.sidebar li a:hover {
  background: rgba(66,185,131,0.08);
}

.sidebar li.active > a {
  background: #42b983;
  color: #fff !important;
}
/*代码快*/
.markdown-section code {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 2px 4px;
}

.markdown-section pre {
  border-radius: 6px;
  padding: 1rem;
  font-size: 13px;
}
/*头像*/
.app-name-link img {
  border-radius: 12px;
  margin-right: 6px;
}

/* 导航栏标题区域美化 */
.app-name-link {
  display: center;
  align-items: center;
  font-size: 20px !important; /* 标题字号 */
  font-weight: 900 !important; /* 标题粗细 */
  color: #42b983 !important;   /* 标题主色（可改） */
  padding: 14px 0 14px 10px;
}

/* 鼠标悬停效果 */
.app-name-link:hover {
  opacity: .85;
}

/* 全站统一字体 */
body, .sidebar, .markdown-section {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Helvetica Neue", Arial, sans-serif !important;
}
.markdown-section {
  font-size: 17px !important;  /* 正文大小 */
  line-height: 1.8 !important;
  letter-spacing: .2px;
}
