﻿/**
 * 按 Alt/Option + Shift + F 可格式化
 * 如需使用主题色，请使用 var(--md-primary-color) 代替颜色值
 * 如：color: var(--md-primary-color);
 *
 * 召集令：如果你有好看的主题样式，欢迎分享，让更多人能够使用到你的主题。
 * 提交区：https://github.com/doocs/md/discussions/426
 */
/* 顶层容器样式 */
container {
  max-width: 100%;
  font-size: 1.0rem;
  color: black;
  padding: 0 10px;
  line-height: 1.6;
  word-spacing: 0px;
  letter-spacing: 0px;
  word-break: break-word;
  word-wrap: break-word;
  text-align: left;
}
/* 一级标题样式 */
h1 {
  text-align: center;
  margin: 1.5rem 0 1rem;
  padding-bottom: 8px;
  font-size: 1.3rem;
  font-weight: bold;
  font-style: normal;
  display: block;
  color: #023590ff;
  border-bottom: 1px dashed #023590;
}
/* 二级标题样式 */
h2 {
  position: relative; /* 相对定位，为了让伪元素绝对定位 */
  margin: 1.0rem 0 1rem;
  padding-left: 7.3px; /* 增加左内边距，为色块腾出空间 */
  font-weight: bold;
  font-size: 1.2rem;
  color: #023590ff; /* 字体颜色保持不变 */
  display: block;
  border-bottom: 1px dashed #023590;
}

h2::before {
  content: ''; /* 伪元素必须有 content 属性 */
  position: absolute; /* 绝对定位 */
  top: 0;
  left: 0;
  width: 3.7px; /* 色块的宽度 */
  height: 100%; /* 色块的高度与标题相同 */
  background-color: #023590ff; /* 色块颜色 */
}
/* 三级标题样式 */
h3 {
  position: relative; /* 相对定位，为了让伪元素绝对定位 */
  margin: 1.0rem 0 1rem;
  padding-left: 15px; /* 增加左内边距，为色块腾出空间 */
  font-weight: bold;
  font-size: 1.1rem;
  color: #023590ff; /* 字体颜色保持不变 */
  display: block;border-bottom: 1px dashed #023590;
}
h3::before {
  content: '';
  position: absolute;
  top: 50%; /* 垂直居中 */
  left: 0;
  width: 10px; /* 正方形的边长 */
  height: 10px; /* 正方形的边长 */
  background-color: #023590ff;
  transform: translateY(-50%); /* 精确垂直居中 */
}
/* 四级标题样式 */
h4 {
  position: relative; /* 相对定位，为了让伪元素绝对定位 */
  margin: 1.0rem 0 1rem;
  padding-left: 15px; /* 增加左内边距，为色块腾出空间 */
  font-weight: bold;
  font-size: 1.0rem;
  color: #023590ff; /* 字体颜色保持不变 */
  display: block;border-bottom: 1px dashed #023590;
}
h4::before {
  content: '';
  position: absolute;
  top: 50%; /* 垂直居中 */
  left: 0;
  width: 10px; /* 正方形的边长 */
  height: 1px; /* 正方形的边长 */
  background-color: #023590ff;
  transform: translateY(-50%); /* 精确垂直居中 */
}
/* 五级标题样式 */
h5 {
  position: relative; /* 相对定位，为了让伪元素绝对定位 */
  margin: 1.0rem 0 1rem;
  padding-left: 15px; /* 增加左内边距，为色块腾出空间 */
  font-weight: bold;
  font-size: 1.0rem;
  color: #023590ff; /* 字体颜色保持不变 */
}
h5::before {
  content: '';
  position: absolute;
  top: 50%; /* 垂直居中 */
  left: 0;
  width: 10px; /* 正方形的边长 */
  height: 10px; /* 正方形的边长 */
  background-color: #023590ff;
  transform: translateY(-50%); /* 精确垂直居中 */
}
/* 六级标题样式 */
h6 {
  position: relative; /* 相对定位，为了让伪元素绝对定位 */
  margin: 1.0rem 0 1rem;
  padding-left: 15px; /* 增加左内边距，为色块腾出空间 */
  font-weight: bold;
  font-size: 1.0rem;
  color: #023590ff; /* 字体颜色保持不变 */
}
h6::before {
  content: '';
  position: absolute;
  top: 50%; /* 垂直居中 */
  left: 0;
  width: 10px; /* 正方形的边长 */
  height: 1px; /* 正方形的边长 */
  background-color: #023590ff;
  transform: translateY(-50%); /* 精确垂直居中 */
}
/* 图片样式 */
image {
}
/* 引用样式 */
blockquote {
}
/* 引用段落样式 */
blockquote_p {
}
/* 段落样式 */
p {
    /* 通用基础样式，例如行高 */
    line-height: 1.6;
}

/* 中文段落缩进 */
p.zh {
    /* 两个汉字的缩进 */
    text-indent: 2em; 
}

/* 英文段落缩进 */
p.en {
    /* 4个字符的缩进 */
    text-indent: 4ch; 
}
/* 关注特殊段落居中 */
p.fo {
    /* 特殊段落居中 */
    text-align: center; 
}
/* 分割线样式 */
hr {
}
/* 行内代码样式 */
codespan {
}
/* 斜体样式 */
em {
}
/* 粗体样式 */
strong {
}
/* 链接样式 */
link {
}
/* 微信链接样式 */
wx_link {
}
/* 有序列表样式 */
ol {
}
/* 无序列表样式 */
ul {
}
/* 列表项样式 */
listitem {
}
/* 表格样式优化，实现表格可以左右拖动而不强制换行。By Rekyland 250922 */

/* 容器样式：实现左右拖动的关键 */
.table-figure {
    overflow-x: auto;
    width: 100%;
    margin: 0 auto; /* 容器居中 */
}

/* 表格样式 */
.table-figure table {
    /* 强制表格的最小宽度，确保在小屏幕下它会超出容器 */
    min-width: 768px; /* 根据你的表格内容调整这个值 */
    border-collapse: collapse;
    margin: 0 auto; /* 确保表格本身居中 */
}

/* 单元格样式 */
.table-figure th, .table-figure td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    /* 允许文本在单元格内自由换行，这是关键！ */
    white-space: normal;
}

/* 新增：表头样式 */
.table-figure th {
    background-color: #73c1c1;
    color: #333;
}

/* 移除可能导致问题的内联样式 */
.table-figure td[style] {
    word-break: normal !important;
}
/* 表格样式结束 */

/* 代码块样式 */
code {
}
/* 代码块外层样式 */
code_pre {
}
/* 行内公式样式 */
inline_katex {
}
/* 公式块样式 */
block_katex {
}
/* GFM note 样式 */
blockquote_note {
}
/* GFM tip 样式 */
blockquote_tip {
}
/* GFM important 样式 */
blockquote_important {
}
/* GFM warning 样式 */
blockquote_warning {
}
/* GFM caution 样式 */
blockquote_caution {
}
/* GFM 通用标题 */
blockquote_title {
}
/* GFM note 标题 */
blockquote_title_note {
}
/* GFM tip 标题 */
blockquote_title_tip {
}
/* GFM important 标题 */
blockquote_title_important {
}
/* GFM warning 标题 */
blockquote_title_warning {
}
/* GFM caution 标题 */
blockquote_title_caution {
}
/* GFM note 段落样式 */
blockquote_p_note {
}
/* GFM tip 段落样式 */
blockquote_p_tip {
}
/* GFM important 段落样式 */
blockquote_p_important {
}
/* GFM warning 段落样式 */
blockquote_p_warning {
}
/* GFM caution 段落样式 */
blockquote_p_caution {
}