@charset "utf-8";

/* ===== Markdown 内容样式 ===== */
.post-md {
  width: 100%;
  font-size: 16px;
  letter-spacing: 0;
}

.post-md h1 { font-size: 2rem; margin: 12px 0; padding: 24px 0 12px; color: var(--font-color-1); }
.post-md h2 { font-size: 1.75rem; margin: 12px 0; padding: 20px 0 12px; color: var(--font-color-1); }
.post-md h3 { font-size: 1.5rem; margin: 12px 0; padding: 18px 0 12px; color: var(--font-color-1); }
.post-md h4 { font-size: 1.3rem; margin: 12px 0; padding: 16px 0 12px; color: var(--font-color-1); }
.post-md h5 { font-size: 1.15rem; margin: 12px 0; padding: 14px 0 12px; color: var(--font-color-1); }
.post-md h6 { font-size: 1.1rem; margin: 12px 0; padding: 12px 0 12px; color: var(--font-color-1); }

.post-md a {
  color: var(--font-color-0);
  transition: all 0.65s ease;
}
.post-md a:hover {
  box-shadow: 0 2px 0 0 var(--font-color-0);
  opacity: 1;
}

.post-md strong { font-weight: 700; }
.post-md em { font-style: italic; }

.post-md kbd {
  display: inline-block;
  padding: 2px 8px;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.9em;
}

.post-md ol { list-style: decimal; padding-left: 24px; margin: 12px 0; }
.post-md ul { list-style: disc; padding-left: 24px; margin: 12px 0; }
.post-md ol li, .post-md ul li { margin: 4px 0; }

.post-md img {
  border-radius: 4px;
  padding: 4px;
  border: 1px solid #ebebeb;
  margin: 12px auto;
}

.post-md hr {
  height: 1px;
  background: var(--line-1);
  border: none;
  margin: 24px 0;
}

.post-md p {
  width: 100%;
  margin: 12px 0;
}

.post-md blockquote {
  width: 100%;
  margin: 12px 0;
  padding-left: 12px;
  border-left: 2px solid var(--line-2);
  color: var(--font-color-3);
  word-wrap: break-word;
}

.post-md .video-container {
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}

.post-md iframe {
  width: 100%;
  max-height: 360px;
}

.post-md table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  margin: 12px 0;
}

.post-md th {
  border-bottom: 2px solid var(--line-2);
  padding: 12px;
  font-weight: 600;
}

.post-md td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-1);
}

.post-md tr:nth-child(odd) td { background-color: #fafafa; }
.post-md tr:nth-child(even) td { background-color: #fff; }

.post-md code {
  background: #2b2b2b;
  color: #f8f8f2;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-md pre {
  background: #2b2b2b;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
  line-height: 1.5;
}

.post-md pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.9em;
}

.hljs-ln-numbers {
  opacity: 0.5;
  padding-right: 12px;
  user-select: none;
}
