/* ==========================================================================
   minimal · 极简博客主题
   单色骨架 + 唯一强调色；全站颜色走 OKLCH（令牌在 _head.php 内联注入）。
   ========================================================================== */

/* 全站缓动：起步快、末端长时间收敛（比 ease 有加速度感，也不会像 spring 那样晃） */
:root{--ease:cubic-bezier(.2,.8,.2,1)}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--body);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.85;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  transition:background .3s ease,color .3s ease;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none;transition:color .2s ease}
a:hover{color:var(--accent-hover)}
h1,h2,h3,h4,h5,h6{color:var(--text);font-weight:650;line-height:1.4;margin:0}
p{margin:0}
time{font-variant-numeric:tabular-nums}

/* ---------- 容器 ---------- */
.shell{max-width:var(--shell-w);margin:0 auto;padding:0 22px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}

/* ---------- 站头 ---------- */
.site-head{background:var(--bg);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50}
.site-head .inner{display:flex;align-items:center;gap:24px;min-height:66px}
.brand{font-size:19px;font-weight:700;letter-spacing:.02em;color:var(--text);white-space:nowrap}
.brand:hover{color:var(--accent)}
.brand-logo{height:36px;width:auto}
.nav{position:relative;display:flex;align-items:center;gap:4px;margin-left:6px;flex:1}
.nav-item{position:relative}
/* 一级项：hover 只加深文字、不再弹淡色胶囊背景块（那个是最典型的「AI 味」来源）；
   强调色交给下方滑动的指示线来表达，避免同一时刻两处强调 */
.nav-item>a{
  display:inline-block;font-size:15px;font-weight:600;color:var(--menu);
  padding:6px 12px;transition:color .22s var(--ease);
}
.nav-item>a:hover{color:var(--text)}
.nav-item.is-current>a{color:var(--accent)}
/* 方案 B：整条导航只有一根线，鼠标移到哪根滑到哪根（位置/宽度由 JS 写入），
   离开后滑回当前项。线是「同一个物体在移动」，比逐项淡入背景更有重量感 */
.nav-ind{
  position:absolute;left:0;bottom:-1px;height:2px;width:0;background:var(--accent);
  opacity:0;pointer-events:none;
  transition:transform .44s var(--ease),width .44s var(--ease),opacity .2s linear;
}
/* 二级指示箭头：塞进 <a> **原有的** 12px 右内边距里，不占文档流 —— 
   所以「有二级」与「无二级」的项宽度完全相等（都 = 文字 + 左右各 12px），
   不会再出现一个宽一个窄的不协调 */
.nav-item.has-sub>a{position:relative}
.ico-chev{
  position:absolute;right:1px;top:50%;width:8px;height:4.1px;margin-top:-2.05px;
  opacity:0;transform:translateY(-2px);
  transition:opacity .22s var(--ease),transform .28s var(--ease);
}
.nav-item.has-sub:hover>a .ico-chev{opacity:.85;transform:translateY(0)}
/* 二级菜单：从左上角轻微放大落定（不再 display:none 硬切）。
   ⛔ top 必须紧贴上沿（100% 而非 100%+Npx）——中间留空隙会让鼠标移过去的途中
   丢失 hover，菜单「一碰就收」；视觉间隙由自身的 padding 提供，padding 属于菜单盒内 */
