/* 我的笔记文档 — bimman.top */
:root {
  --bg: #f6f7f5;
  --card: #ffffff;
  --text: #2b2f33;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: #eef2ff;
  --border: #e5e7eb;
  --code-bg: #1e293b;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.logo {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.site-header nav a {
  margin-left: 18px;
  color: var(--muted);
  font-size: 15px;
}
.site-header nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- 首页 Hero ---------- */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: 1px;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- 章节标题 ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin: 36px 0 18px;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- 笔记卡片 ---------- */
.note-list { list-style: none; margin: 0; padding: 0; }
.note-list li { margin-bottom: 14px; }
.note-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  color: var(--text);
}
.note-card:hover {
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.note-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.tag {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}
.note-card h3 { margin: 0 0 6px; font-size: 17px; }
.note-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- 文章页 ---------- */
article.page {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 38px;
  margin: 30px 0;
}
article.page h1 { margin-top: 0; font-size: 26px; }
article.page h2 {
  font-size: 20px;
  margin-top: 32px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
article.page img { max-width: 100%; }
article.page blockquote {
  margin: 0;
  padding: 10px 16px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  color: #374151;
}
code {
  background: #eef1f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}
pre {
  background: var(--code-bg);
  color: #e2e8f0;
  padding: 16px 18px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
}
pre code { background: none; padding: 0; color: inherit; }

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}
.back-link:hover { color: var(--accent); }

/* ---------- 关于页 ---------- */
.profile {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 8px;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}

/* ---------- 页脚(备案号) ---------- */
.site-footer {
  margin-top: 60px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer img { vertical-align: -3px; margin-right: 4px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 26px; }
  article.page { padding: 24px 20px; }
}
