/* ===== 设计变量（浅色为默认，深色用 [data-theme="dark"] 覆盖） ===== */
:root {
  /* 浅色：暖米白背景 + 炭灰文字 + 低饱和鼠尾草绿主色 */
  --bg: #faf8f3;
  --bg-alt: #f1ede3;
  --text: #2c2e2a;
  --text-soft: #6b6862;
  --primary: #758F80;
  --primary-soft: #e7ede8;
  --card: #ffffff;
  --border: rgba(44, 46, 42, 0.10);
  --shadow: 0 10px 40px rgba(40, 42, 35, 0.08);
  --radius: 18px;
  --maxw: 1080px;
}

[data-theme="dark"] {
  /* 深色：协调深灰背景 + 柔和灰绿点缀 */
  --bg: #16181a;
  --bg-alt: #1d2022;
  --text: #e8e9e4;
  --text-soft: #a3a8a0;
  --primary: #9bb3a4;
  --primary-soft: #232b26;
  --card: #1c1f21;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  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.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }

/* ===== 聚焦与触摸高亮：移除鼠标点击 / 触摸时的蓝色方框，保留键盘 Tab 聚焦 ===== */
a, button, input, textarea, select, .nav__link, .icon-btn, .theme-toggle, .chip, .btn {
  -webkit-tap-highlight-color: transparent;
}
/* 鼠标 / 触摸点击产生的聚焦：去掉默认蓝色轮廓 */
:focus:not(:focus-visible) { outline: none; }
/* 键盘 Tab 聚焦：保留清晰可见的轮廓（输入框同样生效） */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: var(--bg); /* 降级：不支持 color-mix 时使用实色背景 */
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav__logo { font-weight: 800; font-size: 20px; letter-spacing: 0.5px; }
.nav__logo span { color: var(--primary); }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__link {
  color: var(--text-soft); font-size: 15px; transition: color 0.2s;
  background: none; border: 0; font-family: inherit; padding: 0; cursor: pointer;
}
.nav__link:hover { color: var(--primary); }
.nav__dropdown { position: relative; }
.nav__dropbtn { display: inline-flex; align-items: center; gap: 4px; }
.caret { font-size: 10px; line-height: 1; transition: transform 0.2s; }
.nav__dropdown:hover .caret,
.nav__dropdown.is-open .caret { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 168px;
  display: none; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); z-index: 60;
}
.nav__menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__dropdown:hover .nav__menu,
.nav__dropdown.is-open .nav__menu { display: flex; }
.nav__menu a {
  color: var(--text-soft); font-size: 14px; padding: 9px 12px; border-radius: 8px;
  white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.nav__menu a:hover { background: var(--bg-alt); color: var(--primary); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  border: 1px solid var(--border); background: var(--card);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  color: var(--text); /* 让内联 SVG 的 currentColor 在两种主题下都清晰 */
  display: grid; place-items: center;
  transition: transform 0.2s;
}
.theme-toggle:hover { transform: rotate(-20deg) scale(1.05); }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
/* 图标与「当前生效主题」一致：浅色显示太阳，深色显示月亮。
   显隐规则 (.theme-toggle .icon-*) 特异性高于 .theme-toggle svg，避免太阳/月亮同时显示 */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100dvh - 68px);
  display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 70% at 18% 12%, var(--primary-soft) 0%, transparent 60%),
    radial-gradient(60% 60% at 88% 85%, #efe7d8 0%, transparent 60%);
  opacity: 0.85;
}
[data-theme="dark"] .hero__bg {
  background:
    radial-gradient(70% 70% at 18% 12%, var(--primary-soft) 0%, transparent 60%),
    radial-gradient(60% 60% at 88% 85%, #2a312c 0%, transparent 60%);
  opacity: 0.7;
}
.hero__content {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px; width: 100%;
  text-align: center;
}
.hero__avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 22px;
  display: block; object-fit: cover;
  box-shadow: var(--shadow);
}
.hero__hello { color: var(--primary); font-weight: 600; letter-spacing: 2px; }
.hero__name {
  font-size: clamp(34px, 6vw, 60px); font-weight: 800; line-height: 1.15;
  margin: 8px auto 14px; letter-spacing: -0.5px; max-width: 720px;
}
.hero__name .hl { color: var(--primary); }
.hero__desc { color: var(--text-soft); max-width: 560px; margin: 0 auto 24px; font-size: 17px; }
.hero__tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero__tags a {
  display: inline-flex; align-items: center;
  font-size: 13px; color: var(--text-soft); background: var(--card);
  border: 1px solid var(--border); padding: 5px 14px; border-radius: 999px; text-decoration: none;
}
.hero__tags a:hover { color: var(--primary); border-color: var(--primary); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s;
}
.btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 24px rgba(117, 143, 128, 0.4); /* 降级 */
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 40%, transparent);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { border-color: var(--border); color: var(--text); background: var(--card); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ===== 通用 section ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.section--alt { max-width: none; background: var(--bg-alt); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { margin-bottom: 40px; }
.section__title { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin-top: 14px; letter-spacing: -0.5px; }
/* 标题上方没有小字时，去掉多余的顶部间距 */
.section__title:first-child { margin-top: 0; }

/* 文章区标题行：标题 + 浏览全部链接 */
.section__head--posts { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.section__head--posts .section__head__main { display: flex; flex-direction: column; }
.browse-all {
  color: var(--primary); font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: opacity 0.2s;
}
.browse-all:hover { opacity: 0.7; text-decoration: underline; }

/* ===== 文章筛选 ===== */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  font: inherit; cursor: pointer; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--text-soft);
  font-size: 14px; font-weight: 600; transition: all 0.2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 文章列表 ===== */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.post:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(30,30,60,0.16); }
.post__cover {
  height: 150px; display: grid; place-items: center; color: #fff; font-weight: 700; letter-spacing: 1px;
}
.post__cover span { background: rgba(0,0,0,0.18); padding: 6px 16px; border-radius: 999px; }
.post__cover--a { background: linear-gradient(135deg, #8a9d92, #6f8478); }
.post__cover--b { background: linear-gradient(135deg, #9aa79a, #7c8a7b); }
.post__cover--c { background: linear-gradient(135deg, #a7a892, #86836f); }
.post__cover--d { background: linear-gradient(135deg, #93a39b, #718279); }
.post__cover--e { background: linear-gradient(135deg, #8fa097, #6e8278); }
.post__cover--f { background: linear-gradient(135deg, #9b9d8f, #797b6d); }
.post__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--text-soft); font-size: 13px; margin-bottom: 10px; }
.post__cat { color: var(--primary); font-weight: 700; }
.post__title { font-size: 19px; line-height: 1.4; margin-bottom: 10px; }
.post__excerpt { color: var(--text-soft); font-size: 14px; margin-bottom: 16px; flex: 1; }
.post__link { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ===== 页脚 ===== */
.footer { padding: 32px 24px 28px; color: var(--text-soft); border-top: 1px solid var(--border); }
.footer__content { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer__copyright { color: var(--text); font-size: 14px; font-weight: 700; }
.footer__tagline { margin-top: 3px; font-size: 14px; }
.footer__built { margin-top: 7px; font-size: 12px; letter-spacing: 0.02em; }
.footer__records { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12px; }
.footer__records a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-soft); transition: color 0.2s; }
.footer__records a:hover { color: var(--primary); }
.footer__police img { display: block; width: 16px; height: 16px; object-fit: contain; }

/* ===== 滚动揭示动画 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--card); padding: 20px 24px; gap: 14px; border-bottom: 1px solid var(--border);
    align-items: stretch;
  }
  .nav__dropdown { position: static; width: 100%; }
  .nav__dropbtn { justify-content: space-between; width: 100%; font-size: 16px; padding: 6px 0; }
  .nav__menu {
    position: static; display: none; box-shadow: none; border: 0; border-radius: 0;
    padding: 4px 0 4px 14px; min-width: 0; background: none; gap: 0;
  }
  .nav__menu::before { display: none; }
  .nav__dropdown:hover .nav__menu { display: none; }
  .nav__dropdown.is-open .nav__menu { display: flex; }
  .nav__menu a { white-space: normal; padding: 8px 12px; }
}

/* ===== 全局搜索 ===== */
.icon-btn {
  border: 1px solid var(--border); background: var(--card);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  color: var(--text); display: grid; place-items: center;
  transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; display: block; }

.search { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.search[hidden] { display: none; }
.search__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, 0.4); backdrop-filter: blur(2px); }
.search__panel {
  position: relative; width: min(640px, 100%); max-height: 76vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.search__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.search__icon { width: 18px; height: 18px; color: var(--text-soft); flex: none; }
.search__bar input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--text); outline: none; }
/* 搜索输入框通过键盘聚焦时仍显示清晰的轮廓（默认 outline:none 不干扰鼠标点击） */
.search__bar input:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.search__bar input::placeholder { color: var(--text-soft); }
.search__close { border: 0; background: none; color: var(--text-soft); cursor: pointer; padding: 4px; border-radius: 8px; display: grid; place-items: center; transition: color 0.2s, background 0.2s; }
.search__close svg { width: 20px; height: 20px; }
.search__close:hover { color: var(--text); background: var(--bg-alt); }
.search__hint { padding: 8px 16px; font-size: 12px; color: var(--text-soft); border-bottom: 1px solid var(--border); display: flex; gap: 6px; flex-wrap: wrap; }
.search__hint kbd { font: inherit; font-size: 11px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text-soft); }
.search__results { overflow-y: auto; padding: 8px; }
.search__placeholder { padding: 24px 14px; text-align: center; color: var(--text-soft); font-size: 14px; }
.search__item { display: block; padding: 12px 14px; border-radius: 12px; color: inherit; text-decoration: none; transition: background 0.15s; }
.search__item:hover, .search__item.is-active { background: var(--bg-alt); }
.search__item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.search__item-title { font-size: 16px; font-weight: 600; margin: 0; }
.search__item-tag { font-size: 12px; color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; flex: none; }
.search__item-excerpt { font-size: 14px; color: var(--text-soft); margin: 0; }
.search__item mark, .search__item-title mark { background: var(--primary-soft); color: var(--primary); padding: 0 2px; border-radius: 4px; }
/* 搜索结果：相关标签行 */
.search__item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.search__item-tag--soft { background: var(--bg-alt); color: var(--text-soft); }
/* 搜索结果：仅当正文命中时出现的正文片段 */
.search__item-body {
  margin: 8px 0 0; font-size: 13.5px; color: var(--text-soft);
  border-left: 2px solid var(--primary); padding-left: 10px; line-height: 1.7;
}
.search__item-body-label {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); border-radius: 999px; padding: 1px 7px;
  margin-right: 6px; vertical-align: 1px;
}
.search__empty { padding: 28px 16px; text-align: center; color: var(--text-soft); font-size: 14px; }
.post.search-flash { outline: 2px solid var(--primary); outline-offset: 4px; }

/* ===== 文章栏目页（articles.html，复用现有卡片/分区样式） ===== */
/* 导航当前栏目高亮（仅颜色提示，不改导航视觉设计） */
.nav__link.is-active { color: var(--primary); font-weight: 600; }

/* 栏目页头 */
.page-head { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 8px; }
.page-head__tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--primary); background: var(--primary-soft); padding: 6px 14px; border-radius: 999px;
}
.page-head__title { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin-top: 14px; letter-spacing: -0.5px; }
/* 没有上方小字时（记录 / 关于页），去掉多余的顶部间距 */
.page-head__title:first-child { margin-top: 0; }
.page-head__desc { color: var(--text-soft); margin-top: 10px; max-width: 560px; font-size: 16px; }

/* 子导航（栏目内视图切换） */
.subnav {
  max-width: var(--maxw); margin: 24px auto 0; padding: 0 24px;
  display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border);
}
.subnav__item {
  font: inherit; cursor: pointer; background: none; border: 0; padding: 12px 2px; margin-right: 18px;
  color: var(--text-soft); font-size: 15px; font-weight: 600; position: relative;
}
.subnav__item::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: -1px; height: 2px;
  background: var(--primary); transform: scaleX(0); transition: transform 0.2s;
}
.subnav__item:hover { color: var(--primary); }
.subnav__item.is-active { color: var(--primary); }
.subnav__item.is-active::after { transform: scaleX(1); }

/* 栏目内容容器 */
.col { max-width: var(--maxw); margin: 0 auto; padding: 28px 24px 80px; }
.view[hidden] { display: none; }

/* 列表筛选状态提示 */
.list__status {
  color: var(--text-soft); font-size: 14px; margin: 0 0 18px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.list__status strong { color: var(--text); font-weight: 700; }
.list__status button {
  font: inherit; cursor: pointer; border: 1px solid var(--border); background: var(--card);
  color: var(--primary); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600;
}
.list__status button:hover { border-color: var(--primary); }

/* 分组卡片（分类 / 归档） */
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.group-card {
  text-align: left; cursor: pointer; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; font: inherit; color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.group-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.group-card__name { font-size: 18px; font-weight: 700; }
.group-card__count { color: var(--text-soft); font-size: 14px; margin-top: 6px; }
.group-card__go { color: var(--primary); font-size: 13px; font-weight: 600; margin-top: 12px; display: inline-block; }
.archive__year { font-size: 20px; font-weight: 800; margin: 18px 0 14px; }
.archive__year:first-child { margin-top: 0; }

/* 空状态（标签视图等） */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-soft); }
.empty-state__icon { font-size: 40px; }
.empty-state__title { font-size: 20px; font-weight: 700; color: var(--text); margin: 14px 0 8px; }
.empty-state__desc { font-size: 15px; max-width: 420px; margin: 0 auto; }
#friendsGrid .empty-state {
  grid-column: 1 / -1; min-height: 220px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 32px 24px;
  background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius);
}
#friendsGrid .empty-state__icon {
  width: 48px; height: 48px; display: grid; place-items: center; line-height: 1;
  color: var(--primary); background: var(--primary-soft); border-radius: 15px;
}
#friendsGrid .empty-state__icon svg { display: block; width: 23px; height: 23px; }
#friendsGrid .empty-state__title { margin: 14px 0 6px; }