.nav-sub{
  position:absolute;top:100%;left:0;min-width:150px;background:var(--bg);
  border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-card);
  padding:6px;display:flex;flex-direction:column;gap:2px;
  opacity:0;visibility:hidden;transform:scale(.96);transform-origin:top left;
  transition:opacity .22s var(--ease),transform .3s var(--ease),visibility .22s;
}
.nav-item.has-sub:hover .nav-sub{opacity:1;visibility:visible;transform:scale(1)}
.nav-sub a{
  font-size:14px;font-weight:500;color:var(--menu);padding:6px 10px;border-radius:4px;
  transition:color .2s var(--ease),transform .22s var(--ease);
}
.nav-sub a:hover{color:var(--accent);transform:translateX(2px)}
.head-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
.search{position:relative;display:flex;align-items:center}
.search input{
  width:150px;height:36px;padding:0 34px 0 12px;border:1px solid var(--border);
  border-radius:18px;background:var(--surface);color:var(--text);font-size:14px;
  font-family:inherit;outline:none;transition:border-color .2s ease,width .2s ease;
}
.search input::placeholder{color:var(--muted)}
.search input:focus{border-color:var(--accent);width:190px}
.search button{
  position:absolute;right:4px;width:28px;height:28px;border:none;background:transparent;
  color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;
}
.search button:hover{color:var(--accent)}
.theme-toggle,.nav-toggle{
  width:36px;height:36px;border:1px solid var(--border);background:var(--surface);
  color:var(--menu);border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:border-color .2s ease,color .2s ease;
}
.theme-toggle:hover,.nav-toggle:hover{border-color:var(--accent);color:var(--accent)}
.theme-toggle .ico-moon{display:none}
:root[data-theme="dark"] .theme-toggle .ico-sun{display:none}
:root[data-theme="dark"] .theme-toggle .ico-moon{display:block}
.nav-toggle{display:none}
.nav-toggle .ico-close{display:none}
body.nav-open .nav-toggle .ico-open{display:none}
body.nav-open .nav-toggle .ico-close{display:block}

/* ---------- 主体 ---------- */
main{padding:38px 0 20px}

/* ---------- 区块标题（▍精选 / ▍全部文章） ---------- */
.sec-head{display:flex;align-items:center;gap:10px;margin:0 0 18px;padding-bottom:13px;border-bottom:1px solid var(--border)}
.sec-head::before{content:"";width:4px;height:15px;border-radius:2px;background:var(--accent);flex:0 0 auto}
.sec-head h2{font-size:16px;font-weight:600;letter-spacing:.04em;color:var(--text)}

/* ---------- 精选 Bento：弹性版式（按 data-n 自适应 1–6 篇） ---------- */
.bento-sec{margin-bottom:40px}
.bento{
  display:grid;gap:14px;aspect-ratio:1.78;
  grid-template-columns:1.55fr 1fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));
}
.bento-item{
  position:relative;display:block;overflow:hidden;border-radius:8px;
  background-color:var(--surface-strong);isolation:isolate;
  transition:box-shadow .3s ease;
}
/* 默认（n≥3）：首篇大图占左 2 行，其余 2×2 于右侧 */
.bento-item:nth-child(1){grid-row:span 2}
/* 无封面 + 无默认背景图 → 用强调色淡底，避免纯灰块 */
.bento-item.no-img{background:var(--accent-soft)}
.bento-item:hover{box-shadow:var(--shadow-card)}
.bento-item img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .55s ease}
.bento-item:hover img{transform:scale(1.045)}
.bento-ov{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(to top,rgba(9,11,15,.88) 0%,rgba(9,11,15,.46) 42%,rgba(9,11,15,0) 72%);
}
.bento-txt{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:16px 18px;color:#fff}
.bento-cat{display:block;font-size:11.5px;line-height:1.2;letter-spacing:.06em;opacity:.86;margin-bottom:7px}
.bento-title{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:16px;font-weight:650;line-height:1.45;color:#fff;
}
.bento-item:nth-child(1) .bento-txt{padding:22px 24px}
.bento-item:nth-child(1) .bento-cat{font-size:12.5px}
.bento-item:nth-child(1) .bento-title{font-size:25px;line-height:1.4;-webkit-line-clamp:3}

/* n=1：单张大图 */
.bento[data-n="1"]{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr)}
.bento[data-n="1"] .bento-item:nth-child(1){grid-row:auto}
/* n=2：左右两等份（首篇略宽） */
.bento[data-n="2"]{grid-template-columns:1.55fr 1fr;grid-template-rows:minmax(0,1fr)}
.bento[data-n="2"] .bento-item:nth-child(1){grid-row:auto}
/* n=3：首篇大图占左 2 行，另 2 篇于右侧竖排 */
.bento[data-n="3"]{grid-template-columns:1.55fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr))}
/* n=4：首篇通栏大图 + 下方 3 篇 */
.bento[data-n="4"]{grid-template-columns:1fr 1fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr))}
.bento[data-n="4"] .bento-item:nth-child(1){grid-row:auto;grid-column:1 / -1}
/* n=5：默认布局（首篇大图 + 2×2），无需覆盖 */
/* n=6：3 列 2 行均分 */
.bento[data-n="6"]{grid-template-columns:1fr 1fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr))}
.bento[data-n="6"] .bento-item:nth-child(1){grid-row:auto}

