/* 《千相印》墨印主题 — 用户样式，最后加载，覆盖默认 */

:root{
  --ink:#ece4d6;
  --ink-soft:#c9bda9;
  --bg:#16120e;
  --bg-2:#1d1813;
  --panel:#211b15;
  --seal:#c0392b;
  --seal-soft:#e0674f;
  --muted:#8c8175;
  --line:rgba(192,57,43,.28);
  --line-soft:rgba(236,228,214,.09);
}

*{box-sizing:border-box;}

html{background:var(--bg);}

body{
  background:var(--bg) !important;
  color:var(--ink);
  font-family:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun",Georgia,serif;
  line-height:1.85;
  font-size:17px;
  margin:0;
}

a{color:var(--seal-soft);text-decoration:none;transition:color .15s,border-color .15s;}
a:hover{color:var(--seal);text-decoration:underline;}

header,main,footer{max-width:760px;margin-inline:auto;padding-inline:1.25rem;}

/* ===== 头部 / 首页标题 ===== */
header.text-center{
  padding-top:3.2rem;padding-bottom:1.2rem;
  border-bottom:1px solid var(--line);
}
header h1{
  font-size:2.1rem;letter-spacing:.18em;color:var(--ink);
  font-weight:700;margin:.2rem 0 .1rem;
}
header h1::before{content:"❖ ";color:var(--seal);}
nav{margin-top:.6rem;}
nav a{color:var(--ink-soft);font-size:.95rem;margin:0 .5rem;letter-spacing:.04em;}
nav a::after{content:" ·";color:var(--muted);margin-left:.5rem;}
nav a:last-child::after{content:"";}

/* ===== 首页文章列表 ===== */
main{padding-top:1.6rem;}
section.posts{margin-top:.4rem;}
section.posts article{
  border-bottom:1px solid var(--line-soft);
  padding:.55rem 0 .55rem .9rem;
  border-left:2px solid transparent;
  transition:border-color .15s,background .15s;
}
section.posts article:hover{
  border-left-color:var(--seal);
  background:linear-gradient(90deg,rgba(192,57,43,.06),transparent);
}
section.posts article .post-date{
  color:var(--muted);font-variant-numeric:tabular-nums;min-width:6.2rem;
}
section.posts article a{font-size:1.02rem;letter-spacing:.02em;}

/* ===== 首页 readme 引导块 ===== */
main blockquote{
  border-left:3px solid var(--seal);
  background:var(--bg-2);
  margin:1.1rem 0;padding:.7rem 1rem;color:var(--ink-soft);
  font-style:italic;border-radius:0 6px 6px 0;
}
main > p{color:var(--ink-soft);margin:1rem auto;}

/* ===== 文章页 ===== */
body#post header{padding-bottom:1rem;}
body#post header h1{font-size:1.8rem;letter-spacing:.06em;}
body#post time{color:var(--muted);font-size:.85rem;}
article.md{max-width:760px;}
article.md h1,article.md h2,article.md h3{
  color:var(--ink);font-weight:700;line-height:1.4;margin:1.8rem 0 .8rem;
  border-left:3px solid var(--seal);padding-left:.7rem;
}
article.md h1{font-size:1.5rem;}
article.md h2{font-size:1.28rem;}
article.md h3{font-size:1.1rem;}
article.md p{margin:.9rem 0;}
article.md blockquote{
  border-left:3px solid var(--seal);
  background:var(--bg-2);
  margin:1.1rem 0;padding:.7rem 1rem;color:var(--ink-soft);
  font-style:italic;border-radius:0 6px 6px 0;
}
article.md ul,article.md ol{padding-left:1.4rem;}
article.md li{margin:.35rem 0;}
article.md code{background:var(--panel);padding:.1rem .4rem;border-radius:4px;color:var(--seal-soft);}
article.md hr{border:none;border-top:1px solid var(--line);margin:2rem 0;}

/* ===== 页脚 ===== */
footer{
  max-width:760px;margin:2.5rem auto 3rem;color:var(--muted);
  font-size:.8rem;text-align:center;border-top:1px solid var(--line);padding-top:1.2rem;
}
footer a{color:var(--muted);}