/* 响应式补充（文章栏目） */
@media (max-width: 640px) {
  .posts { grid-template-columns: 1fr; }
  .subnav { gap: 0; }
  .subnav__item { margin-right: 14px; font-size: 14px; padding: 12px 2px; }
  .page-head { padding-top: 36px; }
}

/* ===== 记录栏目页（records.html，复用现有卡片/圆角/间距） ===== */
/* 子栏目标题与说明 */
.rec__title { font-size: clamp(22px, 4vw, 28px); font-weight: 800; margin: 4px 0 6px; letter-spacing: -0.3px; }
.rec__desc { color: var(--text-soft); font-size: 15px; margin: 0 0 24px; }

/* 媒体卡片网格（书架 / 音乐共用） */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.media-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.media-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(30, 30, 60, 0.16); }
.media-card__cover {
  aspect-ratio: 3 / 4; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 28px;
  background: linear-gradient(135deg, #8a9d92, #6f8478); /* 沿用低饱和鼠尾草绿 */
}
.media-card__cover--square { aspect-ratio: 1 / 1; }
.media-card__cover span { background: rgba(0, 0, 0, 0.18); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; }
.media-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.media-card__title { font-size: 16px; font-weight: 700; line-height: 1.4; }
.media-card__meta { color: var(--text-soft); font-size: 13px; }
.media-card__status {
  align-self: flex-start; margin-top: 2px; font-size: 12px; font-weight: 600;
  color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px;
}

/* 记录栏目响应式 */
@media (max-width: 640px) {
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
}

/* ===== 音乐播放器（记录 → 音乐，沿用鼠尾草绿 / 卡片 / 圆角） ===== */
.player {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 22px;
}
.player__main { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.player__cover {
  width: 64px; height: 64px; border-radius: 14px; flex: none; overflow: hidden;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px;
  background: linear-gradient(135deg, #8a9d92, #6f8478); /* 与文章封面同一套低饱和绿 */
}
.player__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player__info { min-width: 0; }
.player__title { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__artist { color: var(--text-soft); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.player__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.player__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.player__btn:hover { border-color: var(--primary); color: var(--primary); }
.player__btn svg { width: 18px; height: 18px; display: block; }
.player__btn--play { width: 48px; height: 48px; background: var(--primary); border-color: var(--primary); color: #fff; }
.player__btn--play:hover { color: #fff; transform: scale(1.05); }

.player__progress { display: flex; align-items: center; gap: 10px; }
.player__time { font-size: 12px; color: var(--text-soft); flex: none; min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.player__volume { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text-soft); }
.player__volume svg { width: 16px; height: 16px; flex: none; }
.player__range--vol { flex: 0 0 120px; }
.player__error {
  margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--text);
  background: var(--bg-alt); border-left: 3px solid var(--primary); border-radius: 8px; padding: 10px 12px;
}

/* 进度条 / 音量条：--p 控制已填充比例 */
.player__range {
  -webkit-appearance: none; appearance: none; flex: 1; width: 100%; height: 4px; border-radius: 999px;
  background: linear-gradient(to right, var(--primary) var(--p, 0%), var(--border) var(--p, 0%));
  outline: none; cursor: pointer;
}
.player__range:disabled { cursor: default; opacity: 0.6; }
.player__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); cursor: pointer;
}
.player__range::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--primary);
  border: 2px solid var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); cursor: pointer;
}

/* 播放列表 */
.playlist { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.playlist__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 700;
}
.playlist__count { color: var(--text-soft); font-size: 13px; font-weight: 600; }
.playlist__list { list-style: none; margin: 0; padding: 6px; }
.playlist__item {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 0; border-radius: 10px; background: none; font: inherit; color: inherit;
  text-align: left; cursor: pointer; transition: background 0.15s;
}
.playlist__item:hover { background: var(--bg-alt); }
.playlist__item.is-active { background: var(--primary-soft); }
.playlist__item.is-active .playlist__title { color: var(--primary); }
.playlist__index { width: 20px; flex: none; font-size: 12px; color: var(--text-soft); text-align: center; }
.playlist__meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.playlist__title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist__artist { font-size: 12px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
  .player { padding: 16px; }
  .player__progress { gap: 8px; }
  .player__volume { margin-top: 10px; }
  .player__range--vol { flex: 1; }
}

/* ===== 关于栏目页（about.html，复用现有卡片/圆角/间距） ===== */
/* 个人资料卡 */
.profile {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(115deg, var(--card), color-mix(in srgb, var(--primary-soft) 42%, var(--card)));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 26px; box-shadow: var(--shadow);
}
.profile__avatar {
  width: 70px; height: 70px; border: 3px solid var(--card); border-radius: 50%; flex: none;
  display: block; object-fit: cover; box-shadow: 0 5px 16px rgba(45, 70, 55, 0.18);
}
.profile__identity { min-width: 0; }
.profile__name { font-size: 22px; font-weight: 800; }
.profile__role { color: var(--text-soft); font-size: 14px; margin-top: 4px; }
.profile__contact { margin-left: auto; padding-left: 28px; border-left: 1px solid var(--border); display: flex; align-items: center; gap: 18px; }
.profile__contact-label { color: var(--text-soft); font-size: 13px; font-weight: 600; }

/* 关于我 文本区块 */
.about-block { margin-bottom: 24px; }
.about-block__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.about-block__text { color: var(--text-soft); font-size: 15px; line-height: 1.85; }
.contact-links { display: flex; align-items: center; gap: 9px; color: var(--text-soft); }
.contact-links a {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 50%; background: var(--card);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.contact-links a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.contact-links svg { display: block; width: 18px; height: 18px; }

/* 留言区框架提示框 */
.note-box {
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: 12px; padding: 18px 20px; color: var(--text-soft); font-size: 14px; line-height: 1.85;
}
.note-box strong { color: var(--text); }

/* 关于栏目响应式 */
@media (max-width: 640px) {
  .profile { flex-wrap: wrap; gap: 14px; padding: 20px; }
  .profile__avatar { width: 60px; height: 60px; }
  .profile__name { font-size: 20px; }
  .profile__role { font-size: 13px; }
  .profile__contact {
    flex-basis: 100%; margin: 2px 0 0; padding: 14px 0 0; border-left: 0;
    border-top: 1px solid var(--border); justify-content: space-between;
  }
}

/* ===== 文章详情页（post.html，沿用整体设计：鼠尾草绿 / 暖米 / 卡片 / 圆角） ===== */
.post-wrap { max-width: 760px; margin: 0 auto; padding: 32px 24px 80px; }
.post-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-soft); font-size: 14px; font-weight: 600;
  margin-bottom: 20px; transition: color 0.2s;
}
.post-back:hover { color: var(--primary); }