/* ---------- 文章流 ---------- */
.post{display:flex;gap:24px;align-items:stretch;padding:22px 0;border-bottom:1px solid var(--border)}
.post:last-of-type{border-bottom:none}
.post-body{flex:1;min-width:0;min-height:120px}
.post-title{font-size:19px;font-weight:650;line-height:1.5;margin:0 0 10px}
.post-title a{color:var(--text)}
.post-title a:hover{color:var(--accent)}
/* 摘要：全区块展示（占满 .post-body 整宽，自动分行），不做行数/宽度截断 */
.post-excerpt{color:var(--muted);font-size:14px;margin:0 0 14px;line-height:1.8}
.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--muted)}
.post-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--border);flex:0 0 auto}
.post-meta .cat{display:inline-flex;align-items:center;gap:5px;color:var(--muted)}
.post-meta .cat:hover{color:var(--text)}
.post-meta .cat .ico-cat{flex:0 0 auto;opacity:.72;margin-top:-1px;transition:opacity .2s ease}
.post-meta .cat:hover .ico-cat{opacity:1}
.pill{
  display:inline-block;padding:2px 9px;font-size:12px;font-weight:500;color:var(--accent);
  background:var(--accent-soft);border-radius:100px;letter-spacing:.02em;
}
.pill.pin{color:var(--text);background:var(--surface-strong)}
/* 缩略图：加宽（150→200）并与右侧内容严格同高 —— align-self:stretch 跟随 .post-body 高度，
   img 绝对定位铺满；高度下限由 .post-body 的 min-height 统一兜底，图片永不被压成细条 */
.post-thumb{
  position:relative;width:200px;border-radius:var(--radius);overflow:hidden;flex:0 0 auto;
  align-self:stretch;background:var(--surface-strong);box-shadow:var(--shadow-card);
}
.post-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.post:hover .post-thumb img{transform:scale(1.05)}

/* ---------- 空态 ---------- */
.empty{color:var(--muted);padding:40px 0;text-align:center;font-size:15px}
.empty .big{display:block;font-size:28px;margin-bottom:10px;opacity:.6}

/* ---------- 页头（归档/搜索/单页） ---------- */
.page-head{padding:8px 0 26px;border-bottom:1px solid var(--border);margin-bottom:8px}
.page-head h1{font-size:27px;margin-bottom:10px}
.page-head .desc{color:var(--muted);font-size:15px;max-width:640px}
.page-head .stat{color:var(--muted);font-size:13.5px;margin-top:8px}

/* ---------- 归档模板（page-archive.php：按年分组时间线） ---------- */
.arc-wrap{margin-top:4px}
.arc-year{margin-bottom:24px}
.arc-year-title{
  display:flex;align-items:baseline;gap:12px;
  margin:30px 0 4px;font-size:25px;font-weight:700;letter-spacing:.01em;color:var(--text);line-height:1.2;
}
.arc-year-title::before{
  content:"";width:4px;height:21px;border-radius:2px;background:var(--accent);align-self:center;flex:0 0 auto;
}
.arc-year-title .count{font-size:13px;font-weight:500;color:var(--muted)}
.arc-list{list-style:none;margin:0;padding:0}
.arc-list li{
  display:flex;align-items:baseline;justify-content:space-between;gap:16px;
  padding:12px 2px;border-bottom:1px solid var(--border);
}
.arc-list li:last-child{border-bottom:0}
.arc-t{flex:1;min-width:0;color:var(--text);font-size:15.5px;transition:color .2s ease}
.arc-t:hover{color:var(--accent)}
.arc-meta{display:flex;align-items:baseline;gap:10px;white-space:nowrap;font-size:13px;color:var(--muted)}
.arc-cat{color:var(--accent)}
.arc-cat:hover{color:var(--accent-hover)}
.arc-date{font-variant-numeric:tabular-nums}

