body { background-color: #f9fafb; }

.dark body { background-color: #0b1220; }

.entry-content {
  line-height: 1.75;
  font-size: 1rem;
  color: #1a202c;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-weight: 700;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111827;
}

.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.125rem; }
.entry-content h5 { font-size: 1rem; }
.entry-content h6 { font-size: 0.875rem; }

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.entry-content ul li {
  list-style-type: disc;
}

.entry-content ol li {
  list-style-type: decimal;
}

.entry-content a {
  color: #2563eb;
  text-decoration: underline;
}
.entry-content a:hover {
  color: #1d4ed8;
}

.entry-content blockquote {
  border-left: 4px solid #d1d5db;
  padding-left: 1rem;
  color: #4b5563;
  font-style: italic;
  margin: 1.5rem 0;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.375rem;
}

.entry-content code {
  background-color: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-family: monospace;
}

.entry-content pre {
  background-color: #f9fafb;
  padding: 1rem;
  overflow: auto;
  border-radius: 0.375rem;
  margin: 1.25rem 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.entry-content th,
.entry-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.entry-content hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* 🌙 暗色模式支持 */
.dark .entry-content {
  color: #e5e7eb;
}

.dark .entry-content h1,
.dark .entry-content h2,
.dark .entry-content h3,
.dark .entry-content h4,
.dark .entry-content h5,
.dark .entry-content h6 {
  color: #f3f4f6;
}

.dark .entry-content a {
  color: #93c5fd;
}
.dark .entry-content a:hover {
  color: #60a5fa;
}

.dark .entry-content blockquote {
  border-color: #374151;
  color: #9ca3af;
}

.dark .entry-content code {
  background-color: #374151;
  color: #f9fafb;
}

.dark .entry-content pre {
  background-color: #1f2937;
  color: #e5e7eb;
}

.dark .entry-content table {
  border-color: #374151;
}
.dark .entry-content th,
.dark .entry-content td {
  border-color: #4b5563;
}
.modal-backdrop{
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
  backdrop-filter: blur(6px);
}

/* 隐藏 Chrome, Safari, Edge 的滚动条 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* 隐藏 Firefox 的滚动条 */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
