/* 代码块样式 */
pre, code {
  background-color: #0b0b0b;
  color: #b6a8a8;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 15px;
  overflow-x: auto;
  display: block;
}

/* 全局字体与背景设置 */
body {
  font-family: "Times New Roman", Times, "Georgia", "KaiTi", "楷体", "STKaiti", serif;
  font-size: 18px;         /* 稍微放大一点点 */
  line-height: 1.8;
  margin: 0;
  padding: 2rem 0;
  background: linear-gradient(to bottom, #fffdf5, #f9f3e9);
  color: #222;
}

/* 主内容容器 */
main {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background-color: #fffef8;
  border: 2px solid #ccc;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  border-radius: 8px;
}

/* 大标题居中 */
h1, h2 {
  text-align: center;
  font-size: 2.2rem;       /* 保持原始字号 */
  color: #baf210;
  margin-bottom: 1rem;
  border-bottom: 2px dashed #d8cbb0;
  padding-bottom: 0.5rem;
  font-family: "KaiTi", "楷体", "STKaiti", serif;
}

/* 小标题左对齐 */
h3 {
  font-size: 1.5rem;
  color: #3809f6;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  text-align: left;
  font-family: "KaiTi", "楷体", "STKaiti", serif;
}

/* 段落左对齐 */
p {
  margin: 0.5rem 0;
  text-align: left;
  font-size: 18px;
}

/* 列表左对齐 */
ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
}

li {
  margin-bottom: 0.5rem;
  text-align: left;
  font-size: 18px;
}

/* 图片左对齐并贴边 */
img {
  display: block;
  max-width: 100%;
  margin: 1rem 0;
  border: 1px solid #aaa;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
}

/* 视频左对齐并贴边 */
iframe {
  display: block;
  margin: 1rem 0;
  border: 1px solid #aaa;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

/* 链接样式 */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 页脚居中 */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 4rem;
  border-top: 1px solid #ccc;
  padding-top: 1rem;
}

del, s {
  text-decoration: line-through;
  color: #0c0b0b; /* 可选：让删除线文字变红 */
}

blockquote {
  position: relative;
  margin: 2em 0;
  padding: 1.5em 2em;
  background: #f9f9f9;
  border-left: 6px solid #4a90e2;
  font-style: italic;
  color: #333;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.08);
}

blockquote::before {
  content: "“";
  font-size: 3em;
  color: #0066cc;
  position: absolute;
  left: 10px;
  top: 0;
  line-height: 1;
  font-family: serif;
}

blockquote cite {
  display: block;
  margin-top: 1em;
  font-size: 0.95em;
  color: #888;
  text-align: right;
}

blockquote.tip {
  border-left: 6px solid #4caf50;
  background: #e8f5e9;
  color: #256029;
}

blockquote.bug {
  border-left: 6px solid #ff9800;
  background: #fff3e0;
  color: #7c4a00;
}

blockquote.danger {
  border-left: 6px solid #f44336;
  background: #ffebee;
  color: #b71c1c;
}

blockquote.tip::before {
  content: "💡";
  font-size: 2em;
  color: inherit;
  position: relative;
  left: 2px;
  top: 0;
  line-height: 1;
  font-family: serif;
}

blockquote.bug::before {
  content: "🐞";
  font-size: 2em;
  color: inherit;
  position: relative;
  left: 2px;
  top: 0;
  line-height: 1;
  font-family: serif;
}

blockquote.danger::before {
  content: "⚠️";
  font-size: 2em;
  color: inherit;
  position: relative;
  left: 2px;
  top: 0;
  line-height: 1;
  font-family: serif;
}

mark {
  background-color: #ff5252;
  color: #090909;
  padding: 0 4px;
  border-radius: 2px;
}