/* ============================================================
   小民民个人主页 · 样式表
   设计原则：干净、克制、中文排版优先；无外部依赖，首屏零请求。
   ============================================================ */

:root {
  --bg: #faf8f4;
  --bg-alt: #f1ece3;
  --card: #ffffff;
  --ink: #2b2620;
  --ink-soft: #6b6257;
  --ink-faint: #9a8f80;
  --accent: #b4552d;
  --accent-soft: #e8d5c6;
  --line: #e4dcd0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(43, 38, 32, .06), 0 4px 16px rgba(43, 38, 32, .05);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --wrap: 860px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); font-size: .92em; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 248, 244, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand .brand-dot { color: var(--accent); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink-soft); font-size: .95rem; padding: 4px 0; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a.active { color: var(--accent); font-weight: 600; border-bottom: 2px solid var(--accent); }

/* ---------- 英雄区 ---------- */
.hero { padding: 72px 0 48px; }
.hero-eyebrow {
  color: var(--accent); font-weight: 600; letter-spacing: .18em;
  font-size: .85rem; margin: 0 0 12px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 16px; line-height: 1.25; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--accent-soft) 0);
}
.hero-sub { color: var(--ink-soft); font-size: 1.08rem; max-width: 34em; }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  font-size: .95rem; font-weight: 500; transition: all .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9c4423; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 区块与文章列表 ---------- */
.section { padding: 40px 0; }
.section-title { font-size: 1.4rem; margin: 0 0 18px; position: relative; padding-left: 14px; }
.section-title::before {
  content: ""; position: absolute; left: 0; top: .32em; bottom: .32em;
  width: 4px; border-radius: 2px; background: var(--accent);
}

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 13px 0; border-bottom: 1px dashed var(--line);
}
.post-list time { color: var(--ink-faint); font-size: .85rem; font-variant-numeric: tabular-nums; flex: none; }
.post-list a { color: var(--ink); font-weight: 500; }
.post-list a:hover { color: var(--accent); }
.post-empty { color: var(--ink-faint); font-style: italic; }
.more-link { margin-top: 18px; }

/* ---------- 普通页 ---------- */
.page { padding: 48px 0 64px; }
.page h1 { font-size: 1.9rem; margin: 0 0 8px; }
.prose h2 { font-size: 1.3rem; margin: 34px 0 10px; padding-top: 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }

.avatar-figure { margin: 20px 0 8px; }
.avatar {
  width: 120px; height: 120px; border-radius: 50%;
  border: 3px solid var(--card); box-shadow: var(--shadow); object-fit: cover;
}
.avatar-figure figcaption { margin-top: 8px; color: var(--ink-faint); font-size: .9rem; text-align: center; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  margin-top: 40px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: space-between; align-items: center;
  padding-top: 18px; padding-bottom: 18px;
  color: var(--ink-soft); font-size: .88rem;
}
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }
.footer-links .sep { margin: 0 6px; color: var(--ink-faint); }
.copyright { margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
  .hero { padding: 44px 0 32px; }
  .post-list li { flex-direction: column; gap: 2px; }
  .nav { gap: 14px; }
  .header-inner { height: 54px; }
}

/* ============ 音乐播放器 ============ */
.music-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 22px;
  margin-top: 22px;
}
.player-card, .lyric-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.disc {
  width: 110px; height: 110px; margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e8d5c6, #b4552d 70%);
  display: flex; align-items: center; justify-content: center;
  color: #faf8f4; font-size: 3rem;
  box-shadow: inset 0 0 0 6px rgba(250,248,244,.25), var(--shadow);
}
.disc.rotating { animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.now-info { text-align: center; margin-bottom: 14px; }
.now-info h2 { margin: 0 0 4px; font-size: 1.15rem; }
.now-info p { margin: 0; font-size: .9rem; }
.controls {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 6px 0 12px;
}
.skip { font-size: .95rem; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.mode-btn { width: auto; min-width: 46px; padding: 0 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.ctrl-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.ctrl-btn:hover { border-color: var(--accent); color: var(--accent); }
.ctrl-main { width: 52px; height: 52px; background: var(--accent); border-color: var(--accent); color: #fff; }
.ctrl-main:hover { background: #9c4423; color: #fff; }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-row .time { font-size: .78rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
#seek { flex: 1; accent-color: var(--accent); cursor: pointer; }
.vol-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.vol-btn { width: 32px; height: 32px; }
#vol { flex: 1; accent-color: var(--accent); cursor: pointer; }

.lyric-card { display: flex; flex-direction: column; min-height: 320px; }
.lyric-stage {
  position: relative;
  overflow: hidden;
  font-size: .98rem;
  height: 11em;            /* 视窗：正好 5 行歌词 */
  line-height: 2.2;
  text-align: center;
}
.lyric-track { position: relative; will-change: transform; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.lyric-line { color: var(--ink-faint); transition: color .3s, transform .3s; margin: 0; padding: 0 6px; }
.lyric-line.active { color: var(--accent); font-weight: 600; }
.lyric-hint {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: .95rem; margin: 0;
  text-align: center; pointer-events: none;
}

.playlist-sec { margin-top: 26px; }
.playlist { list-style: none; margin: 0; padding: 0; }
.playlist li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 11px 14px; border-bottom: 1px dashed var(--line);
  border-radius: 8px; cursor: pointer; transition: background .15s;
}
.playlist li:hover { background: var(--bg-alt); }
.playlist li.playing { background: var(--accent-soft); }
.pl-no { color: var(--ink-faint); font-size: .82rem; width: 2em; flex: none; }
.pl-name { font-weight: 500; }
.pl-artist { color: var(--ink-soft); font-size: .85rem; }

@media (max-width: 760px) {
  .music-layout { grid-template-columns: 1fr; }
  .lyric-card { min-height: 200px; }
  .lyric-stage { height: 9em; }
}
