/* 微信公众号风格样式 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #333;
  background-color: #fff;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a1a;
}

h1 {
  font-size: 24px;
  border-bottom: 2px solid #07c160;
  padding-bottom: 10px;
}

h2 {
  font-size: 20px;
  border-left: 4px solid #07c160;
  padding-left: 12px;
}

h3 {
  font-size: 18px;
  padding-left: 12px;
}

h4, h5, h6 {
  font-size: 16px;
}

p {
  margin-bottom: 16px;
  text-align: justify;
}

a {
  color: #576b95;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid #d0d0d0;
  background-color: #f6f8fa;
  color: #666;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 85%;
  padding: 2px 6px;
  background-color: #f6f8fa;
  border-radius: 4px;
  color: #24292e;
}

pre {
  margin: 16px 0;
  padding: 16px;
  background-color: #f6f8fa;
  border-radius: 6px;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background-color: transparent;
  font-size: 14px;
  line-height: 1.45;
}

table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
}

th, td {
  padding: 10px 16px;
  border: 1px solid #eaecef;
  text-align: left;
}

th {
  background-color: #f6f8fa;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #fbfcfc;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
  border-radius: 4px;
}

hr {
  margin: 24px 0;
  border: none;
  border-top: 1px solid #eaecef;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* 代码块高亮颜色 */
.keyword { color: #d73a49; }
.string { color: #032f62; }
.comment { color: #6a737d; }
.number { color: #005cc5; }
.function { color: #6f42c1; }

/* 响应式 */
@media (max-width: 600px) {
  body {
    padding: 16px;
    font-size: 15px;
  }
  
  h1 { font-size: 20px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }
}