.post-detail {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.post-detail__cover { height: 200px; display: grid; place-items: center; }
.post-detail__cover span {
  background: rgba(0, 0, 0, 0.18); padding: 8px 20px; border-radius: 999px;
  color: #fff; font-weight: 700; letter-spacing: 1px;
}
.post-detail__body { padding: 32px 36px 40px; }
.post-detail__title {
  font-size: clamp(26px, 4.5vw, 38px); font-weight: 800; line-height: 1.3;
  letter-spacing: -0.5px; margin-bottom: 14px;
}
.post-detail__meta {
  display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-soft);
  font-size: 14px; margin-bottom: 24px;
}
.post-detail__meta .dot { opacity: 0.5; }
.post-detail__cat { color: var(--primary); font-weight: 700; }
.post-detail__lead { font-size: 17px; line-height: 1.9; color: var(--text); margin-bottom: 24px; }
.post-detail__notice {
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: 12px; padding: 16px 18px; color: var(--text-soft); font-size: 14px; line-height: 1.85;
}
.post-detail__notice strong { color: var(--text); }

/* 上一篇 / 下一篇 */
.post-nav { display: flex; gap: 16px; margin-top: 28px; }
.post-nav__link {
  flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; color: inherit; text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.post-nav__link:hover { border-color: var(--primary); transform: translateY(-3px); }
.post-nav__dir { font-size: 12px; color: var(--text-soft); font-weight: 600; }
.post-nav__title {
  font-size: 15px; font-weight: 700; margin-top: 6px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-nav__link--next { text-align: right; }

/* 文章不存在 */
.post-missing { text-align: center; padding: 80px 20px; }
.post-missing__icon { font-size: 44px; }
.post-missing__title { font-size: 22px; font-weight: 800; margin: 14px 0 8px; }
.post-missing__desc { color: var(--text-soft); margin-bottom: 20px; }

/* 详情页响应式 */
@media (max-width: 640px) {
  .post-detail__body { padding: 24px 20px 32px; }
  .post-nav { flex-direction: column; }
}

/* 文章详情页：标签（仅在有真实标签时渲染） */
.post-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: -10px 0 20px; }
.post-detail__tag {
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); padding: 4px 12px; border-radius: 999px;
  text-decoration: none; transition: opacity 0.2s;
}
.post-detail__tag:hover { opacity: 0.75; }

