/* ============================================================
   Nu0vo1212の小窝 · 极简版 UI（全量重制）
   布局：左上角三条杠 → 左侧抽屉（背景图头 + 头像 + 站名 + quote，
         下半深浅色自适应栏目区：首页/技术/生活/日常/关于我）
   首页：黑色大字标语 + 双列卡片网格（新→老，从左到右/上到下）
   卡片：无图→大字标题+正文两行省略号；悬停只加深阴影，不上移
   硬约束：模糊度固定 0px（--card-blur 永远 0px，blur 只走它）
   背景：/bgimg 顺序轮询，不透明当壁纸
   ============================================================ */
:root {
  /* Bilibili 粉（标题色） */
  --bili-pink: #fb7299;
  /* 前景文字（固定壁纸偏暗，用亮色前景） */
  --fg: #f5f7fb;            /* 主文字 */
  --fg-2: rgba(245,247,251,0.70);
  --fg-3: rgba(245,247,251,0.46);
  --card-bg: rgba(255,255,255,0.16);   /* 半透明毛玻璃 */
  --card-border: rgba(255,255,255,0.22);
  --card-shadow: 0 6px 22px rgba(0,0,0,0.22);
  --card-shadow-hover: 0 16px 44px rgba(0,0,0,0.40);
  --accent: var(--bili-pink);
  --ease: cubic-bezier(.4,0,.2,1);
  --radius: 3px;          /* 圆角更方 */
  --radius-sm: 2px;
  --maxw: 1080px;
  --drawer-w: 300px;
  --card-blur: 14px;       /* 毛玻璃带一点模糊（保证文字可读） */
  /* 主题底色（深浅切换时整屏渐变） */
  --body-bg: #101524;
  --veil-top: rgba(10,14,24,0.30);
  --veil-bottom: rgba(10,14,24,0.55);
}

/* 深色模式（点抽屉右上月光按钮切换，localStorage 持久） */
body.dark {
  --fg: #fff;
  --fg-2: rgba(255,255,255,0.78);
  --fg-3: rgba(255,255,255,0.5);
  --card-bg: rgba(10,14,24,0.52);
  --card-border: rgba(255,255,255,0.14);
  --card-shadow: 0 6px 22px rgba(0,0,0,0.42);
  --card-shadow-hover: 0 16px 44px rgba(0,0,0,0.6);
  --veil: rgba(8,10,18,0.55);
  --veil-2: rgba(8,10,18,0.75);
  --body-bg: #05070d;
  --veil-top: rgba(4,6,12,0.42);
  --veil-bottom: rgba(4,6,12,0.66);
}

/* 深浅色切换：卡片/毛玻璃 0.45s 平滑过渡 */
.card, .post-card, .article, .toc, .archive-item, .about, .drawer, .nav-btn, .theme-toggle, .back-btn {
  transition:
    background-color .45s var(--ease),
    border-color .45s var(--ease),
    box-shadow .45s var(--ease),
    color .45s var(--ease),
    filter .45s var(--ease);
}
/* 整屏色调平滑渐变：body 底色 + 背景纱 + 全局文字 */
body, #bgVeil {
  transition: background .5s var(--ease), background-color .5s var(--ease),
              color .5s var(--ease);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--body-bg);
  color: var(--fg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===== 背景层：固定壁纸（https://118.178.189.143/bg-full.webp）1920×1080 全屏铺满 ===== */
#bgImage {
  position: fixed; inset: 0; z-index: -3;
  background: url(https://118.178.189.143/bg-full.webp) center/cover no-repeat;
}
#bgVeil {
  position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(180deg, var(--veil-top), var(--veil-bottom));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease);
}
/* 主题切换过渡层：覆盖全屏，opacity 过渡模拟深色渐变 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: rgba(0,0,0,0);
  transition: background .5s var(--ease);
  pointer-events: none;
}
body.dark::before {
  background: rgba(0,0,0,0.38);
}
body:not(.bg-ready) .app { visibility: hidden; }
#bootScreen {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: #101524;
  transition: opacity .5s var(--ease), visibility .5s;
}
#bootScreen.done { opacity: 0; visibility: hidden; }
#bootScreen .spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 三条杠按钮（左上角，置顶，透明无底；仅图标可点，无 hover 效果）===== */
.menu-btn {
  /* 与顶栏条同高：三杠 + 站名在条子里自动垂直居中 */
  position: fixed; top: 0; left: 18px; z-index: 40;
  height: 56px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--fg); cursor: default;
  pointer-events: none;            /* 只有图标可点，整条不拦截下方点击 */
  transition: color .35s var(--ease);
}
.menu-btn .mb-icon {
  width: 32px; height: 32px; display: block;
  cursor: pointer; /* 只有图标本身可点 */
  pointer-events: auto;
}
.menu-btn .mb-name {
  font-size: 17px; font-weight: 700; letter-spacing: .01em;
  color: var(--fg);
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
  transition: color .35s var(--ease), text-shadow .35s var(--ease);
  pointer-events: none; user-select: none; /* 站名只展示、不可点 */
}
.menu-btn:hover,
.menu-btn:active,
body.menu-open .menu-btn { background: transparent; }