/* ---------- 正文排版 ---------- */
.article-body{padding:34px 0 10px}
/* 正文容器：左对齐（不用 0 auto）——否则在 .shell 内有 22px 内边距时
   会居中出 (内容宽-820)/2 的偏移，导致单页标题比分类页/列表页右移几个像素 */
.post-main{max-width:820px}
.article-head{margin-bottom:30px}
.article-cat{margin-bottom:14px}
.article-head h1,.page-head h1{font-size:30px;line-height:1.35}
.page-head{text-align:left}
.article-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13.5px;color:var(--muted);margin-top:16px}
.article-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--border)}

/* ---------- 文章标题封面（有缩略图 / 后台默认背景图时） ---------- */
.article-hero{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  margin:0 0 30px;padding:46px 28px;min-height:clamp(186px,21vw,290px);
  text-align:center;
  background-color:var(--surface-strong);background-size:cover;background-position:center;
  border-radius:var(--radius);overflow:hidden;isolation:isolate;
}
/* 底部加深的渐变压暗，保证白字在任何底图上都可读 */
.article-hero::before{
  content:"";position:absolute;inset:0;z-index:0;
  background:linear-gradient(180deg,rgba(9,11,15,.30) 0%,rgba(9,11,15,.46) 52%,rgba(9,11,15,.70) 100%);
}
.article-hero h1,.article-hero .hero-meta{position:relative;z-index:1}
.article-hero h1{
  max-width:860px;color:#fff;font-size:clamp(24px,3.2vw,38px);font-weight:700;
  line-height:1.32;letter-spacing:.01em;text-shadow:0 2px 22px rgba(0,0,0,.35);
}
.hero-meta{
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;
  margin-top:18px;font-size:13.5px;color:rgba(255,255,255,.86);
}
.hero-meta .dot{width:3px;height:3px;border-radius:50%;background:rgba(255,255,255,.5)}
.hero-cat{
  color:#fff;font-weight:600;padding-bottom:1px;
  border-bottom:1px solid rgba(255,255,255,.4);transition:border-color .2s ease;
}
.hero-cat:hover{color:#fff;border-bottom-color:#fff}

.prose{color:var(--body);font-size:16.5px;line-height:1.9}
.prose>*+*{margin-top:1.05em}
.prose p{margin:1.05em 0}
.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{color:var(--text);margin:1.8em 0 .7em;font-weight:700}
.prose h1{font-size:28px}
.prose h2{font-size:24px;padding-left:14px;border-left:4px solid var(--accent);line-height:1.4}
.prose h3{font-size:21px}
.prose h4{font-size:18.5px}
.prose h5{font-size:17px}
.prose h6{font-size:16.5px;color:var(--muted)}
.prose a{text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px;
  text-decoration-color:var(--accent-soft)}
.prose a:hover{text-decoration-color:var(--accent)}
.prose ul,.prose ol{margin:1.05em 0;padding-left:1.5em}
.prose li{margin:.35em 0}
.prose li::marker{color:var(--accent);font-weight:600}
.prose blockquote{
  margin:1.4em 0;padding:12px 18px;background:var(--surface);border-left:3px solid var(--accent);
  border-radius:0 var(--radius) var(--radius) 0;color:var(--muted);
}
.prose blockquote p{margin:.4em 0}
.prose code{
  font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:.875em;
  color:var(--accent-hover);background:var(--accent-soft);padding:2px 6px;border-radius:4px;
}
.prose pre{
  position:relative;margin:1.4em 0;padding:38px 18px 16px;background:var(--surface-strong);
  border:1px solid var(--border);border-radius:var(--radius);overflow-x:auto;line-height:1.7;
}
.prose pre::before{
  content:"";position:absolute;top:14px;left:16px;width:10px;height:10px;border-radius:50%;
  background:#ff5f56;box-shadow:18px 0 0 #ffbd2e,36px 0 0 #27c93f;
}
.prose pre code{background:none;color:var(--text);padding:0;font-size:13.5px}
.prose img{border-radius:var(--radius);margin:1.4em 0}
.prose hr{border:none;border-top:1px solid var(--border);margin:2em 0}
.prose table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:15px}
.prose th,.prose td{border:1px solid var(--border);padding:9px 13px;text-align:left}
.prose th{background:var(--surface);font-weight:600;color:var(--text)}
.prose tr:nth-child(even) td{background:var(--surface)}
.prose mark{background:oklch(0.92 0.13 95 / .45);color:inherit;padding:1px 4px;border-radius:3px}

