/* 通用样式 */

body {
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: bold;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.25em;
}

h4 {
  font-size: 1em;
}

h5 {
  font-size: 0.875em;
}

h6 {
  font-size: 0.75em;
}

p {
  margin-top: 0.5em;
  margin-bottom: 1em;
}

/* 列表 */

ul,
ol {
  margin-top: 1em;
  margin-bottom: 1em;
  padding-left: 1.5em;
}

ul li,
ol li {
  margin-bottom: 0.5em;
}

ul li::before,
ol li::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.5em;
  border-radius: 50%;
}

ul li::before {
  background-color: #333;
}

ol li::before {
  content: counter(li, decimal);
}

/* 代码块 */

pre {
  background-color: #f6f8fa;
  padding: 0.5em;
  overflow-x: auto;
}

code {
  font-family: monospace;
  font-size: 0.9em;
}

/* 引用 */

blockquote {
  margin-left: 1em;
  margin-right: 1em;
  padding: 0.5em;
  border-left: 0.25em solid #ddd;
}

/* 链接 */

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 表格 */

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #ddd;
  padding: 0.5em;
}

/* 其他 */

hr {
  margin-top: 1em;
  margin-bottom: 1em;
  border: 0;
  border-top: 1px solid #ddd;
}

img {
  max-width: 100%;
}
