/* ============================================================
   质感定制 — 保留 minimal 骨架，精修排版与微交互
   （纯 CSS，通过 head-custom.html 在主题样式之后注入）
   ============================================================ */

:root {
  --bg: #fbfaf8;
  --text: #3a3a3a;
  --muted: #8a8782;
  --heading: #1d1d1d;
  --accent: #b3572f;
  --border: #e9e5dd;
  --code-bg: #f2efe9;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 标题：衬线体，书卷气与质感 */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

h1 { font-size: 1.8em; }
h2 { font-size: 1.3em; margin-top: 1.6em; }
h3 { font-size: 1.05em; }

p { margin: 0 0 1em; }

/* 链接：克制的下划线滑入动画，去掉默认加粗 */
a {
  color: var(--heading);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.25s ease, color 0.25s ease;
  font-weight: inherit;
}

a:hover,
a:focus {
  color: var(--accent);
  background-size: 100% 1px;
}

/* 侧栏标题与描述 */
header h1 {
  font-size: 1.6em;
  margin-bottom: 8px;
}

header h1 a { background-image: none; }

header p {
  color: var(--muted);
  font-size: 0.88em;
  line-height: 1.6;
}

/* 主内容渐入 */
section {
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 内联代码 */
code {
  background: var(--code-bg);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.88em;
  font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* 代码块 */
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1em 1.1em;
  overflow-x: auto;
  line-height: 1.55;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.85em;
}

/* 引用 */
blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5em 0;
  padding: 0.2em 1.1em;
  color: var(--muted);
  font-style: italic;
}

/* 分割线 */
hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.2em 0;
}

/* 列表间距 */
li { margin-bottom: 0.35em; }

/* 选中文本高亮 */
::selection {
  background: var(--accent);
  color: #fff;
}

/* 页脚淡化，弱化默认水印 */
footer {
  color: var(--muted);
  font-size: 0.72em;
}

footer a {
  color: var(--muted);
}

footer a:hover { color: var(--accent); }