/* ---------- 标签 ---------- */
.post-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:36px;padding-top:22px;border-top:1px solid var(--border)}
.post-tags a{
  font-size:13px;color:var(--muted);border:1px solid var(--border);border-radius:100px;
  padding:4px 13px;transition:all .2s ease;
}
.post-tags a:hover{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}

/* ---------- 分页 ---------- */
.pager{display:flex;justify-content:center;align-items:center;gap:8px;margin:40px 0 10px;flex-wrap:wrap}
.pager a,.pager span{
  min-width:36px;height:36px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;font-size:14px;color:var(--muted);border:1px solid transparent;transition:all .2s ease;
}
.pager a:hover{color:var(--accent);border-color:var(--border)}
.pager .cur{background:var(--accent);color:#fff;font-weight:600}
.pager .gap{border:none;color:var(--muted)}

/* ---------- 搜索页 ---------- */
.search-box{position:relative;display:flex;align-items:center;margin:26px 0 8px}
.search-box .search-ico{position:absolute;left:16px;color:var(--muted);pointer-events:none}
.search-box input{
  flex:1;height:50px;padding:0 54px 0 44px;border:1px solid var(--border);border-radius:25px;
  background:var(--surface);color:var(--text);font-size:15px;font-family:inherit;outline:none;
}
.search-box input:focus{border-color:var(--accent)}
.search-box button{
  position:absolute;right:6px;width:38px;height:38px;border:none;border-radius:50%;
  background:var(--accent);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:background .2s ease;
}
.search-box button:hover{background:var(--accent-hover)}
.search-empty{text-align:center;padding:60px 0;color:var(--muted)}
.search-empty p{font-size:16px;color:var(--text);margin-bottom:8px}
.search-empty .hint{font-size:13.5px}

/* ---------- 评论（紧凑嵌套） ---------- */
/* 评论区块与正文左对齐（不用 0 auto，否则在 .shell 内容区里会再偏 8px） */
.comments{max-width:820px;margin:40px 0 0;padding-top:28px;border-top:1px solid var(--border)}
.comments h2{font-size:17px;margin-bottom:16px;display:flex;align-items:center;gap:8px}
.comments h2 .count{
  font-size:12px;font-weight:600;color:var(--accent);background:var(--accent-soft);
  padding:1px 9px;border-radius:100px;
}
.comment-list,.children{list-style:none;margin:0;padding:0}
.comment-item{padding:12px 0;border-bottom:1px solid var(--border)}
.comment-list>.comment-item:first-child{padding-top:0}
.cmt-row{display:flex;gap:11px;align-items:flex-start}
.c-avatar{
  width:32px;height:32px;border-radius:50%;flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  background:var(--surface-strong);color:var(--muted);font-size:14px;font-weight:600;overflow:hidden;
}
.c-avatar.is-admin{color:var(--accent);background:var(--accent-soft)}
.cmt-main{flex:1;min-width:0}
.cmt-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.cmt-name{color:var(--text);font-weight:600;font-size:14px}
.cmt-time{color:var(--muted);font-size:12px}
/* 回复：默认不显示，鼠标移到「这一条」评论内容上才浮现（键盘 Tab 聚焦同样可见）。
   用 .cmt-row 而非 .comment-item 作 hover 源 —— 后者的后代含 children，
   悬停父评论会连带把子回复的按钮一起点亮。opacity 不参与布局，出现时不挤动名字/时间。
   触摸设备没有 hover，常显（@media (hover:none)）。 */
.c-reply{font-size:12px;color:var(--muted);cursor:pointer;user-select:none;opacity:0;transition:opacity .18s ease}
.cmt-row:hover .c-reply,.c-reply:focus-visible{opacity:1}
.c-reply:hover{color:var(--text)}
@media (hover:none){.c-reply{opacity:1}.ico-chev{opacity:.7;transform:none}}
.cmt-text{margin:4px 0 0;font-size:14.5px;color:var(--body)}
/* 子回复：靠缩进对齐到父评论文本起点（父头像 34 + gap 11 ≈ 45），
   不用竖线；深层嵌套缩进递减，避免层层累积后跑出容器 */
.children{margin:10px 0 0;padding-left:44px}
.children .children{padding-left:26px}
.children .comment-item{padding:9px 0;border-bottom:none;border-top:1px solid var(--border)}
.children .comment-item:first-child{border-top:none;padding-top:2px}
.children .c-avatar{width:26px;height:26px;font-size:12px}
.children .cmt-name{font-size:13.5px}
.children .cmt-text{font-size:14px}
.comment-item.is-more{color:var(--muted);font-size:12.5px}

/* 评论表单 */
/* 底部留白：与下方评论列表拉开（原来 .comment-list margin:0，表单紧贴首条评论）；
   表单被移到某条评论下方做「回复」时，这段下留白同样有效 */
.comment-form{margin:18px 0 28px}
.cf-top{display:flex;gap:11px;align-items:flex-start}
.cf-main{flex:1;min-width:0}
.reply-hint{display:none;font-size:12.5px;color:var(--muted);margin-bottom:6px;align-items:center;gap:6px}
.reply-hint.is-on{display:flex}
.reply-hint b{color:var(--accent)}
.reply-hint a{color:var(--muted)}
.comment-form textarea{
  width:100%;min-height:80px;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius);
  background:var(--surface);color:var(--text);font-family:inherit;font-size:14.5px;line-height:1.7;resize:vertical;outline:none;
}
.comment-form textarea:focus{border-color:var(--accent)}
.cf-bar{display:flex;align-items:center;gap:12px;margin-top:10px;flex-wrap:wrap}
.cf-fields{display:flex;gap:8px;flex:1;flex-wrap:wrap}
.cf-fields input{
  flex:1;min-width:120px;height:36px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius);
  background:var(--surface);color:var(--text);font-family:inherit;font-size:13.5px;outline:none;
}
.cf-fields input:focus{border-color:var(--accent)}
.identity{flex:1;font-size:13.5px;color:var(--muted)}
.identity b{color:var(--text)}
.comment-form button[type="submit"]{
  height:38px;padding:0 22px;border:none;border-radius:19px;background:var(--accent);color:#fff;
  font-size:14px;font-family:inherit;font-weight:600;cursor:pointer;transition:background .2s ease;
}
.comment-form button[type="submit"]:hover{background:var(--accent-hover)}
.comment-form button[type="submit"]:disabled{opacity:.6;cursor:default}
.cf-note{font-size:12px;color:var(--muted);margin-top:8px}
/* 审核策略=全过时这行不输出文案 → 空则整体收起（留元素供 JS 写「提交中…/失败」提示，
   一旦 JS 写入内容 :empty 失配，提示自动出现） */
