/* ========== Pixie 风格：深色霓虹 ========== */
:root {
  --bg: #2f2f2f;
  --card: rgba(38, 38, 38, 0.92);
  --card-solid: #262626;
  --line: #3d3d3d;
  --text: #e8e8e8;
  --muted: #a0a0a0;
  --orange: #f39c12;
  --orange-2: #ff9a4d;
  --teal: #1fd1b5;
  --cyan: #22d3c5;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Source Code Pro", Consolas, Monaco, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.8 var(--font);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
::selection { background: var(--orange); color: #111; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #4a4a4a; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.wrap {
  position: relative; z-index: 1; display: flex; gap: 22px; align-items: flex-start;
  max-width: 1440px; margin: 0 auto; padding: 16px;
}

/* ========== 左栏 ========== */
.side-card {
  width: 330px; flex-shrink: 0; position: sticky; top: 16px; max-height: calc(100vh - 32px);
  overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 22px 24px; text-align: center; backdrop-filter: blur(2px);
}
.avatar { display: inline-block; width: 140px; height: 140px; border-radius: 50%; padding: 10px;
  background: #1e1e1e; box-shadow: 0 0 0 1px #333, 0 6px 18px rgba(0,0,0,.5); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.3,1.4,.5,1); }
.avatar:hover img { transform: rotateY(360deg); }
.author { margin: 14px 0 0; font: 400 38px/1.2 Georgia, "Times New Roman", serif; color: #d8d8d8; letter-spacing: .5px; }
.subtitle { margin: 8px 0 18px; color: var(--teal); font-weight: 700; font-size: 17px; }
.menu { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px; }
.menu a { width: 190px; padding: 3px 0; border-radius: 10px; background: #1f1f1f; color: #ddd;
  box-shadow: 0 3px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04); transition: .2s; }
.menu a:hover, .menu a.active { color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 0 14px rgba(31,209,181,.35); }
.side-block { margin: 18px 0; }
.side-title { margin: 0 0 12px; color: var(--teal); font-size: 16px; }
.projects { list-style: none; padding: 0; margin: 0; }
.projects li { line-height: 1.9; }
.projects a { color: #ddd; transition: color .2s; }
.projects a:hover { color: var(--orange); }
.social { display: flex; justify-content: center; gap: 16px; font-size: 22px; margin-top: 14px; }
.social a { color: #bbb; transition: .2s; }
.social a:hover { color: var(--teal); text-shadow: 0 0 10px var(--teal); }

/* 标签云：吊牌样式 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: flex-start; padding: 0 6px; }
.tag-chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 22px;
  padding: 0 8px 0 16px; margin-left: 8px; font-size: 13px; line-height: 22px; color: #fff;
  border-radius: 0 4px 4px 0; background: var(--c, #e2894e); transition: transform .15s, filter .15s;
}
.tag-chip::before { content: ""; position: absolute; left: -8px; top: 0; border: 11px solid transparent;
  border-left-width: 0; border-right: 8px solid var(--c, #e2894e); }
.tag-chip::after { content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 2px rgba(0,0,0,.4); }
.tag-chip:hover, .tag-chip.active { transform: translateY(-2px); filter: brightness(1.15); color: #fff; }
.tag-chip .num { background: rgba(0,0,0,.35); border-radius: 8px; padding: 0 6px; font-size: 11px; line-height: 16px; }
.c1 { --c: #d9773f; } .c2 { --c: #d4a49a; } .c3 { --c: #a9825f; } .c4 { --c: #b799a9; } .c5 { --c: #7b5a52; }

/* 分类列表 */
.cat-list, .cat-sub { list-style: none; margin: 0; padding: 0; text-align: left; }
.cat-list { padding: 0 6px; }
.cat-page { max-width: 520px; padding: 6px 0 4px; }
.cat-page .cat-item { font-size: 16px; padding: 7px 12px; }
.page-title a { color: inherit; } .page-title a:hover { color: var(--teal); }
.cat-sub { margin-left: 14px; padding-left: 8px; border-left: 1px dashed #4a4a4a; }
.cat-item { display: flex; align-items: center; gap: 8px; padding: 4px 10px; margin: 2px 0; border-radius: 8px;
  color: #ddd; font-size: 14px; transition: .2s; }
.cat-item i { color: var(--orange); width: 16px; text-align: center; font-size: 13px; }
.cat-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-num { min-width: 22px; padding: 0 7px; border-radius: 9px; background: #1c1c1c; border: 1px solid #444;
  color: var(--teal); font-size: 11px; line-height: 18px; text-align: center; }
.cat-item:hover { background: #1f1f1f; color: var(--teal); box-shadow: 0 0 0 1px rgba(31,209,181,.5), 0 0 10px rgba(31,209,181,.2); }
.cat-item.active { background: rgba(243,156,18,.12); color: var(--orange); box-shadow: 0 0 0 1px rgba(243,156,18,.6); }
.cat-item.open { color: var(--teal); }
.cat-empty { color: #888; font-size: 13px; text-align: center; }
.post-cat { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 4px;
  border: 1px solid var(--teal); color: var(--teal); font-size: 13px; line-height: 22px; transition: .2s; }
.post-cat:hover { background: var(--teal); color: #111; }
.post-meta a { color: #ccc; } .post-meta a:hover { color: var(--teal); }

/* ========== 右栏 ========== */
.main { flex: 1; min-width: 0; }

/* 搜索 */
.search-bar {
  position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; gap: 10px; height: 56px;
  padding: 0 18px; margin-bottom: 26px; border-radius: 28px; background: rgba(36,36,36,.95);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow .3s, border-color .3s;
}
.search-bar > i { color: var(--teal); font-size: 18px; }
.search-bar:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,209,181,.15), 0 0 24px rgba(31,209,181,.35); animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 3px rgba(31,209,181,.25), 0 0 34px rgba(31,209,181,.5); } }
#searchInput { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 16px var(--font); }
#searchInput::-webkit-search-cancel-button { display: none; }
.search-clear { display: none; background: none; border: 0; color: #aaa; font-size: 18px; cursor: pointer; }
.search-bar.has-text .search-clear { display: block; }
.search-results {
  display: none; position: absolute; left: 0; right: 0; top: 62px; max-height: 70vh; overflow-y: auto;
  background: #1c1c1c; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.search-results.open { display: block; }
.sr-item { display: block; padding: 10px 20px; color: var(--text); border-bottom: 1px solid #2c2c2c; }
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover, .sr-item.sel { background: #262626; }
.sr-title { font-size: 15px; }
.sr-excerpt { font-size: 13px; color: #bbb; line-height: 1.6; }
.sr-tags { font-size: 12px; color: var(--teal); font-weight: 700; }
.sr-empty { padding: 14px 20px; color: var(--muted); }
mark { background: var(--orange); color: #111; border-radius: 3px; padding: 0 2px; }

/* 卡片 */
.post-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 32px 22px; margin-bottom: 28px; overflow: hidden;
}
.post-card::before { content: ""; position: absolute; left: 0; top: 18px; width: 4px; height: 70px;
  background: var(--orange); border-radius: 0 4px 4px 0; box-shadow: 0 0 12px var(--orange); }
.glow-in { opacity: 0; transform: translateY(24px); }
.glow-in.visible { animation: glowIn .7s ease forwards; }
@keyframes glowIn {
  0% { opacity: 0; transform: translateY(24px); box-shadow: 0 0 0 rgba(31,209,181,0); }
  60% { opacity: 1; transform: none; box-shadow: 0 0 28px rgba(31,209,181,.35), var(--shadow); }
  100% { opacity: 1; transform: none; box-shadow: var(--shadow); }
}
.post-head { display: flex; align-items: flex-start; gap: 16px; }
.post-title { flex: 1; margin: 0; font-size: 27px; font-weight: 400; line-height: 1.4; color: var(--orange); }
.post-title a { color: inherit; transition: text-shadow .2s; }
.post-title a:hover { text-shadow: 0 0 12px rgba(243,156,18,.6); }
.post-date { color: var(--cyan); font-size: 15px; white-space: nowrap; padding-top: 8px; }
.post-date i { margin-right: 6px; }
.post-excerpt { margin-top: 14px; }
.post-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  border-top: 1px solid #444; margin-top: 18px; padding-top: 22px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.read-more { background: #4a4a4a; color: #eee; padding: 2px 10px; border-radius: 3px; font-size: 14px; white-space: nowrap; transition: .2s; }
.read-more:hover { background: var(--teal); color: #111; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 10px; margin: 6px 0 30px; }
.pager a, .pager span { min-width: 38px; padding: 4px 12px; border-radius: 10px; background: var(--card);
  border: 1px solid var(--line); color: #ddd; text-align: center; }
.pager .cur { color: #111; background: var(--teal); border-color: var(--teal); }
.pager a:hover { border-color: var(--teal); color: var(--teal); }

/* 归档 */
.page-title { margin: 0 0 6px; color: var(--orange); font-weight: 400; font-size: 26px; }
.page-sub { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.archive-year { color: var(--teal); font-size: 20px; margin: 22px 0 8px; }
.archive-list { list-style: none; padding: 0; margin: 0; border-left: 2px solid #444; }
.archive-list li { position: relative; padding: 6px 0 6px 20px; display: flex; gap: 16px; }
.archive-list li::before { content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px;
  border-radius: 50%; background: #2a2a2a; border: 2px solid var(--orange); transition: .2s; }
.archive-list li:hover::before { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.archive-list time { color: var(--cyan); font-family: var(--mono); font-size: 14px; white-space: nowrap; padding-top: 2px; }
.archive-list a { color: #e4e4e4; }
.archive-list a:hover { color: var(--orange); }

/* 文章页 */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin: 10px 0 4px; }
.post-meta i { color: var(--teal); margin-right: 5px; }
.post-full .post-tags { margin: 14px 0 6px; }
.post-body { margin-top: 18px; padding-top: 14px; border-top: 1px solid #444; }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.toc-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: var(--teal); font-weight: 700; user-select: none; }
.toc-head i { transition: transform .2s; }
.toc.collapsed .toc-head i { transform: rotate(-90deg); }
.toc.collapsed .toc-list { display: none; }
.toc-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: calc(100vh - 200px); overflow-y: auto; font-size: 14px; }
.toc-list a { display: block; padding: 3px 8px; color: #bbb; border-left: 2px solid transparent; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-list a:hover { color: var(--text); }
.toc-list a.active { color: var(--orange); border-left-color: var(--orange); background: rgba(243,156,18,.08); }
.toc-list .lv3 a { padding-left: 22px; } .toc-list .lv4 a { padding-left: 36px; font-size: 13px; }
@media (min-width: 1280px) {
  .post-layout.has-toc { grid-template-columns: minmax(0, 1fr) 240px; }
  .post-layout.has-toc .toc { position: sticky; top: 84px; order: 2; }
}

.copyright-card { margin-top: 30px; padding: 16px 20px; border-radius: 12px; background: #1e1e1e;
  border-left: 4px solid var(--teal); font-size: 14px; line-height: 1.9; position: relative; }
.copyright-card b { color: var(--teal); font-weight: 600; margin-right: 6px; }
.copyright-card a { word-break: break-all; }
.copy-link-btn { position: absolute; right: 14px; top: 14px; background: #333; color: #ddd; border: 1px solid #444;
  border-radius: 8px; padding: 3px 10px; cursor: pointer; font: 13px var(--font); transition: .2s; }
.copy-link-btn:hover { border-color: var(--teal); color: var(--teal); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; font-size: 14px; }
.post-nav a { color: #ccc; max-width: 48%; } .post-nav a:hover { color: var(--orange); }

/* ========== Markdown 正文 ========== */
.markdown { font-size: 16px; line-height: 1.85; word-wrap: break-word; }
.markdown > :first-child { margin-top: 0; }
.markdown p { margin: .7em 0; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { color: #f0f0f0; line-height: 1.4; margin: 1.6em 0 .7em; scroll-margin-top: 90px; }
.markdown h2 { font-size: 1.45em; padding-left: 12px; border-left: 4px solid var(--teal); }
.markdown h3 { font-size: 1.2em; color: var(--orange-2); }
.markdown a { color: var(--teal); border-bottom: 1px dashed rgba(31,209,181,.5); }
.markdown a:hover { color: var(--orange); border-color: var(--orange); }
.markdown strong { color: #fff; }
.markdown img { max-width: 100%; border-radius: 10px; display: block; margin: 12px auto; }
.markdown :not(pre) > code { background: #1b1b1b; border: 1px solid #444; color: #e6e6e6; padding: 1px 6px;
  border-radius: 4px; font: .88em var(--mono); }
.markdown blockquote { margin: 1em 0; padding: 6px 16px; color: #bbb; background: rgba(255,255,255,.03);
  border-left: 4px solid var(--orange); border-radius: 0 8px 8px 0; }
.markdown ul, .markdown ol { padding-left: 1.6em; }
.markdown li::marker { color: var(--teal); }
.markdown hr { border: 0; border-top: 1px dashed #555; margin: 2em 0; }
.markdown table { display: block; overflow-x: auto; border-collapse: collapse; margin: 1em 0; max-width: 100%; }
.markdown th, .markdown td { border: 1px solid #444; padding: 6px 14px; }
.markdown th { background: #1f1f1f; color: var(--teal); }
.markdown input[type=checkbox] { accent-color: var(--teal); }

/* 代码块（Dracula） */
.code-block { margin: 1.1em 0; border-radius: 10px; overflow: hidden; background: #282a36; border: 1px solid #3a3c4e; }
.code-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; background: #21222c;
  font: 12px var(--mono); color: #6272a4; }
.code-bar .dots { display: flex; gap: 6px; margin-right: 6px; }
.code-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: #ff5555; }
.code-bar .dots span:nth-child(2) { background: #f1fa8c; } .code-bar .dots span:nth-child(3) { background: #50fa7b; }
.code-bar .lang { text-transform: uppercase; flex: 1; }
.code-bar button { background: #343746; color: #bbb; border: 0; border-radius: 4px; padding: 2px 8px;
  font: 12px var(--font); cursor: pointer; transition: .15s; }
.code-bar button:hover { background: #bd93f9; color: #111; }
.code-block pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.code-block pre code { font: 14px/1.65 var(--mono); color: #f8f8f2; background: none; }
.code-block.folded pre { display: none; }
.hljs-comment, .hljs-quote { color: #6272a4; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-meta, .hljs-name, .hljs-tag { color: #ff79c6; }
.hljs-string, .hljs-regexp, .hljs-addition { color: #f1fa8c; }
.hljs-number, .hljs-literal, .hljs-symbol { color: #bd93f9; }
.hljs-title, .hljs-section, .hljs-attr, .hljs-attribute, .hljs-selector-id, .hljs-selector-class { color: #50fa7b; }
.hljs-built_in, .hljs-type, .hljs-class .hljs-title { color: #8be9fd; }
.hljs-params, .hljs-variable, .hljs-template-variable, .hljs-bullet { color: #ffb86c; }
.hljs-deletion { color: #ff5555; } .hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: 700; }

/* 404 / 加载 / 空 */
.loading, .empty-tip { text-align: center; color: var(--muted); padding: 60px 0; }
.nf { text-align: center; padding: 70px 20px 60px; }
.nf h1 { margin: 0; font: 700 140px/1 var(--mono); color: var(--orange);
  text-shadow: 0 0 10px var(--orange), 0 0 40px rgba(243,156,18,.6), 0 0 80px rgba(31,209,181,.35); animation: flicker 3s infinite; }
@keyframes flicker { 0%, 19%, 21%, 23%, 54%, 56%, 100% { opacity: 1; } 20%, 22%, 55% { opacity: .55; } }
.nf p { color: #bbb; margin: 18px 0 26px; }
.btn-neon { display: inline-block; padding: 8px 26px; border-radius: 22px; border: 1px solid var(--teal); color: var(--teal);
  box-shadow: 0 0 12px rgba(31,209,181,.35); transition: .2s; }
.btn-neon:hover { background: var(--teal); color: #111; }

.site-footer { text-align: center; color: #888; font-size: 13px; padding: 10px 0 30px; }

/* 浮动按钮 */
.back-top { position: fixed; right: 26px; bottom: 30px; z-index: 30; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--teal); background: rgba(30,30,30,.9); color: var(--teal); font-size: 17px; cursor: pointer;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: .3s; box-shadow: 0 0 12px rgba(31,209,181,.3); }
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: var(--teal); color: #111; }
.toast { position: fixed; left: 50%; bottom: 40px; z-index: 100; transform: translate(-50%, 20px); opacity: 0;
  background: #1c1c1c; color: var(--teal); border: 1px solid var(--teal); padding: 8px 18px; border-radius: 10px;
  pointer-events: none; transition: .25s; box-shadow: 0 0 16px rgba(31,209,181,.3); font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.llm-prompt { position: absolute; left: -99999px; width: 1px; height: 1px; overflow: hidden; }

/* 移动端抽屉 */
.drawer-btn, .drawer-mask, .drawer { display: none; }

/* ========== 移动端 ========== */
@media (max-width: 900px) {
  body { font-size: 15px; line-height: 1.75; }
  .wrap { flex-direction: column; gap: 14px; padding: 10px; }
  .side-card { position: static; width: 100%; max-height: none; padding: 20px 16px 14px; }
  .side-card .tags-block, .side-card .projects-block { display: none; }
  .avatar { width: 96px; height: 96px; padding: 6px; }
  .author { font-size: 30px; margin-top: 8px; }
  .subtitle { margin: 4px 0 12px; font-size: 15px; }
  .menu { flex-direction: row; justify-content: center; margin-bottom: 4px; }
  .menu a { width: auto; padding: 3px 18px; }
  .social { margin-top: 10px; font-size: 20px; }
  .search-bar { top: 8px; height: 50px; margin-bottom: 16px; }
  #searchInput { font-size: 16px; } /* iOS 防缩放 */
  .post-card { padding: 20px 18px 16px; border-radius: 16px; margin-bottom: 18px; }
  .post-head { flex-direction: column; gap: 4px; }
  .post-title { font-size: 21px; }
  .post-date { padding-top: 0; font-size: 13px; }
  .markdown { font-size: 15px; line-height: 1.75; }
  .code-block pre code { font-size: 13px; }
  .nf h1 { font-size: 96px; }
  .back-top { right: 16px; bottom: 20px; }
  .copy-link-btn { position: static; margin-top: 8px; }

  .drawer-btn { display: flex; align-items: center; justify-content: center; position: fixed; left: 16px; bottom: 20px; z-index: 30;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--orange); background: rgba(30,30,30,.92);
    color: var(--orange); font-size: 18px; box-shadow: 0 0 14px rgba(243,156,18,.35); cursor: pointer; }
  .drawer-mask { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: .25s; }
  .drawer { display: block; position: fixed; left: 0; top: 0; bottom: 0; z-index: 41; width: 280px; max-width: 85vw; overflow-y: auto;
    background: #1e1e1e; border-right: 1px solid var(--line); padding: 50px 18px 24px; transform: translateX(-100%); transition: transform .28s ease; text-align: center; }
  body.drawer-open .drawer { transform: none; }
  body.drawer-open .drawer-mask { opacity: 1; pointer-events: auto; }
  body.drawer-open { overflow: hidden; }
  .drawer-close { position: absolute; right: 12px; top: 10px; background: none; border: 0; color: #bbb; font-size: 22px; cursor: pointer; }
}

/* ---------- 目录树 ---------- */
.tree-box { max-width: 640px; padding: 6px 0 4px; text-align: left; }
.tree { list-style: none; margin: 0; padding: 0; }
.tree .tree { margin-left: 11px; padding-left: 14px; border-left: 1px dashed #4a4a4a; }
.tree li { position: relative; }
.tree .tree > li::before { content: ''; position: absolute; left: -14px; top: 17px; width: 10px; border-top: 1px dashed #4a4a4a; }
.tree summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 2px 0;
  border-radius: 8px; cursor: pointer; user-select: none; transition: background .2s, box-shadow .2s; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary:hover { background: #1f1f1f; box-shadow: 0 0 0 1px rgba(31,209,181,.4); }
.tree-caret { width: 12px; font-size: 11px; color: #888; transition: transform .2s; }
.tree details[open] > summary .tree-caret { transform: rotate(90deg); color: var(--teal); }
.tree-ico { width: 16px; text-align: center; font-size: 14px; }
.tree-dir .tree-ico { color: var(--orange); }
.tree details[open] > summary .fa-folder::before { content: "\f07c"; }
.tree-name { flex: 1; color: #eee; font-weight: 600; }
.tree-name:hover { color: var(--teal); }
.tree-file a { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 30px; margin: 1px 0; border-radius: 8px; color: #ccc; }
.tree-file .tree-ico { color: var(--teal); }
.tree-file a:hover { background: #1f1f1f; color: var(--teal); }
.tree-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-date { color: #777; font-size: 12px; font-family: var(--mono, monospace); }
@media (max-width: 600px) { .tree-date { display: none; } .tree .tree { margin-left: 6px; padding-left: 10px; } }