/* ===== 左侧抽屉 ===== */
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--drawer-w); z-index: 45;
  display: flex; flex-direction: column;
  transform: translateX(-102%);
  transition: transform .34s var(--ease);
  background: var(--card-bg);
  backdrop-filter: blur(var(--card-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--card-blur)) saturate(140%);
  border-right: 1px solid var(--card-border);
  box-shadow: 0 0 60px rgba(0,0,0,0.28);
  overflow: hidden;
}
body.menu-open .drawer { transform: translateX(0); }

/* 上半：与背景同一张图 + 圆形头像 + 站名 + 暗字 quote */
.drawer-head {
  position: relative;
  height: 300px;
  flex: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  overflow: hidden;
}
.drawer-bg {
  position: absolute; inset: 0;
  background: url(https://118.178.189.143/bg-wallpaper.webp) center/cover no-repeat;
  z-index: 0;
}
.drawer-bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,0.34);
}
.drawer-head > *:not(.drawer-bg) { position: relative; z-index: 1; }
.drawer-avatar {
  width: 86px; height: 86px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.85);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  background: #2a2f3a;
}
.drawer-name {
  font-size: 19px; font-weight: 700; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  letter-spacing: .01em;
}
.drawer-quote {
  font-size: 13px; color: rgba(255,255,255,0.66);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  font-weight: 500;
}