.cf-note:empty{display:none}

/* ---------- 404 ---------- */
.notfound{text-align:center;padding:80px 0}
.notfound .code{font-size:76px;font-weight:700;color:var(--accent);line-height:1;letter-spacing:.02em}
.notfound p{color:var(--muted);margin:16px 0 24px;font-size:16px}
.notfound a{
  display:inline-block;padding:9px 24px;border:1px solid var(--border);border-radius:100px;
  color:var(--text);font-size:14px;transition:all .2s ease;
}
.notfound a:hover{border-color:var(--accent);color:var(--accent)}

/* ---------- 页脚 ---------- */
.site-foot{border-top:1px solid var(--border);margin-top:60px;padding:28px 0 34px;background:var(--bg)}
.site-foot .inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  font-size:13px;color:var(--muted)}
.site-foot a{color:var(--muted)}
.site-foot a:hover{color:var(--accent)}
.site-foot .sep{margin:0 6px;opacity:.5}
.site-foot .foot-right a{color:var(--text);font-weight:600}

/* ---------- 返回顶部（浅灰） ---------- */
.back-top{
  position:fixed;right:26px;bottom:26px;width:44px;height:44px;border-radius:50%;
  background:var(--surface-strong);color:var(--muted);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:var(--shadow-card);transition:color .2s ease,border-color .2s ease,transform .2s ease;z-index:60;
}
.back-top:hover{color:var(--accent);border-color:var(--accent);transform:translateY(-2px)}

