/* ========================================
   花花的技术分享 - 自定义样式
   设计风格：Notion 温暖极简
   ======================================== */

/* ---- 基础排版 ---- */
body {
  font-family: 'Georgia', 'Noto Serif SC', serif;
}

p, li, td, th {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---- 文章卡片 ---- */
.article-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ---- Markdown 文章内容样式 ---- */
.article-content {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.8;
  color: #1a1a18;
}

.article-content h1 {
  font-family: 'Georgia', 'Noto Serif SC', serif;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1a1a18;
  line-height: 1.3;
}

.article-content h2 {
  font-family: 'Georgia', 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #1a1a18;
  line-height: 1.35;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #e5e5e3;
}

.article-content h3 {
  font-family: 'Georgia', 'Noto Serif SC', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1a1a18;
}

.article-content p {
  margin-bottom: 1rem;
  color: #3a3a38;
}

.article-content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: #1d4ed8;
}

.article-content strong {
  font-weight: 600;
  color: #1a1a18;
}

.article-content code {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: 0.875em;
  background: #f0eeeb;
  padding: 0.15em 0.35em;
  border-radius: 4px;
  color: #eb5757;
}

.article-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.article-content blockquote {
  border-left: 3px solid #d4d4d4;
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: #6b6b6b;
  font-style: italic;
}

.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #3a3a38;
}

.article-content li {
  margin-bottom: 0.35rem;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.article-content th {
  background: #f5f5f4;
  font-weight: 600;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid #e5e5e3;
  color: #1a1a18;
}

.article-content td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #ebebeb;
  color: #3a3a38;
}

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

/* ---- 标签 ---- */
.tag {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  background: #f0eeeb;
  color: #6b6b6b;
  display: inline-block;
  margin-right: 0.4rem;
  margin-bottom: 0.3rem;
}

/* ---- 滚动条美化 ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

/* ---- 响应式 ---- */
@media (max-width: 640px) {
  .article-content h1 { font-size: 1.5rem; }
  .article-content h2 { font-size: 1.25rem; }
  .article-content h3 { font-size: 1.1rem; }
}
