/* ===== lvy-neko 静态仿站样式 ===== */

:root {
  /* 算栗工坊 棕黄主题色（源自 suanlilog-rspress-blog/extra.css）*/
  --color-brand: #c27a3a;          /* 栗棕主色 */
  --color-brand-light: #d4944f;    /* 亮栗 */
  --color-brand-dark: #a56427;     /* 深栗 */
  --color-brand-secondary: #d4944f;
  --color-primary: #1a1a1a;        /* 主文字 */
  --color-secondary: #6b5d4a;      /* 次文字（暖灰棕）*/
  --color-bg: #fdf6e3;             /* 米黄背景 */
  --color-bg-soft: #f5edd8;
  --color-border: #ffffff;
  --color-card: #ffffff73;         /* 卡片半透明白 */
  --color-article: #ffffffd9;
  --color-feature-bg: #f5e4c6;     /* 功能块底色 */

  --font-averia: "Averia Gruesa Libre", "PingFang SC", -apple-system, system-ui,
    "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-sans: "PingFang SC", -apple-system, system-ui, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

html { cursor: url(./assets/cursor.svg) 2 1, auto; }

body {
  font-family: var(--font-sans);
  color: var(--color-primary);
  /* 首页栗黄渐变背景（源自原站 --rp-home-background-bg）*/
  background: linear-gradient(180deg, #f8ecd2 0%, #f8ecd2 40%, #f5e8d0 70%, #fdf6e3 100%);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== 动态背景 ===== */
.bg-canvas-wrap {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden;
  filter: blur(50px);
  opacity: 0;
  animation: bgFadeIn 1.6s ease forwards;
}
@keyframes bgFadeIn { to { opacity: 1; } }
.bg-canvas-wrap canvas { display: block; width: 100%; height: 100%; }

/* ===== 主体容器 ===== */
.page { position: relative; z-index: 10; height: 100vh; overflow: hidden; }

/* ===== 顶部导航 ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2rem;
  backdrop-filter: blur(12px);
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}
.nav-brand {
  font-family: var(--font-averia);
  font-size: 1.6rem; font-weight: 700;
  color: var(--color-brand-dark);
}
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  position: relative; font-size: 0.95rem; color: var(--color-primary);
  padding: 0.25rem 0; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--color-brand);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--color-brand); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--color-brand); }

/* ===== 首页：围绕头像的散布舞台 ===== */
.stage {
  position: relative;
  width: min(1100px, 96vw);
  height: calc(100vh - 130px);   /* 视口减去导航栏 */
  margin: 0 auto;
}

/* 中央头像 */
.stage-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  z-index: 5; text-align: center;
}
.stage-avatar {
  width: 150px; height: 150px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(165,100,39,.45);
  border: 4px solid var(--color-border);
  animation: breathe 5s ease-in-out infinite;
  background: var(--color-feature-bg);
}
@keyframes breathe { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
.stage-title {
  font-family: var(--font-averia);
  font-size: 2rem; color: var(--color-primary); margin-top: 0.4rem;
}
.stage-title .accent { color: var(--color-brand); }
.stage-sub { color: var(--color-secondary); font-size: 0.9rem; max-width: 340px; }

/* 散布在周围的入口卡 —— 大小不一，仿原站可拖拽布局感 */
.float-card {
  position: absolute;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(107,93,74,.14);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; gap: 0.3rem;
  cursor: grab;
}
.float-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(194,122,58,.26);
  z-index: 6;
}
.float-card.dragging {
  box-shadow: 0 18px 40px rgba(165,100,39,.4);
  opacity: 0.96;
}
.float-card .fc-title { user-select: none; }
.float-card .fc-icon { font-size: 1.4rem; }
.float-card .fc-title { font-weight: 600; color: var(--color-primary); font-size: 0.92rem; }
.float-card .fc-desc { font-size: 0.76rem; color: var(--color-secondary); line-height: 1.4; }

/* 不同尺寸卡片：原站每张宽高可独立配，这里给几档 */
.fc-sm { width: 150px; }
.fc-md { width: 190px; }
.fc-lg { width: 230px; }
.fc-tall { min-height: 150px; }

/* 入口卡：可点击，带点击反馈 */
.entry-card { cursor: pointer; border-left: 3px solid var(--color-brand); }
.entry-card:hover { background: var(--color-article); }

/* 散布位置（桌面端环绕头像，6 张大小不一、错落）*/
.fc-1 { left: 1%;  top: 3%;  }              /* 近期文章 大卡 左上 */
.fc-2 { right: 1%; top: 3%;  }              /* 专题栏目 大卡 右上 */
.fc-3 { left: 4%;  top: 48%; }              /* 时钟 小卡 左中 */
.fc-4 { right: 4%; top: 46%; }              /* 音乐 中卡 右中 */
.fc-5 { left: 6%;  bottom: 4%; }            /* 随手记 中卡 左下 */
.fc-6 { right: 6%; bottom: 4%; }            /* 日历 小卡 右下 */

/* 时钟卡 */
.clock-time {
  font-family: var(--font-averia);
  font-size: 1.7rem; color: var(--color-brand-dark); line-height: 1; margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.clock-date { font-size: 0.72rem; color: var(--color-secondary); }

/* 音乐卡 */
.music-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.3rem; }
.music-play {
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--color-brand); color: #fff; font-size: 1rem;
  display: grid; place-items: center; transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.music-play:hover { background: var(--color-brand-dark); transform: scale(1.08); }
.music-play:active { transform: scale(0.95); }
.music-info { font-size: 0.75rem; color: var(--color-secondary); line-height: 1.3; min-width: 0; }
.music-info .title { color: var(--color-primary); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; margin-top: 2px; }
.music-bars span {
  width: 3px; background: var(--color-brand); border-radius: 1px; height: 4px;
  animation: bar 1s ease-in-out infinite;
}
.music-bars span:nth-child(2){ animation-delay:.2s } .music-bars span:nth-child(3){ animation-delay:.4s }
.music-bars span:nth-child(4){ animation-delay:.1s }
.music.paused .music-bars span { animation-play-state: paused; }
@keyframes bar { 0%,100%{height:4px} 50%{height:14px} }

/* 随笔/写作卡 */
.note-area {
  width: 100%; min-height: 70px; resize: vertical;
  border: 1px dashed var(--color-brand-light);
  border-radius: 0.5rem; padding: 0.5rem;
  background: #ffffff99; color: var(--color-primary);
  font-family: var(--font-sans); font-size: 0.8rem; line-height: 1.5;
  margin-top: 0.3rem; outline: none;
}
.note-area:focus { border-style: solid; border-color: var(--color-brand); }
.note-hint { font-size: 0.68rem; color: var(--color-secondary); margin-top: 0.3rem; }
.note-hint kbd {
  background: var(--color-bg-soft); border: 1px solid var(--color-brand-light);
  border-radius: 3px; padding: 0 0.3em; font-size: 0.9em; color: var(--color-brand-dark);
}

.tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; padding: 0 1rem 2rem; }
.tag {
  font-size: 0.75rem; padding: 0.25rem 0.8rem; border-radius: 999px;
  background: var(--color-card); border: 1px solid var(--color-border);
  color: var(--color-brand); backdrop-filter: blur(8px);
}

/* ===== 内容栅格 ===== */
.content { max-width: 1100px; margin: 0 auto; padding: 2rem; }

.section-head {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 2rem 0 1.2rem;
}
.section-head h2 {
  font-family: var(--font-averia); font-size: 1.4rem; color: var(--color-primary);
}
.section-head .bar { width: 4px; height: 1.2rem; background: var(--color-brand); border-radius: 2px; }

/* ===== 文章卡片网格 ===== */
.post-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.post-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.3rem;
  backdrop-filter: blur(10px);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(53,191,171,.18);
}
.post-card .cover {
  height: 120px; border-radius: 0.7rem; margin-bottom: 0.3rem;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
  opacity: .9;
}
.post-card h3 { font-size: 1.1rem; color: var(--color-primary); }
.post-card p { font-size: 0.85rem; color: var(--color-secondary); line-height: 1.5; flex: 1; }
.post-meta { display: flex; gap: 0.8rem; font-size: 0.75rem; color: var(--color-secondary); }
.post-meta .cat { color: var(--color-brand); }