/* ---------- 响应式 ---------- */
@media (max-width:900px){
  .search input{width:120px}
  .search input:focus{width:150px}
  /* Bento：大图移到顶部通栏，下接 2×2 */
  .bento{grid-template-columns:1fr 1fr;grid-template-rows:none;aspect-ratio:auto}
  .bento-item{aspect-ratio:1/1}
  .bento-item:nth-child(1){grid-column:1 / -1;grid-row:auto;aspect-ratio:16/9}
  .bento-item:nth-child(1) .bento-title{font-size:21px}
}
@media (max-width:720px){
  .site-head .inner{min-height:58px;gap:12px}
  .nav-toggle{display:flex}
  .search{display:none}
  .nav{
    position:fixed;top:58px;left:0;right:0;background:var(--bg);border-bottom:1px solid var(--border);
    box-shadow:var(--shadow-card);flex-direction:column;align-items:stretch;gap:0;margin:0;padding:10px 18px;
    max-height:0;overflow:hidden;transition:max-height .3s ease,padding .3s ease;z-index:49;
  }
  body.nav-open .nav{max-height:70vh;overflow:auto;padding:14px 18px}
  .nav-item>a{display:block;padding:11px 4px;font-size:16px;border-radius:0;border-bottom:1px solid var(--border)}
  .nav-item:last-child>a{border-bottom:none}
  /* 抽屉里二级菜单常展开，箭头与滑动指示器都不需要 */
  .ico-chev{display:none}
  .nav-ind{display:none}
  .nav-sub{
    position:static;display:flex;border:none;box-shadow:none;background:transparent;
    padding:0 0 0 14px;opacity:1;visibility:visible;transform:none;
  }
  .post{flex-direction:column-reverse;gap:14px}
  .post-thumb{width:100%;height:180px}
  .bento{gap:10px}
  .bento-item{border-radius:6px;aspect-ratio:4/3}
  .bento-item:nth-child(1){aspect-ratio:16/10}
  .bento-txt{padding:12px 14px}
  .bento-item:nth-child(1) .bento-txt{padding:16px 18px}
  .bento-item:nth-child(1) .bento-title{font-size:19px}
  .bento-title{font-size:14.5px}
  .article-head h1,.page-head h1{font-size:24px}
  .article-hero{margin-bottom:22px;padding:34px 20px;min-height:158px}
  .article-hero h1{font-size:21px}
  .hero-meta{font-size:12.5px;margin-top:14px;gap:8px}
  .arc-year-title{font-size:22px;margin-top:24px}
  .arc-list li{flex-direction:column;gap:4px;padding:11px 2px}
  .arc-meta{font-size:12.5px}
  .children{padding-left:26px}
  .children .children{padding-left:16px}
  .back-top{right:16px;bottom:16px;width:40px;height:40px}
}