/* 点击左侧栏外任意位置关闭：透明遮罩层（不变暗背景） */
.drawer-mask {
  position: fixed; inset: 0; z-index: 44;
  background: transparent;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
body.menu-open .drawer-mask { opacity: 1; pointer-events: auto; }

/* 深浅色切换：单 SVG，定位在原关闭叉叉处（抽屉右上角） */
.theme-toggle {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  color: #fff; cursor: pointer;
  transition: background .25s var(--ease), transform .3s var(--ease);
}
.theme-toggle:hover { background: rgba(255,255,255,0.34); transform: scale(1.06); }
.theme-toggle:active { transform: scale(0.94); }

/* ===== 主题图标：太阳 ⇄ 月亮 =====
   形变完全交给 morphicons（见 js/morphicons.min.js 与 layout.ejs 里的注释）。
   它只干一件事：改写 svg 中那条 path 的 d 属性，在两个形状之间按弹簧曲线插值
   （sun ⇄ moon 的旋转角度与形变都是从两个形状本身解出来的，不是手写关键帧）。
   所以 CSS 这边不用管动画，只负责尺寸与描边的一致性 —— 描边属性在 svg 标签上。
   首屏的静止形态是 layout.ejs 里写死的 d（构建时用 canonicalD(Sun) 生成），
   所以在 JS 加载之前的任何时刻看到的都是标准太阳，不闪、不跳。 */
.theme-toggle .ti { width: 19px; height: 19px; overflow: visible; }
/* hover 提示（自定义 tooltip） */
.theme-toggle::after {
  content: attr(title);
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: rgba(15,18,26,0.92); color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px;
  white-space: nowrap;
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.theme-toggle:hover::after {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

/* 下半：栏目按钮区（深浅色自适应） */
.drawer-nav {
  flex: 1; padding: 18px 14px 10px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.nav-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  color: var(--fg-2); text-decoration: none;
  font-size: 15px; font-weight: 540;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.nav-btn:hover { background: rgba(127,127,127,0.14); color: var(--fg); transform: translateX(4px); }
.nav-btn.active { background: rgba(127,127,127,0.18); color: var(--fg); font-weight: 650; }
.nav-ico { width: 21px; height: 21px; flex: none; opacity: .9; transition: transform .25s var(--ease); }
.nav-btn:hover .nav-ico { transform: scale(1.12); }
.nav-btn span { letter-spacing: .02em; }

/* ===== 主内容 ===== */
.app { position: relative; z-index: 1; min-height: 100vh; padding: 96px clamp(16px, 5vw, 48px) 0; }
.shell { max-width: var(--maxw); margin: 0 auto; }
.content { display: flex; flex-direction: column; gap: 26px; }

/* ===== 首页 ===== */
.home-hero { text-align: center; padding: 8px 0 6px; }
.home-hero h1 {
  font-size: clamp(30px, 5.5vw, 48px);
  font-weight: 800; margin: 0; line-height: 1.2;
  letter-spacing: -.01em; color: #ffffff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.25);
  animation: heroIn .7s var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(12px); letter-spacing: .04em; }
  to   { opacity: 1; transform: none; letter-spacing: -.01em; }
}

/* 卡片瀑布流：双列，卡片各按自身高度；下一条自动补到较短那列，不留空档 */
.post-grid {
  columns: 2;
  column-gap: 20px;
  padding: 8px 0 4px;
}

.post-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(var(--card-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--card-blur)) saturate(140%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 22px 24px;
  cursor: pointer;
  display: flex; flex-direction: column;
  min-height: 150px;
  /* 卡片间距：有封面的卡片高度不一，靠这两处留白把上下两张分开。
     注意 overflow:hidden 是兜底——封面用负 margin 顶满内边，
     一旦 padding 与负 margin 不匹配，溢出部分会盖住上面那张卡片。 */
  overflow: hidden;
  break-inside: avoid;           /* 卡片不被拆断到两列 */
  margin-bottom: 20px;           /* 列内纵向间距（上下卡片之间的留白）*/
  transition: box-shadow .3s var(--ease), transform .3s var(--ease),
              background-color .45s var(--ease), border-color .45s var(--ease),
              color .45s var(--ease);
  /* 进场动画：渐显上浮（仅当 body 带 ready 时触发，避免首屏闪烁） */
}
.post-card.ready {
  opacity: 0; transform: translateY(18px);
  animation: cardIn .55s var(--ease) forwards;
}
.post-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

/* 卡片交错进场延迟（按序渐次浮现） */
.post-card:nth-child(1) { animation-delay: .05s; }
.post-card:nth-child(2) { animation-delay: .12s; }
.post-card:nth-child(3) { animation-delay: .19s; }
.post-card:nth-child(4) { animation-delay: .26s; }
.post-card:nth-child(5) { animation-delay: .33s; }
.post-card:nth-child(6) { animation-delay: .40s; }

/* ===== 主内容 ===== */
.pc-title {
  font-size: 20px; font-weight: 700; margin: 0 0 10px;
  color: var(--bili-pink); letter-spacing: -.01em; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-title a { color: inherit; text-decoration: none; }
.pc-title a:hover { opacity: .85; }
.pc-excerpt {
  color: var(--fg-2); font-size: 14px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.6;
}
.pc-meta { margin-top: auto; padding-top: 14px; color: var(--fg-3); font-size: 12px; font-weight: 500; }

.pc-cover {
  /* 卡片封面：按原比例完整显示（不裁切），宽度补 48px 以顶满卡片内边 */
  width: calc(100% + 48px); height: auto;
  object-fit: contain; object-position: center;
  border-radius: var(--radius) var(--radius) 10px 10px;
  margin: -22px -24px 16px;
  display: block;
}
/* 有封面的卡片：保持 padding-top:22px（不覆盖），让封面的负 margin(-22px)
   正好把它拉到卡片内边、顶满整张卡片，而不会向外溢出压住上一张卡片。 */
.post-card.has-cover { padding-top: 22px; }

.empty-state { text-align: center; color: var(--fg-3); padding: 40px 16px; font-size: 14px; }

/* ===== 文章页 ===== */
.article-wrap { display: flex; gap: 24px; align-items: flex-start; }
.back-btn {
  /* 右上角固定，与左侧三杠按钮同一水平线。
     ★ 返回按钮并非常驻（只在非首页出现），保持自己的样子：不随滚动变化、不依赖任何顶栏
     （滚动时渐显的那条白色顶栏条已按用户要求整个移除）。 */
  position: fixed; top: 12px; right: 22px; z-index: 36;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: transparent;
  color: var(--fg);
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  text-decoration: none;               /* 去掉 <a> 默认下划线 */
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
  cursor: pointer;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: background .2s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), text-shadow .35s var(--ease);
}
.back-btn:hover { background: rgba(255,255,255,.14); }

/* ===== 「返回」的页面转场（点击返回：整页滑出 → 回上一页 → 上一页滑入）=====
   用 animation 而不是 transition：.back-btn 自身已经有一组 transition
   （background / color / border-color / text-shadow），再写 transition 简写会把它整个覆盖掉。
   ★ .menu-btn 与 .back-btn 必须在 .shell 之外 —— .shell 上的 transform 会成为
   fixed 后代的包含块，包在里面的话按钮会在动画起来的第一瞬跳位。 */
body.page-leaving .shell { animation: pageOut .2s var(--ease) forwards; }
body.page-leaving .menu-btn,
body.page-leaving .back-btn { animation: pageFadeOut .16s var(--ease) forwards; }

/* 从 bfcache 回到上一页时（点返回之后）放一次进场 */
body.page-entering .shell { animation: pageIn .3s var(--ease) both; }
body.page-entering .menu-btn,
body.page-entering .back-btn { animation: pageFadeIn .26s var(--ease) both; }

@keyframes pageOut { to { opacity: 0; transform: translateX(26px); } }
@keyframes pageIn  { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes pageFadeOut { to { opacity: 0; } }
@keyframes pageFadeIn  { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  body.page-leaving .shell, body.page-leaving .menu-btn, body.page-leaving .back-btn,
  body.page-entering .shell, body.page-entering .menu-btn, body.page-entering .back-btn {
    animation: none;
  }
}
.article {
  flex: 1; min-width: 0;
  background: var(--card-bg);
  backdrop-filter: blur(var(--card-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--card-blur)) saturate(140%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 34px 38px 30px;
}
/* 文章页大图：padding 是 34px 38px，负 margin 顶到卡片内边，宽度需补 76px */
.a-cover {
  /* 文章页大图：按原比例完整显示（不裁切），宽度补 76px 以顶满卡片内边 */
  width: calc(100% + 76px); height: auto;
  object-fit: contain; object-position: center;
  border-radius: var(--radius) var(--radius) 12px 12px;
  margin: -34px -38px 22px;
  display: block;
}
.doc-title { font-size: 30px; font-weight: 800; margin: 0 0 12px; letter-spacing: -.015em; color: var(--bili-pink); line-height: 1.28; }
.a-meta { font-size: 13px; color: var(--fg-3); margin-bottom: 26px; display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid rgba(127,127,127,0.22); }
/* 文章头部里的分类 / 标签是可点的，链到对应的分类页与标签页 */
.a-meta a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(127,127,127,0.55); }
.a-meta a:hover { border-bottom-color: currentColor; }
.a-body { font-size: 15.5px; line-height: 1.95; color: var(--fg); }
.a-body h1, .a-body h2, .a-body h3 { scroll-margin-top: 90px; color: var(--fg); }
.a-body h1 { font-size: 24px; font-weight: 750; margin: 30px 0 12px; }
.a-body h2 { font-size: 19px; font-weight: 700; margin: 28px 0 12px; padding-left: 12px; border-left: 3px solid currentColor; }
.a-body h3 { font-size: 16px; font-weight: 640; margin: 22px 0 10px; }
.a-body p { margin: 0 0 15px; color: var(--fg); }
.a-body a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--fg-3); }
.a-body a:hover { text-decoration-color: var(--fg); }
.a-body img { max-width: 100%; border-radius: 12px; margin: 16px 0; }
.a-body pre { background: #1b2233; border: 0; border-radius: 12px; padding: 15px 17px; overflow: auto; font-size: 13px; line-height: 1.6; color: #d7def0; }
.a-body code { font-family: Consolas, monospace; font-size: 13px; background: rgba(127,127,127,0.14); padding: 2px 6px; border-radius: 6px; }
.a-body pre code { background: transparent; padding: 0; }
.a-body blockquote { margin: 0 0 16px; padding: 14px 18px; border-left: 3px solid var(--fg-3); background: rgba(127,127,127,0.10); border-radius: 0 12px 12px 0; color: var(--fg-2); }
.a-body ul, .a-body ol { margin: 0 0 15px; padding-left: 24px; }
.a-body li { margin: 6px 0; }
.a-body table { border-collapse: collapse; margin: 0 0 16px; width: 100%; font-size: 13.5px; }
.a-body th, .a-body td { border: 1px solid rgba(127,127,127,0.24); padding: 8px 12px; text-align: left; }
.a-body th { background: rgba(127,127,127,0.12); font-weight: 650; }
.a-body figure.highlight { background: #1b2233; border-radius: 12px; overflow: hidden; margin: 16px 0; }
.a-body figure.highlight pre { background: transparent; margin: 0; border-radius: 0; }
.a-body figure.highlight table { border: 0; margin: 0; }
.a-body figure.highlight td, .a-body figure.highlight th { border: 0; }
.a-body figure.highlight .gutter { padding-right: 12px; opacity: .5; user-select: none; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(127,127,127,0.22); }
.pn { padding: 14px 16px; border-radius: 12px; background: rgba(127,127,127,0.07); }
.pn a { color: var(--fg); text-decoration: none; }
.pn a:hover { opacity: .8; }
.pn .pn-label { font-size: 11px; color: var(--fg-3); margin-bottom: 4px; font-weight: 560; }
.pn .pn-title { font-size: 13.5px; font-weight: 560; }
.pn.next { text-align: right; }
.pn.empty { opacity: .4; pointer-events: none; background: transparent; }
.toc { position: sticky; top: 90px; width: 200px; flex: none; font-size: 13px; padding: 16px 18px;
  background: var(--card-bg); backdrop-filter: blur(var(--card-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--card-blur)) saturate(140%);
  border: 1px solid var(--card-border); border-radius: 14px; box-shadow: var(--card-shadow); }
.toc-title { font-weight: 650; margin-bottom: 10px; color: var(--fg); font-size: 13.5px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 4px 0; }
.toc a { color: var(--fg-2); text-decoration: none; display: block; padding: 4px 0 4px 12px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--fg); border-left-color: var(--fg); }

/* ===== 归档 / 关于 / 标签栏目页 ===== */
.page-hero { padding: 10px 4px 2px; }
.page-hero h1 { font-size: 30px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.015em; color: var(--fg); }
.page-hero p { color: var(--fg-3); margin: 0; font-size: 14px; }
.archive-item {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 20px;
  background: var(--card-bg);
  backdrop-filter: blur(var(--card-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--card-blur)) saturate(140%);
  border: 1px solid var(--card-border); border-radius: 14px;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  transition: box-shadow .22s var(--ease);
}
.archive-item:hover { box-shadow: var(--card-shadow-hover); }
.archive-item .a-date { font-family: Consolas, monospace; font-size: 12.5px; color: var(--fg-3); min-width: 78px; }
.archive-item .a-title { font-size: 15.5px; font-weight: 560; color: var(--fg); flex: 1; }
.archive-item .go { color: var(--fg-3); }
.archive-year { padding: 6px 6px 0; font-size: 13px; font-weight: 700; color: var(--fg-2); letter-spacing: .06em; }
.about {
  padding: 28px 30px;
  background: var(--card-bg);
  backdrop-filter: blur(var(--card-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--card-blur)) saturate(140%);
  border: 1px solid var(--card-border); border-radius: 18px; box-shadow: var(--card-shadow);
}
/* 小标题：Bilibili 粉大字，比页面大标题（.page-hero h1 = 30px）稍小 */
.about h2 {
  display: flex; align-items: center; gap: 11px;
  font-size: 22px; font-weight: 800; letter-spacing: -.01em;
  color: var(--bili-pink); margin: 34px 0 16px;
}
.about h2::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--bili-pink); flex: none; }
.about h2:first-child { margin-top: 0; }
.about h3 { font-size: 16px; font-weight: 700; margin: 22px 0 10px; color: var(--bili-pink); }
.about p { color: var(--fg-2); font-size: 15px; line-height: 1.9; margin: 0 0 15px; }
.about strong { color: var(--fg); font-weight: 650; }
.about ul { margin: 0 0 16px; padding-left: 22px; }
.about li { color: var(--fg-2); font-size: 15px; line-height: 1.85; margin: 8px 0; }
.about a { color: var(--bili-pink); text-decoration: none; border-bottom: 1px solid rgba(251,114,153,0.42); transition: border-color .16s var(--ease); }
.about a:hover { border-bottom-color: var(--bili-pink); }
.about img {
  display: block; max-width: 264px; width: 100%; margin: 6px 0 18px;
  border-radius: 12px; border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
}

.site-foot { text-align: center; padding: 34px 0 42px; font-size: 12px; color: var(--fg-3); display: flex; flex-direction: column; gap: 4px; }
.site-foot span:first-child { font-weight: 560; }

.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: rgba(20, 24, 36, 0.92); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: toastIn .25s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ===== 响应式 ===== */
@media (max-width: 760px) {
  :root { --drawer-w: 260px; }
  .menu-btn { top: 0; left: 12px; padding: 0 4px; }
  .menu-btn .mb-name { font-size: 16px; }
  .app { padding-top: 70px; }
  .home-hero h1 { font-size: clamp(26px, 8vw, 40px); }
  .post-grid { columns: 1; }
  .post-card { margin-bottom: 14px; }
  .article { padding: 24px 20px; }
  .a-cover { width: calc(100% + 40px); margin: -24px -20px 18px; }
  .article-wrap { flex-direction: column; }
  .toc { display: none; }
}