/* ===== 页脚 ===== */
.footer {
  text-align: center; padding: 3rem 2rem 2rem;
  color: var(--color-secondary); font-size: 0.8rem;
}
.footer .heart { color: var(--color-brand); }

/* ===== 文章详情页 ===== */
.article-wrap {
  max-width: 760px; margin: 0 auto; padding: 3rem 2rem;
}
.article-card {
  background: var(--color-article);
  border: 1px solid var(--color-border);
  border-radius: 1.2rem;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}
.article-card h1 {
  font-family: var(--font-averia); font-size: 2rem; color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.article-info { color: var(--color-secondary); font-size: 0.85rem; margin-bottom: 1.8rem; }
.article-body { line-height: 1.8; color: var(--color-primary); }
.article-body h2 { margin: 1.6rem 0 0.6rem; font-size: 1.3rem; }
.article-body p { margin-bottom: 1rem; }
.article-body code {
  background: var(--color-card); padding: 0.15rem 0.4rem;
  border-radius: 4px; font-size: 0.85em; color: var(--color-brand);
}
.article-body blockquote {
  border-left: 3px solid var(--color-brand);
  padding-left: 1rem; margin: 1rem 0;
  color: var(--color-secondary);
}
.article-page { height: auto; min-height: 100vh; overflow-x: hidden; overflow-y: auto; }
.article-page-shell { height: auto; min-height: 100vh; overflow: visible; }
.article-page .article-wrap { max-width: 1060px; }.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 190px; gap: 1.5rem; align-items: start; }
.reading-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 100; height: 3px; pointer-events: none; background: rgba(255,255,255,.32); }.reading-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--color-brand); transition: transform .1s linear; }.article-toc { position: sticky; top: 5.5rem; max-height: calc(100vh - 7rem); padding: .7rem 0 .7rem .9rem; overflow-y: auto; border-left: 1px solid rgba(165,100,39,.26); }.article-toc > p { margin-bottom: .55rem; color: var(--color-brand-dark); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }.article-toc ol { list-style: none; }.article-toc li { margin: .34rem 0; font-size: .75rem; line-height: 1.35; }.article-toc .toc-level-2 { margin-left: .7rem; }.article-toc .toc-level-3 { margin-left: 1.35rem; }.article-toc a { color: var(--color-secondary); transition: color .15s ease; }.article-toc a:hover, .article-toc a.is-active { color: var(--color-brand-dark); font-weight: 750; }.article-toc a.is-active { position: relative; }.article-toc a.is-active::before { position: absolute; left: -.9rem; top: .1em; width: 3px; height: 1em; border-radius: 99px; background: var(--color-brand); content: ''; }.toc-empty { color: var(--color-secondary); font-size: .75rem; }.article-body :is(h1, h2, h3) { scroll-margin-top: 6.5rem; }
.article-body h3 { margin: 1.3rem 0 .5rem; font-size: 1.08rem; }
.article-body a { color: var(--color-brand-dark); text-decoration: underline; text-decoration-color: rgba(194,122,58,.45); text-underline-offset: .16em; }
.article-body a:hover { color: var(--color-brand); }
.article-body strong { font-weight: 750; color: #382615; }
.article-body em { color: var(--color-secondary); }
.article-body ul, .article-body ol { margin: 0 0 1rem 1.3rem; }.article-body li { margin: .32rem 0; }
.article-body pre { overflow-x: auto; margin: 1rem 0; padding: 1rem 1.1rem; border-radius: .75rem; background: #32261f; color: #f9ecd8; line-height: 1.65; }.article-body pre code { padding: 0; background: transparent; color: inherit; }
.article-body img { display: block; max-width: 100%; height: auto; margin: 1rem auto; border-radius: .75rem; box-shadow: 0 8px 22px rgba(74,48,23,.12); }
.learning-details { margin: 1.1rem 0; overflow: hidden; border: 1px solid rgba(194,122,58,.28); border-radius: .8rem; background: rgba(255,250,239,.7); }.learning-details summary { padding: .8rem 1rem; color: var(--color-brand-dark); cursor: pointer; font-size: .88rem; font-weight: 750; list-style: none; }.learning-details summary::-webkit-details-marker { display: none; }.learning-details summary::before { content: '＋'; display: inline-grid; width: 1.25rem; height: 1.25rem; margin-right: .45rem; border-radius: 50%; place-items: center; color: #fff; background: var(--color-brand); font-size: .95rem; line-height: 1; }.learning-details[open] summary { border-bottom: 1px solid rgba(194,122,58,.18); }.learning-details[open] summary::before { content: '−'; }.learning-details > :not(summary) { margin-left: 1rem; margin-right: 1rem; }.learning-details > :last-child { margin-bottom: 1rem; }
.article-body .learning-details > ul, .article-body .learning-details > ol { margin: 1rem 1rem 1rem 2.45rem; padding-left: .45rem; list-style-position: outside; }
.learning-details.key { border-color: rgba(194,122,58,.48); background: #fff6df; }.learning-details.key summary::before { content: '★'; background: #d88b2e; font-size: .7rem; }.learning-details.pitfall { border-color: rgba(194,103,58,.35); background: #fff0e8; }.learning-details.pitfall summary { color: #a85632; }.learning-details.pitfall summary::before { content: '!'; background: #d9683f; font-weight: 900; }.learning-details.key[open] summary::before { content: '★'; }.learning-details.pitfall[open] summary::before { content: '!'; }
.article-body hr { height: 1px; margin: 1.8rem 0; border: 0; background: rgba(165,100,39,.23); }.table-wrap { overflow-x: auto; margin: 1rem 0; }.article-body table { width: 100%; border-collapse: collapse; font-size: .9rem; }.article-body th, .article-body td { padding: .6rem .7rem; border: 1px solid rgba(165,100,39,.19); text-align: left; }.article-body th { background: var(--color-bg-soft); }

.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-bottom: 1.2rem; color: var(--color-brand); font-size: 0.9rem;
}

/* ===== 文章筛选条 + 新旧标签 ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.filter-chip {
  font-size: 0.8rem; padding: 0.3rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--color-brand-light); background: var(--color-card);
  color: var(--color-secondary); cursor: pointer; transition: all .2s;
  backdrop-filter: blur(8px);
}
.filter-chip:hover { color: var(--color-brand-dark); }
.filter-chip.active {
  background: var(--color-brand); color: #fff; border-color: var(--color-brand);
}
.loading { color: var(--color-secondary); padding: 1rem; font-size: 0.85rem; }

/* 文章卡上的标签 */
.post-card .badges { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.2rem; }
.badge {
  font-size: 0.65rem; padding: 0.1rem 0.45rem; border-radius: 4px; font-weight: 600;
}
.badge.new { background: #e85d3a; color: #fff; }
.badge.updated { background: var(--color-brand); color: #fff; }

.post-meta .date { margin-left: auto; }

/* ===== 文章专题卡 ===== */
.topic-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.topic-card {
  background: var(--color-article);
  border: 1px solid var(--color-border);
  border-radius: 1rem; padding: 1.3rem;
  backdrop-filter: blur(10px);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(194,122,58,.22);
}
.topic-card .tc-icon { font-size: 1.8rem; }
.topic-card .tc-title { font-size: 1.1rem; font-weight: 600; color: var(--color-primary); margin: 0.4rem 0 0.2rem; }
.topic-card .tc-count { font-size: 0.78rem; color: var(--color-brand-dark); font-weight: 600; }
.topic-card .tc-desc { font-size: 0.8rem; color: var(--color-secondary); margin-top: 0.3rem; line-height: 1.4; }

/* ===== 列表页（posts.html / topics.html）：可滚动 ===== */
body.list-page { height: auto; min-height: 100vh; overflow: auto; }
.list-page-page { height: auto; min-height: 100vh; overflow: visible; }

.section-head { display: flex; align-items: center; gap: 0.6rem; margin: 2rem 0 1.2rem; }
.section-head .back-home {
  margin-left: auto; font-size: 0.8rem; color: var(--color-brand-dark);
  text-decoration: none; white-space: nowrap;
}
.section-head .back-home:hover { text-decoration: underline; }
.topic-intro { color: var(--color-secondary); font-size: 0.85rem; margin-bottom: 1.2rem; }

/* ===== 响应式：移动端把散布卡变成竖向堆叠 ===== */
@media (max-width: 900px) {
  .stage {
    width: 100%; height: auto;
    display: flex; flex-direction: column; align-items: center;
    gap: 1rem; padding: 2rem 1rem;
  }
  .stage-center { position: static; transform: none; }
  .float-card {
    position: static !important;
    width: 88%; max-width: 360px;
  }
  .navbar { padding: 0.7rem 1rem; flex-direction: column; gap: 0.5rem; }
  .nav-links { gap: 1.1rem; }
  .content { padding: 1.2rem; }
  .article-card { padding: 1.6rem; }
  .article-page .article-wrap { max-width: 760px; }.article-layout { grid-template-columns: 1fr; }.article-layout .article-card { grid-row: 2; }.article-toc { position: static; grid-row: 1; max-height: none; padding: .75rem .9rem; border: 0; border-radius: .8rem; background: rgba(255,255,255,.52); }.article-toc ol { columns: 2; }.article-toc li { break-inside: avoid; }
}

/* ===== 首页：内容优先的个人 Wiki ===== */
body.home-page { height: auto; min-height: 100vh; overflow-x: hidden; overflow-y: auto; }
.home-page-shell { height: auto; min-height: 100vh; overflow: visible; }
.home-page .navbar { max-width: 1180px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; background: transparent; border: 0; }
.home-main { width: min(1120px, calc(100% - 2.5rem)); margin: 2.5rem auto 0; }
.home-hero { display: grid; grid-template-columns: minmax(280px, .92fr) minmax(285px, 1.05fr) minmax(190px, .58fr); grid-template-rows: auto minmax(275px, 1fr); gap: 1.25rem; align-items: stretch; }
.profile-panel, .latest-panel, .snapshot-panel, .learning-preview-panel, .collections-panel, .utility-card {
  border: 1px solid rgba(255,255,255,.76); box-shadow: 0 16px 38px rgba(111,75,37,.11);
  backdrop-filter: blur(16px);
}
.profile-panel { grid-row: 1 / span 2; min-height: 484px; padding: 2.5rem 2rem; border-radius: 1.5rem; background: rgba(255,250,239,.72); display: flex; flex-direction: column; align-items: flex-start; }
.profile-kicker, .panel-heading p { color: var(--color-brand-dark); font-size: .67rem; font-weight: 800; letter-spacing: .13em; }
.profile-avatar { width: 82px; height: 82px; margin: auto 0 1.25rem; border-radius: 24px; object-fit: cover; box-shadow: 0 8px 18px rgba(165,100,39,.25); }
.profile-panel h1 { font-family: var(--font-averia); font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.06em; line-height: 1; }
.profile-panel h1 span { color: var(--color-brand); }
.profile-intro { margin: 1rem 0 1.25rem; color: var(--color-secondary); font-size: .92rem; line-height: 1.8; }
.profile-socials { display: flex; align-items: center; gap: .52rem; min-height: 2.2rem; }.social-link { display: grid; width: 2.1rem; height: 2.1rem; padding: 0; border: 1px solid rgba(194,122,58,.2); border-radius: .62rem; place-items: center; color: var(--color-brand-dark); background: rgba(255,255,255,.55); cursor: pointer; transition: transform .2s ease, color .2s ease, background .2s ease; }.social-link:hover { color: #fff; background: var(--color-brand); transform: translateY(-3px); }.social-about { font-size: 1.05rem; }.social-zhihu { color: #1677ff; font-family: "Microsoft YaHei", sans-serif; font-size: 1rem; font-weight: 900; }.social-zhihu:hover { background: #1677ff; }.social-xiaohongshu { width: 3.2rem; color: #e34b4b; font-size: .58rem; font-weight: 800; letter-spacing: -.04em; }.social-xiaohongshu:hover { background: #e34b4b; }.social-email { width: 4rem; font: 700 .65rem var(--font-sans); }.copy-feedback { min-width: 4.3rem; color: var(--color-brand-dark); font-size: .67rem; font-weight: 700; }.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ===== 关于页 ===== */
body.about-page { min-height: 100vh; overflow-x: hidden; overflow-y: auto; }.about-page-shell { height: auto; min-height: 100vh; overflow: visible; }.about-wrap { width: min(760px, calc(100% - 2rem)); margin: 7vh auto 0; }.about-card { padding: clamp(1.8rem, 6vw, 3.8rem); border: 1px solid rgba(255,255,255,.8); border-radius: 1.5rem; background: rgba(255,252,245,.68); box-shadow: 0 16px 38px rgba(111,75,37,.11); backdrop-filter: blur(16px); }.about-avatar { width: 76px; height: 76px; margin-bottom: 1.25rem; border-radius: 24px; object-fit: cover; box-shadow: 0 8px 18px rgba(165,100,39,.25); }.about-card h1 { margin: .3rem 0; font-family: var(--font-averia); font-size: clamp(2.1rem, 7vw, 3.1rem); letter-spacing: -.05em; }.about-card h1 span { color: var(--color-brand); }.about-lead { color: var(--color-secondary); font-size: 1rem; }.about-copy { margin-top: 2.2rem; color: var(--color-primary); line-height: 1.9; }.about-copy p + p { margin-top: 1rem; }.about-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }.about-actions a { padding: .45rem .8rem; border: 1px solid rgba(194,122,58,.24); border-radius: 999px; color: var(--color-brand-dark); background: rgba(255,255,255,.55); font-size: .78rem; }.about-actions a:hover { color: #fff; background: var(--color-brand); }
.all-posts-link { display: inline-flex; gap: .75rem; align-items: center; margin-top: auto; padding-top: 2rem; color: var(--color-primary); font-size: .84rem; font-weight: 700; }
.all-posts-link span { display: grid; width: 1.6rem; height: 1.6rem; border-radius: 50%; place-items: center; color: #fff; background: var(--color-brand); transition: transform .2s ease; }
.all-posts-link:hover span { transform: translateX(4px); }

.latest-panel { grid-column: 2; grid-row: 1; padding: 1.25rem; border-radius: 1.25rem; background: rgba(255,255,255,.58); }.snapshot-panel { grid-column: 2; grid-row: 2; padding: 1.25rem 1.4rem; border-radius: 1.25rem; background: rgba(255,250,239,.64); }.calendar-heading { display: flex; align-items: end; justify-content: space-between; gap: .75rem; }.calendar-heading p { color: var(--color-secondary); font-size: .68rem; }.calendar-heading strong { display: block; margin-top: .15rem; color: var(--color-brand-dark); font-size: 1rem; }.calendar-heading time { color: var(--color-brand-dark); font-family: var(--font-averia); font-size: 1.25rem; font-variant-numeric: tabular-nums; }.calendar-date { display: block; margin-top: .22rem; color: #9b896f; font-size: .63rem; }.calendar-week, .site-calendar { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }.calendar-week { margin: .9rem 0 .25rem; color: #a99378; font-size: .6rem; }.site-calendar { gap: .16rem 0; }.calendar-day { display: grid; width: 1.45rem; height: 1.45rem; margin: 0 auto; border-radius: 50%; place-items: center; color: var(--color-secondary); font-size: .65rem; }.calendar-day.new { color: #b14e31; background: #fff0eb; font-weight: 800; }.calendar-day.updated { color: #89501d; background: #fae4c5; font-weight: 800; }.calendar-legend { display: flex; gap: .7rem; margin-top: .85rem; color: var(--color-secondary); font-size: .6rem; }.calendar-legend span { display: inline-flex; align-items: center; gap: .25rem; }.calendar-dot { width: .38rem; height: .38rem; border-radius: 50%; background: #fff0eb; }.calendar-dot.updated { background: #fae4c5; }.learning-preview-panel { grid-column: 3; grid-row: 1 / span 2; min-height: 484px; padding: 1.3rem; border-radius: 1.25rem; background: rgba(255,250,239,.64); }
.panel-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; margin-bottom: 1.15rem; }
.panel-heading h2 { margin-top: .25rem; font-family: var(--font-averia); font-size: 1.65rem; letter-spacing: -.035em; }
.panel-heading a { color: var(--color-brand-dark); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.panel-heading a:hover { text-decoration: underline; }
.recent-list { display: grid; gap: .35rem; }
.recent-post { display: flex; min-width: 0; align-items: center; gap: .55rem; padding: .48rem .6rem; border: 1px solid transparent; border-radius: .65rem; background: rgba(255,252,245,.72); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.recent-post:hover { border-color: rgba(194,122,58,.28); box-shadow: 0 6px 14px rgba(165,100,39,.09); transform: translateX(3px); }
.recent-badge { padding: .14rem .38rem; color: #b14e31; background: #fff0eb; border-radius: 4px; font-size: .63rem; }
.recent-badge.updated { color: #89501d; background: #fae4c5; }
.recent-post h3 { overflow: hidden; margin: 0; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }.recent-loading { padding: 1.2rem 0; color: var(--color-secondary); font-size: .82rem; text-align: center; }
.learning-preview-tree { margin-top: 1.35rem; }.learning-root { display: inline-flex; align-items: center; gap: .4rem; color: var(--color-brand-dark); font-family: var(--font-averia); font-size: 1.05rem; }.learning-root::before { width: .48rem; height: .48rem; border: 2px solid var(--color-brand); border-radius: 50%; content: ''; }.learning-branches { display: grid; gap: .7rem; margin: .85rem 0 0 .22rem; padding: .15rem 0 .2rem 1rem; border-left: 1px solid rgba(194,122,58,.34); }.learning-branches a { position: relative; color: var(--color-secondary); font-size: .72rem; line-height: 1.35; }.learning-branches a::before { position: absolute; top: .7em; left: -1.03rem; width: .72rem; border-top: 1px solid rgba(194,122,58,.34); content: ''; }.learning-branches a:hover { color: var(--color-brand-dark); text-decoration: underline; }

.home-lower { margin-top: 1.25rem; }
.collections-panel { padding: 1.65rem 1.75rem 1.75rem; border-radius: 1.3rem; background: rgba(255,255,255,.5); }
.panel-heading.compact { margin-bottom: 1rem; }
.panel-heading.compact h2 { font-size: 1.35rem; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }.collection-card { min-height: 135px; padding: 1.1rem; border: 1px solid rgba(255,255,255,.78); border-radius: .9rem; transition: transform .2s ease, box-shadow .2s ease; }
.collection-card:hover { box-shadow: 0 10px 22px rgba(90,61,33,.12); transform: translateY(-4px); }
.collection-card span { display: block; margin-bottom: .7rem; font-size: 1.35rem; }
.collection-card strong { display: block; font-size: .9rem; }
.collection-card small { display: block; margin-top: .32rem; color: var(--color-secondary); font-size: .68rem; line-height: 1.35; }
.collection-card.agent { background: #f5ede3; }.collection-card.python { background: #ecf1e1; }.collection-card.tools { background: #f7e6d4; }.collection-card.life { background: #e7f0e5; }

.archive-stats { display: grid; grid-template-columns: auto 1fr; gap: .08rem .45rem; align-items: baseline; }.archive-stats strong { color: var(--color-brand-dark); font-family: var(--font-averia); font-size: 1.3rem; line-height: 1; }.archive-stats span { color: var(--color-secondary); font-size: .68rem; }.archive-stats small { grid-column: 1 / -1; margin-top: .25rem; color: #9b896f; font-size: .62rem; }

/* ===== 首页：左侧是人，中间是内容，右侧是纵向学习地图 ===== */
@media (min-width: 901px) {
  .home-main { width: min(1140px, calc(100% - 3rem)); }
  .home-hero {
    grid-template-columns: minmax(260px, .86fr) minmax(355px, 1.18fr) minmax(178px, .56fr);
    grid-template-rows: minmax(170px, auto) 292px;
    gap: 1.05rem;
  }
  .profile-panel { grid-column: 1; grid-row: 1 / span 2; min-height: 0; }
  .latest-panel { grid-column: 2; grid-row: 1; }
  .snapshot-panel {
    grid-column: 2; grid-row: 2; min-height: 292px; padding: 1.2rem 1.35rem;
  }
  .learning-preview-panel { grid-column: 3; grid-row: 1 / span 2; min-height: 0; }
  .home-lower { margin-top: 1.05rem; }
  .collections-panel { padding: 1.35rem 1.5rem 1.5rem; }
  .collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .collection-card { min-height: 118px; }
}

.calendar-core { position: relative; }
.calendar-edge {
  position: absolute; top: 55%; z-index: 2; display: grid; width: 1.7rem; height: 2.3rem;
  border: 1px solid rgba(194,122,58,.18); border-radius: .85rem; place-items: center;
  color: var(--color-brand-dark); background: rgba(255,255,255,.58); box-shadow: 0 4px 12px rgba(111,75,37,.1);
  cursor: pointer; font: 700 1rem/1 var(--font-sans); opacity: 0;
  transition: opacity .18s ease, transform .18s ease, background .18s ease, color .18s ease;
}
.calendar-edge.previous { left: .1rem; transform: translate(-.25rem, -50%); }
.calendar-edge.next { right: .1rem; transform: translate(.25rem, -50%); }
.calendar-edge:hover, .calendar-edge:focus-visible { color: var(--color-brand-dark); background: rgba(255,255,255,.76); opacity: .88; outline: 0; }
.calendar-edge.previous:hover, .calendar-edge.previous:focus-visible { transform: translate(-.38rem, -50%); }
.calendar-edge.next:hover, .calendar-edge.next:focus-visible { transform: translate(.38rem, -50%); }
.calendar-actions { display: flex; align-items: center; gap: .45rem; }
.calendar-actions button {
  padding: .18rem .42rem; border: 1px solid rgba(194,122,58,.22); border-radius: 999px;
  color: var(--color-brand-dark); background: rgba(255,255,255,.48); cursor: pointer;
  font: 700 .6rem/1 var(--font-sans); transition: background .18s ease, color .18s ease;
}
.calendar-actions button:hover { color: #fff; background: var(--color-brand); }
.calendar-dot.new { background: #df5537; }
.calendar-dot.updated { border-radius: 1px; background: #4a83a8; transform: rotate(45deg); }
.site-calendar { min-height: calc(6 * 1.45rem + .8rem); align-content: start; }
.calendar-day { position: relative; background: transparent !important; font-weight: 400; }
.calendar-day.new, .calendar-day.updated { color: var(--color-secondary); }
.calendar-day.new::after, .calendar-day.updated::before {
  position: absolute; top: .08rem; width: .28rem; height: .28rem; border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%; content: '';
}
.calendar-day.new::after { right: .05rem; background: #df5537; }
.calendar-day.updated::before { right: .05rem; border-radius: 1px; background: #4a83a8; transform: rotate(45deg); }
.calendar-day.new.updated::before { right: .39rem; }
.calendar-day.today { outline: 1px solid var(--color-brand-dark); outline-offset: 1px; }
/* ===== 知识地图 ===== */
body.maps-page { min-height: 100vh; overflow-x: hidden; overflow-y: auto; }.maps-page-shell { height: auto; min-height: 100vh; overflow: visible; }.maps-wrap { width: min(1000px, calc(100% - 2rem)); margin: 7vh auto 0; }.maps-heading { max-width: 580px; margin-bottom: 2rem; }.maps-heading h1 { margin: .3rem 0 .6rem; font-family: var(--font-averia); font-size: clamp(2.3rem, 7vw, 3.6rem); letter-spacing: -.06em; }.maps-heading h1 span { color: var(--color-brand); }.maps-heading > p:last-child { color: var(--color-secondary); line-height: 1.7; }.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }.map-card { min-height: 290px; padding: 1.7rem; border: 1px solid rgba(255,255,255,.8); border-radius: 1.3rem; background: rgba(255,252,245,.68); box-shadow: 0 16px 38px rgba(111,75,37,.11); backdrop-filter: blur(16px); }.map-card-heading { display: flex; gap: .75rem; align-items: center; }.map-card-heading > span { font-size: 1.8rem; }.map-card-heading p { color: var(--color-brand-dark); font-size: .62rem; font-weight: 800; letter-spacing: .1em; }.map-card-heading h2 { margin-top: .15rem; font-size: 1.2rem; }.map-tree, .map-tree ul { margin: 1.4rem 0 0; padding-left: 1rem; list-style: none; }.map-tree > li { position: relative; color: var(--color-brand-dark); font-size: .9rem; font-weight: 800; }.map-tree > li::before { position: absolute; top: .35em; left: -.9rem; width: .48rem; height: .48rem; border: 2px solid var(--color-brand); border-radius: 50%; content: ''; }.map-tree ul { margin-top: .45rem; border-left: 1px solid rgba(194,122,58,.28); }.map-tree ul li { position: relative; margin: .48rem 0; color: var(--color-secondary); font-size: .8rem; font-weight: 400; }.map-tree ul li::before { position: absolute; top: .7em; left: -.99rem; width: .82rem; border-top: 1px solid rgba(194,122,58,.28); content: ''; }.map-tree a:hover { color: var(--color-brand-dark); text-decoration: underline; }.map-card-empty { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; border-style: dashed; background: rgba(255,255,255,.37); }.map-card-empty > span { display: grid; width: 2rem; height: 2rem; border-radius: 50%; place-items: center; color: var(--color-brand-dark); background: var(--color-bg-soft); font-size: 1.3rem; }.map-card-empty h2 { margin: .85rem 0 .35rem; font-size: 1rem; }.map-card-empty p { color: var(--color-secondary); font-size: .82rem; line-height: 1.65; }
.map-description { margin: 1rem 0 -0.45rem; color: var(--color-secondary); font-size: .8rem; line-height: 1.55; }
.home-footer { display: flex; justify-content: center; gap: .35rem; padding: 2rem 1rem 1.5rem; color: var(--color-secondary); font-size: .72rem; }.home-footer a { color: #9a8262; }.home-footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .home-page .navbar { position: relative; }.home-main { width: min(100% - 2rem, 600px); margin-top: 1rem; }
  .home-hero { grid-template-columns: 1fr; grid-template-rows: auto; }.profile-panel, .latest-panel, .snapshot-panel, .learning-preview-panel { grid-column: auto; grid-row: auto; min-height: 0; }.profile-panel { padding: 1.75rem; }.profile-avatar { margin-top: 2rem; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .map-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) {
  .article-toc { position: fixed; top: 5.5rem; left: calc(50% + 286px); width: 190px; }
}
@media (max-width: 480px) {
  .home-page .navbar { padding-top: .8rem; padding-bottom: .8rem; }.home-page .nav-links { gap: .9rem; }.home-page .nav-links li:last-child { display: none; }
  .profile-intro br { display: none; }.latest-panel, .collections-panel { padding: 1.25rem; }.collection-grid { grid-template-columns: 1fr; }
}