/* 文章正文容器（Markdown 渲染结果） */
.post-detail__content { margin-top: 4px; }

/* Markdown 正文排版 */
.post-prose { color: var(--text); font-size: 16px; line-height: 1.85; overflow-wrap: break-word; }
.post-prose > *:first-child { margin-top: 0; }
.post-prose h1, .post-prose h2, .post-prose h3, .post-prose h4, .post-prose h5, .post-prose h6 {
  font-weight: 800; line-height: 1.4; margin: 1.6em 0 0.6em; letter-spacing: -0.3px;
}
.post-prose h1 { font-size: 26px; }
.post-prose h2 { font-size: 22px; }
.post-prose h3 { font-size: 19px; }
.post-prose h4, .post-prose h5, .post-prose h6 { font-size: 17px; }
.post-prose p { margin: 0 0 1em; }
.post-prose ul, .post-prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.post-prose li { margin: 0.3em 0; }
.post-prose blockquote {
  margin: 0 0 1em; padding: 10px 16px; border-left: 3px solid var(--primary);
  background: var(--bg-alt); color: var(--text-soft); border-radius: 0 10px 10px 0;
}
.post-prose blockquote p:last-child { margin-bottom: 0; }
.post-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px;
}
.post-prose pre {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; overflow-x: auto; margin: 0 0 1em;
}
.post-prose pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.7; }
.post-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.post-prose img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 0 0 1em; }
.post-prose hr { border: 0; border-top: 1px solid var(--border); margin: 1.8em 0; }

