/* =========================================================
   壹号栈 YIHAOZHAN · 全局样式
   暗色玻璃拟态 · 极光背景 · 单页应用
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root{
  --bg:            #05060b;
  --bg-soft:       #0a0c15;
  /* 三档"玻璃"底色：全站不用白。原来是 rgba(255,255,255,.045~.11)，
     叠在极光背景上会泛出一层灰白，看着像给每块内容铺了张白纸；
     改成极淡的品牌蓝，只留"这里有一层"的感觉，不抢背景的光 */
  --glass:         rgba(124,156,255,.055);
  --glass-2:       rgba(124,156,255,.088);
  --glass-hi:      rgba(124,156,255,.125);
  --border:        transparent;
  --border-strong: transparent;

  --text:      #eef1f8;
  --text-dim:  #a7b0c4;
  /* v140：原来的 #6d7688 落在最亮的玻璃层（--glass-hi 叠完 ≈ #131826）上只有 3.82:1，
     纯 --bg 上 4.43:1 —— 12px 小字（.eyebrow / .count / .footer__meta）按 WCAG AA 要求 4.5，
     差一点点。提到 #7b8496 后最差也是 4.64:1（--glass-hi），纯底 5.38:1，
     和 --text-dim 之间仍看得出层次，不至于把「次要信息」做成「正文」。 */
  --text-mute: #7b8496;

  --a1: #7c9cff;
  --a2: #b47cff;
  --a3: #4fe3d0;
  /* v140：强调色拆成两套 —— --aN 是「光」（渐变底、描边、图形），
     --ink-aN 是「字」（文字、图标）。深色主题两者同值；浅色主题下
     #7c9cff / #b47cff / #4fe3d0 落在淡蓝底上只有 2.2 / 2.5 / 1.3:1，
     直接当文字色等于隐形，所以浅色另给一档压深的值（见 data-theme="light"）。 */
  --ink-a1: #7c9cff;
  --ink-a2: #b47cff;
  --ink-a3: #4fe3d0;
  /* 「已收藏」用的星色。深色主题是亮金；浅色主题另给一档深琥珀（见 data-theme="light"），
     否则 #ffcf6b 落在淡蓝玻璃上对比度只有 1.3:1，字基本看不见（v121 修）。 */
  --star: #ffcf6b;
  --grad: linear-gradient(120deg, var(--a1), var(--a2) 52%, var(--a3));
  --grad-soft: linear-gradient(120deg, rgba(124,156,255,.22), rgba(180,124,255,.18) 55%, rgba(79,227,208,.16));

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-sm: none;
  --shadow: none;
  --glow: none;

  --ease: cubic-bezier(.22,.68,.32,1);
  --maxw: none;          /* 铺满屏幕 */
  --pad-x: clamp(16px, 2.6vw, 52px);

  /* 阅读排版（后台「主题」页可改，JS 会覆盖这三个变量） */
  --post-size: 16px;
  --post-line: 1.95;
  --post-width: 820px;
}

/* 圆角大小（后台「主题」→ 圆角） */
html[data-radius="small"]{ --r-sm:8px; --r:13px; --r-lg:18px; --r-xl:24px; }
html[data-radius="large"]{ --r-sm:16px; --r:24px; --r-lg:34px; --r-xl:44px; }

html[data-theme="light"]{
  --bg:            #e8ecf7;
  --bg-soft:       #e0e5f2;
  /* 浅色主题同样不用白：原来 .86/.93/.98 的白，等于整页铺满白纸。
     换成比页面底色略深一点的淡蓝，卡片还是浮得出来，但不再是白块 */
  --glass:         rgba(211,221,243,.62);
  --glass-2:       rgba(203,215,240,.78);
  --glass-hi:      rgba(196,209,238,.92);
  --border:        transparent;
  --border-strong: transparent;
  --text:      #0d1424;
  --text-dim:  #333d57;
  /* v140：同深色主题的理由，#556080 在 --glass-hi（≈ #CDD5EC）上只有 4.15:1，压深到 #4e5878 后 4.68:1 */
  --text-mute: #4e5878;
  /* 浅色主题下的「已收藏」色：深琥珀。算过实际合成底（--glass-hi 淡蓝 ≈ #C7D3EF）
     和「已选中」那层 14% 暖底（≈ #BCC1CE）：4.7~5.6:1，13.5px 小字也读得清。
     #7a5200 只有 3.9:1，不够，所以再压深一档。 */
  --star:      #6b4600;
  --shadow-sm: none;
  --shadow: none;
}

/* ---------- 基础 ---------- */
*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; overscroll-behavior-x:none; }
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font-family:"PingFang SC","HarmonyOS Sans SC","Hiragino Sans GB","Microsoft YaHei",
              -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  font-size:15px;
  line-height:1.7;
  letter-spacing:.01em;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  transition:background .5s var(--ease), color .5s var(--ease);
}
body.no-scroll{ overflow:hidden; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
img{ display:block; max-width:100%; }
::selection{ background:color-mix(in srgb, var(--a1) 35%, transparent); color:#fff; }

/* 滚动条 */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{
  background:linear-gradient(var(--a1),var(--a2));
  border-radius:99px; border:3px solid transparent; background-clip:content-box;
}
::-webkit-scrollbar-thumb:hover{ background:var(--grad); background-clip:content-box; }

.icon-btn svg,.nav svg,.brand svg *{ stroke-linecap:round; stroke-linejoin:round; }

/* =========================================================
   背景层
   ========================================================= */
.bg{ position:fixed; inset:0; z-index:-2; overflow:hidden; background:var(--bg); }
.bg__orb{
  position:absolute; border-radius:50%;
  opacity:.55; will-change:transform;
}
.bg__orb--a{
  width:56vw; height:56vw; left:-12vw; top:-16vw;
  background:radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--a1) 78%, transparent), transparent 68%);
  animation:drift1 26s var(--ease) infinite alternate;
}
.bg__orb--b{
  width:48vw; height:48vw; right:-14vw; top:2vw;
  background:radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--a2) 72%, transparent), transparent 68%);
  animation:drift2 32s var(--ease) infinite alternate;
}
.bg__orb--c{
  width:52vw; height:52vw; left:24vw; bottom:-24vw;
  background:radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--a3) 58%, transparent), transparent 68%);
  animation:drift3 38s var(--ease) infinite alternate;
}
html[data-theme="light"] .bg__orb{ opacity:.28; }
html[data-theme="light"] .bg__orb--a{ background:radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--a1) 65%, transparent), transparent 68%); }
html[data-theme="light"] .bg__orb--b{ background:radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--a2) 62%, transparent), transparent 68%); }
html[data-theme="light"] .bg__orb--c{ background:radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--a3) 55%, transparent), transparent 68%); }

/* 背景极光强度（后台「主题」→ 背景光晕） */
.bg__orb{ transition:opacity .5s var(--ease); }
html[data-glow="strong"] .bg__orb{ opacity:.9; }
html[data-glow="off"] .bg__orb{ opacity:0; }
html[data-theme="light"][data-glow="strong"] .bg__orb{ opacity:.46; }
html[data-theme="light"][data-glow="off"] .bg__orb{ opacity:0; }

@keyframes drift1{ to{ transform:translate3d(9vw,7vw,0) scale(1.15); } }
@keyframes drift2{ to{ transform:translate3d(-10vw,9vw,0) scale(1.2); } }
@keyframes drift3{ to{ transform:translate3d(6vw,-9vw,0) scale(1.12); } }

.bg__grid{
  position:absolute; inset:0; opacity:.35;
  background-image:
    linear-gradient(rgba(124,156,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,156,255,.06) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 78%);
  -webkit-mask-image:radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 78%);
}
html[data-theme="light"] .bg__grid{
  background-image:
    linear-gradient(rgba(20,30,60,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,30,60,.05) 1px, transparent 1px);
}
.bg__noise{
  position:absolute; inset:0; opacity:.28;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  pointer-events:none;
}
.bg__vignette{
  position:absolute; inset:0;
  background:radial-gradient(ellipse 120% 90% at 50% 40%, transparent 40%, rgba(0,0,0,.55) 100%);
}
html[data-theme="light"] .bg__vignette{
  background:radial-gradient(ellipse 120% 90% at 50% 40%, transparent 45%, rgba(140,150,180,.35) 100%);
}

/* 光标辉光 */
.cursor-glow{
  position:fixed; width:420px; height:420px; left:0; top:0; z-index:-1;
  border-radius:50%; pointer-events:none; opacity:0; will-change:transform;
  background:radial-gradient(circle, rgba(124,156,255,.16), transparent 62%);
  transform:translate(-50%,-50%);
  transition:opacity .4s ease;
}
body.has-pointer .cursor-glow{ opacity:1; }

/* 顶部滚动进度 */
.scroll-progress{
  position:fixed; top:0; left:0; height:2px; width:0%; z-index:60;
  background:var(--grad);
  box-shadow:none;
  transition:width .1s linear;
}

/* =========================================================
   顶栏
   ========================================================= */
.header{
  position:sticky; top:0; z-index:50;
  padding:14px var(--pad-x);
  transition:padding .35s var(--ease), background .35s var(--ease);
}
.header__inner{
  max-width:var(--maxw); margin:0 auto;
  display:flex; align-items:center; gap:18px;
  padding:9px 12px 9px 16px;
  border-radius:99px;
  border:1px solid transparent;
  transition:all .4s var(--ease);
}
.header.is-stuck .header__inner{
  background:var(--glass);
  border-color:transparent;
  backdrop-filter:blur(20px) saturate(150%);
  -webkit-backdrop-filter:blur(20px) saturate(150%);
  box-shadow:none;
}
.header.is-stuck{ padding-top:10px; padding-bottom:10px; }

.brand{ display:flex; align-items:center; gap:11px; flex-shrink:0; }
.brand__mark{
  display:grid; place-items:center; width:38px; height:38px; border-radius:12px;
  background:var(--glass-2); border:1px solid transparent;
  box-shadow:none;
  transition:transform .5s var(--ease), box-shadow .4s var(--ease);
}
.brand:hover .brand__mark{ transform:rotate(-8deg) scale(1.06); box-shadow:none; }
/* 自定义 Logo 图片 */
.brand__mark--img{ overflow:hidden; padding:0; }
.brand__mark--img img{ width:100%; height:100%; object-fit:cover; display:block; }
.brand__text{ display:flex; flex-direction:column; line-height:1.05; }
.brand__text b{ font-size:16.5px; font-weight:700; letter-spacing:.06em; }
.brand__text em{
  font-style:normal; font-size:9.5px; letter-spacing:.34em; color:var(--text-mute);
  text-transform:uppercase; margin-top:2px;
}

/* 顶栏搜索（导航页搜索已合并到此）。圆角跟右边的导航胶囊保持一致 */
.header__search{
  position:relative; display:flex; align-items:center;
  flex:1 1 220px; max-width:560px; margin:0 auto;
  height:40px; border-radius:99px;
  background:var(--glass); border:1px solid transparent;
  transition:border-color .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
}
.header__search > svg{
  position:absolute; left:13px; width:17px; height:17px;
  fill:none; stroke:var(--text-mute); stroke-width:2; pointer-events:none;
}
.header__search input{
  width:100%; height:100%; padding:0 40px;
  border:0; outline:none; background:none;
  font-size:14px; color:var(--text); font-family:inherit;
}
.header__search input::placeholder{ color:var(--text-mute); }
.header__search input::-webkit-search-cancel-button,
.header__search input::-webkit-search-decoration{ -webkit-appearance:none; appearance:none; display:none; }
.header__search:focus-within{
  border-color:transparent;
  box-shadow:0 0 0 4px rgba(124,156,255,.14);
  background:var(--glass-2);
}
.header__search .searchbox__clear{ right:10px; }
.header__search.has-value .searchbox__clear{ display:grid; }

/* ---------- 顶栏全站搜索结果浮层 ----------
   挂在搜索框下面，分组列出 页面 / 分类 / 站点 / 分享 / 文章，对应 index.html 里的 #hdrHits */
.hdr-hits{
  position:absolute; top:calc(100% + 10px); left:0; right:0; z-index:70;
  max-height:min(62vh, 420px); overflow:auto; overscroll-behavior:contain;
  padding:7px; border-radius:18px;
  background:var(--bg-soft); border:1px solid transparent;
  box-shadow:none;
  animation:hdrHitsIn .16s var(--ease);
  -webkit-overflow-scrolling:touch;
}
html[data-theme="light"] .hdr-hits{ box-shadow:none; }
@keyframes hdrHitsIn{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }
.hdr-hits__group{
  padding:8px 10px 4px; font-size:11px; letter-spacing:.1em;
  color:var(--text-mute); text-transform:uppercase;
}
.hdr-hits__item{
  display:flex; align-items:center; gap:10px;
  padding:8px 10px; border-radius:12px; cursor:pointer;
}
.hdr-hits__item.is-sel, .hdr-hits__item:hover{ background:var(--glass-2); }
.hdr-hits__ico{
  flex-shrink:0; display:grid; place-items:center;
  width:26px; height:26px; border-radius:9px; font-size:13px;
  background:color-mix(in srgb, var(--a1) 16%, transparent);
}
.hdr-hits__txt{ display:flex; flex-direction:column; gap:1px; min-width:0; flex:1; }
.hdr-hits__name{
  font-size:13.5px; color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.hdr-hits__name mark{ background:none; color:var(--ink-a1); font-weight:700; }
.hdr-hits__sub{
  font-size:11.5px; color:var(--text-mute);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.hdr-hits__go{ flex-shrink:0; font-size:11px; color:var(--text-mute); }
.hdr-hits__all{
  display:block; width:100%; margin-top:6px; padding:9px 12px;
  font:inherit; font-size:12.5px; color:var(--text-dim); text-align:center;
  background:none; border:1px dashed transparent; border-radius:12px; cursor:pointer;
  transition:color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.hdr-hits__all.is-sel, .hdr-hits__all:hover{
  color:var(--text); background:var(--glass-2); border-color:transparent;
}
.hdr-hits__all span{ opacity:.55; margin-left:4px; }
.hdr-hits__empty{ padding:18px 12px 16px; text-align:center; }
.hdr-hits__empty b{ display:block; font-size:13.5px; color:var(--text); font-weight:600; }
.hdr-hits__empty span{ display:block; margin-top:5px; font-size:12px; color:var(--text-mute); }

/* 搜索框 + 「分类」按钮同一行的容器；宽屏时 display:contents，两者仍是顶栏的直接子项 */
.header__row{ display:contents; }

/* 刷新键（v182 出生，v187 搬家）。
   v182：长在搜索框右边，40px 见方 —— 那会儿它旁边是 40px 的搜索条，得跟着同高。
   v187：搬进 `.header__actions`，紧挨「稍后读」左边（与 App 端顶栏同一个位置：
   站名之后依次是 刷新 / 稍后读 / 主题）。既然邻居换成了 38px 的 `.icon-btn`，
   尺寸与视觉也统一交给 `.icon-btn` 那套 —— 这里只补自己需要的：正方形、无内边距。
   ⚠️ 别再写 width/height/圆角/底色，那些一律由 `.icon-btn` 决定，写重了就又跟旁边两颗不齐。 */
.hrefresh{
  width:38px; padding:0; justify-content:center; flex-shrink:0;
}
.hrefresh svg{
  fill:none; stroke:currentColor; stroke-width:1.9;
  stroke-linecap:round; stroke-linejoin:round;
}
.hrefresh.is-busy svg{ animation:xy-spin .8s linear infinite; }
@keyframes xy-spin{ to{ transform:rotate(360deg); } }

/* 顶栏「分类」按钮：导航页置顶显示（宽度 ≤960 才出现，宽屏用侧栏的分类列表） */
.hcat{
  display:none; align-items:center; gap:7px; flex-shrink:0;
  height:40px; padding:0 13px; border-radius:99px;
  background:var(--glass); border:1px solid transparent;
  color:var(--text); font:inherit; font-size:13px; font-weight:500;
  transition:border-color .28s var(--ease), background .28s var(--ease), transform .3s var(--ease);
}
.hcat:hover{ border-color:transparent; background:var(--glass-2); }
.hcat:active{ transform:scale(.97); }
.hcat__emoji{ font-size:15px; line-height:1; }
.hcat__name{ max-width:104px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hcat__chev{
  width:13px; height:13px; flex-shrink:0;
  fill:none; stroke:currentColor; stroke-width:2.2;
  transition:transform .3s var(--ease);
}
.hcat[aria-expanded="true"] .hcat__chev{ transform:rotate(180deg); }
.hcat--tag{ display:none; }   /* 标签筛选按钮：窄屏且当前页真的有标签栏时才出现 */
@media (max-width:960px){
  html[data-route="nav"] #headerCat{ display:inline-flex; }
  html[data-tagbar="on"] #headerTag{ display:inline-flex; }
  /* 搜索框 + 「分类」按钮装进一个真盒子，宽屏下再退回 display:contents */
  .header__row{ display:flex; align-items:center; gap:10px; flex:1 1 auto; min-width:0; }
  .header__row .header__search{ flex:1 1 auto; min-width:0; max-width:none; margin:0; }
}

/* 顶栏自定义快捷链接（后台里添加，最多 5 个） */
.header__links{ display:flex; align-items:center; gap:6px; flex-shrink:0; }
.hlink{
  display:inline-flex; align-items:center; gap:6px;
  height:38px; padding:0 11px; border-radius:99px;
  background:var(--glass); border:1px solid transparent;
  color:var(--text-dim); font-size:12.5px; font-weight:500;
  text-decoration:none; transition:all .28s var(--ease);
}
.hlink:hover{ color:var(--text); border-color:transparent; transform:translateY(-1px); box-shadow:none; }
.hlink__icon{ font-size:15px; line-height:1; }
.hlink__name{ display:none; max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (min-width:1500px){ .hlink__name{ display:inline; } }
/* 没有图标时：直接显示文字，任何宽度都不留空位 */
.hlink--noicon .hlink__name{ display:inline; }
.footer__hint{ color:var(--text-dim); }

.nav{
  position:relative; display:flex; align-items:center; gap:2px;
  margin-left:auto; padding:4px; flex-shrink:0;
  border-radius:99px; background:var(--glass); border:1px solid transparent;
}
.nav__glider{
  position:absolute; top:0; left:0; height:100%; width:0; opacity:0;
  border-radius:99px; background:var(--grad-soft);
  border:1px solid transparent;
  box-shadow:none;
  /* 位移走 transform（GPU 合成），不参与布局，滑动切换时更稳 */
  transform:translate3d(0,0,0);
  will-change:transform;
  transition:transform .45s var(--ease), width .45s var(--ease),
             top .45s var(--ease), height .45s var(--ease), opacity .3s ease;
  pointer-events:none;
}
.nav__item{
  position:relative; z-index:1; padding:7px 16px; border-radius:99px;
  font-size:14px; font-weight:500; color:var(--text-dim); white-space:nowrap;
  transition:color .3s var(--ease);
}
.nav__item:hover{ color:var(--text); }
.nav__item.is-active{ color:var(--text); }

/* ---------- 手机端底部 tab 栏 ----------
   窄屏时顶栏那排胶囊会藏起来（见文末 ≤640px），改用贴在屏幕底部居中的这一条。
   它是独立元素（不在 header 里），所以不受顶栏 sticky / backdrop-filter 影响。 */
.dock{ display:none; }

.header__actions{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.icon-btn{
  display:inline-flex; align-items:center; gap:7px;
  height:38px; padding:0 12px; border-radius:12px;
  color:var(--text-dim); background:var(--glass); border:1px solid transparent;
  transition:color .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
}
.icon-btn:hover{ color:var(--text); border-color:transparent; transform:translateY(-2px); }
.icon-btn svg{ fill:none; stroke:currentColor; stroke-width:1.9; }
.icon-btn kbd{
  font-family:inherit; font-size:10.5px; padding:1px 6px; border-radius:6px;
  color:var(--text-mute); background:var(--glass-hi); border:1px solid transparent;
}
#themeBtn{ width:38px; padding:0; justify-content:center; }
#themeBtn .i-moon{ display:none; }
html[data-theme="light"] #themeBtn .i-sun{ display:none; }
html[data-theme="light"] #themeBtn .i-moon{ display:block; }

/* =========================================================
   布局 / 通用
   ========================================================= */
.app{
  max-width:var(--maxw); margin:0 auto;
  padding:clamp(20px,4vw,44px) var(--pad-x) 90px;
  outline:none;
  position:relative;      /* 滑动时的"邻页"要相对它绝对定位 */
}
/* 那 90px 是给列表页留的滚动余量；阅读页 / 关于页最后一个是「返回」按钮，
   再垫 90px 就变成页脚上方空出一大块（v124 修）。
   用 :has() 而不是 html[data-route="post"] —— 文章「列表」页也是 route=post，
   但那边没有 .post-article，不该跟着收窄。 */
.app:has(.post-article){ padding-bottom:40px; }
/* 注意：动画不要用 animation-fill-mode:both —— 收尾关键帧里的 transform 会一直留在
   .page 上（计算值是 identity 矩阵而不是 none），于是 .page 成了 position:fixed 后代的
   包含块，确认弹窗 / 表情挑选器 / 分类面板都会错位。fill 用默认值，动画结束即回到无 transform。 */
.page{ animation:pageIn .45s var(--ease); }
@keyframes pageIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
/* 左右滑动切换：旧页先滑出去，新页再从对应方向滑进来
   位移用 40%（整屏 100% 要合成一块很高的图层，手机上反而更容易掉帧） */
.page--from-right{ animation:pageInRight .26s cubic-bezier(.22,.61,.36,1); }
.page--from-left{ animation:pageInLeft .26s cubic-bezier(.22,.61,.36,1); }
@keyframes pageInRight{ from{ opacity:.15; transform:translate3d(40%,0,0); } to{ opacity:1; transform:none; } }
@keyframes pageInLeft{ from{ opacity:.15; transform:translate3d(-40%,0,0); } to{ opacity:1; transform:none; } }
/* 手指还按着、页面跟手平移时：关掉入场动画和过渡，直接跟着手指走 */
.page.is-drag{ animation:none !important; transition:none !important; will-change:transform; }
/* 滑动时从侧边跟手进来的"邻页"：绝对定位盖在内容区上，不占流、不参与布局，
   位置取真页的内容区（top/左右都对齐 #app 的 padding），换页时才接得上、看不出替换 */
.page.is-ghost{
  position:absolute; top:clamp(20px,4vw,44px); left:var(--pad-x); right:var(--pad-x);
  animation:none !important; pointer-events:none; will-change:transform;
}
/* 跟手期间把溢出的部分裁掉（邻页停在视口外、真页滑出去一半），
   否则文档会被撑出横向可滚动区，纵向也会多出一截空白 */
body.is-page-move #app{ overflow:hidden; }
@supports (overflow:clip){ body.is-page-move #app{ overflow:clip; } }
/* 切页 / 拖拽期间把毛玻璃先关掉：背面内容在动的时候，backdrop-filter 每一帧都要
   重新采样 + 模糊，是中低端手机掉帧的大头。用更实的底色顶上，静态看几乎没差 */
body.is-page-move .dock{
  -webkit-backdrop-filter:none; backdrop-filter:none;
  background:color-mix(in srgb, var(--bg-soft) 96%, transparent);
}
body.is-page-move .header.is-stuck .header__inner{
  -webkit-backdrop-filter:none; backdrop-filter:none;
  background:color-mix(in srgb, var(--bg-soft) 96%, transparent);
}

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; letter-spacing:.22em; text-transform:uppercase;
  color:var(--text-mute); font-weight:600;
}
.eyebrow::before{
  content:""; width:22px; height:1px; background:var(--grad); border-radius:2px;
}
/* v188：首页标题上方那一排 —— 左边小标签，右边「最后更新 · 2026-12-02」。
   日期以前只有 App 首页有（读 app.json 的 since），网页端一直缺，手机上更看不出来
   这站还在不在更新；现在两边同一个口径。 */
.hero__meta{ display:flex; align-items:center; gap:6px 14px; flex-wrap:wrap; }
.hero__stamp{
  font-size:11.5px; letter-spacing:.1em; color:var(--text-mute);
  font-variant-numeric:tabular-nums;
}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap;
  gap:16px; margin:0 0 20px;
}
.section-head h2{
  margin:0; font-size:clamp(20px,2.6vw,26px); font-weight:700; letter-spacing:.02em;
}
.section-head p{ margin:6px 0 0; color:var(--text-dim); font-size:13.5px; }

.card{
  position:relative;
  background:var(--glass); border:1px solid transparent;
  border-radius:var(--r-lg);
  box-shadow:none;
  transition:transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
}
.card::after{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  /* 原来是 .09 的白色斜光，卡片上会显出一道白边；改成品牌色的极淡反光 */
  background:linear-gradient(140deg, rgba(124,156,255,.07), transparent 42%);
  opacity:.9;
}
.card--hover:hover{
  transform:translateY(-6px);
  border-color:transparent;
  box-shadow:none;
}

.grad-text{
  background:var(--grad);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 12px; border-radius:99px; font-size:12.5px; font-weight:500;
  background:var(--glass); border:1px solid transparent; color:var(--text-dim);
  transition:all .28s var(--ease);
  white-space:nowrap;
}
.pill svg{ width:14px; height:14px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:2; }
.pill--btn:hover{ color:var(--text); border-color:transparent; transform:translateY(-1px); }
.pill.is-active{
  color:#fff; border-color:transparent;
  background:var(--grad); box-shadow:none;
}
html[data-theme="light"] .pill.is-active{ color:#fff; }

/* =========================================================
   首页 · Hero
   ========================================================= */
.hero{
  position:relative; padding:clamp(28px,5vw,64px) 0 clamp(24px,4vw,44px);
  display:grid; grid-template-columns:minmax(0,1.35fr) minmax(240px,.7fr);
  gap:clamp(24px,4vw,56px); align-items:center;
}
.hero__title{
  margin:20px 0 0; font-size:clamp(38px,7vw,74px); line-height:1.04; font-weight:800;
  letter-spacing:-.02em;
}
.hero__title .line{ display:block; }
.hero__rotator{
  display:inline-flex; align-items:baseline; min-width:4em;
}
.hero__rotator span{
  display:inline-block; animation:wordIn .6s var(--ease);
}
@keyframes wordIn{ from{ opacity:0; transform:translateY(14px) rotateX(-40deg); } to{ opacity:1; transform:none; } }
.hero__desc{
  margin:22px 0 0; max-width:52ch; color:var(--text-dim);
  font-size:clamp(14.5px,1.6vw,16.5px); line-height:1.85;
}
.hero__cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.btn{
  display:inline-flex; align-items:center; gap:9px;
  height:48px; padding:0 24px; border-radius:14px;
  font-size:14.5px; font-weight:600; letter-spacing:.02em;
  transition:all .35s var(--ease); white-space:nowrap;
}
.btn svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; }
.btn--primary{
  color:#080a12; background:var(--grad);
  box-shadow:none;
}
html[data-theme="light"] .btn--primary{ color:#080a12; }
/* v140：浅色主题里主按钮曾经硬写白字，压在亮渐变上最浅的一段只有 1.59:1，
   比深色主题（深墨 6.8~12.5:1）差一大截。改回深墨，两套主题一个观感。 */
.btn--primary:hover{ transform:translateY(-3px); box-shadow:none; }
.btn--ghost{
  color:var(--text-dim); background:var(--glass); border:1px solid transparent;
}
.btn--ghost:hover{ color:var(--text); border-color:transparent; transform:translateY(-3px); }

/* 头像卡 */
.hero__portrait{
  position:relative; justify-self:center; width:min(300px,72vw); aspect-ratio:1;
  border-radius:32px;
}
.hero__portrait::before{
  content:""; position:absolute; inset:-2px; border-radius:36px;
  background:conic-gradient(from 0deg, var(--a1), var(--a2), var(--a3), var(--a1));
  filter:blur(18px); opacity:.5; z-index:-1;
}
.portrait-inner{
  position:relative; height:100%; border-radius:30px; overflow:hidden;
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(124,156,255,.34), transparent 58%),
    radial-gradient(120% 90% at 78% 88%, rgba(180,124,255,.32), transparent 60%),
    var(--glass-2);
  border:1px solid transparent;
  display:grid; place-items:center;
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
}
.portrait-inner svg{ width:56%; height:56%; filter:drop-shadow(0 12px 30px rgba(124,156,255,.5)); }
/* 用自定义图片替换内置插画时 */
.portrait-inner--img{ padding:0; }
.portrait-img{ display:block; width:100%; height:100%; }

/* ---- 大图形状（后台「首页内容 → 首屏图片 → 大图形状」） ----
   square 正方形：原来的样子，300px 见方。
   wide   长方形：铺满右栏、16:9，适合横幅 / 截图这类长图（右栏窄的时候不至于只剩一条）。
   auto   跟随原图比例：完全不裁，高度由图片自己撑开 —— 方图、长图、竖图都对。 */
.hero__portrait--wide{
  width:100%; max-width:520px; aspect-ratio:16 / 9; border-radius:24px;
}
.hero__portrait--wide::before{ border-radius:28px; }
.hero__portrait--wide .portrait-inner{ border-radius:22px; }
.hero__portrait--auto{
  width:100%; max-width:520px; aspect-ratio:auto; height:auto; border-radius:24px;
}
.hero__portrait--auto::before{ border-radius:28px; }
.hero__portrait--auto .portrait-inner{ border-radius:22px; height:auto; }
.hero__portrait--auto .portrait-img{ height:auto; }
/* 大图设了跳转：整块变成链接，给一点点「能点」的反馈 */
.hero__portrait--link{ display:block; text-decoration:none; }
.hero__portrait--link .portrait-inner{ transition:transform .45s var(--ease); }
.hero__portrait--link:hover .portrait-inner{ transform:translateY(-4px); }
.hero__portrait--link::after{
  content:"↗"; position:absolute; right:14px; top:12px; z-index:2;
  width:26px; height:26px; border-radius:50%;
  display:grid; place-items:center; font-size:13px; line-height:1;
  color:var(--text); background:var(--glass-hi);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  opacity:0; transform:scale(.8); transition:all .35s var(--ease);
}
.hero__portrait--link:hover::after{ opacity:1; transform:none; }
.portrait-badge{
  position:absolute; left:50%; bottom:-16px; transform:translateX(-50%);
  padding:8px 18px; border-radius:99px; white-space:nowrap;
  font-size:12.5px; font-weight:600; color:var(--text);
  background:var(--glass-hi); border:1px solid transparent;
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  box-shadow:none;
}

/* 数据条 */
.stats{
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
  margin-top:clamp(24px,4vw,44px);
}
.stat{
  padding:20px 18px; border-radius:var(--r);
  background:var(--glass); border:1px solid transparent;
  transition:transform .45s var(--ease), border-color .4s var(--ease);
}
.stat:hover{ transform:translateY(-5px); border-color:transparent; }
.stat b{
  display:block; font-size:clamp(26px,3.4vw,36px); font-weight:800;
  font-variant-numeric:tabular-nums; letter-spacing:-.01em;
}
.stat span{ display:block; margin-top:4px; font-size:12.5px; color:var(--text-mute); letter-spacing:.06em; }

/* =========================================================
   首页 · Bento 入口
   ========================================================= */
.bento{
  display:grid; gap:16px; margin-top:clamp(30px,5vw,56px);
  grid-template-columns:repeat(6,1fr);
}
/* 一张卡内部：图标 + 标题 排一行，「进入 →」推到行的最右，说明文字另起一行。
   以前是「图标 / 标题 / 说明 / 按钮」竖着摞四行，卡片很高、右上角还空一大块；
   现在标题紧挨图标、按钮靠右，说明放在标题下面（手机端说明干脆顶到图标左边，省宽度）。 */
.bento__item{
  grid-column:span 2;
  display:grid; grid-template-columns:auto 1fr auto;
  column-gap:14px; row-gap:7px; align-items:center;
  padding:22px 24px; overflow:hidden;
}
.bento__item--wide{ grid-column:span 3; }
.bento__icon{
  grid-area:1 / 1 / 2 / 2;
  display:grid; place-items:center; width:52px; height:52px; border-radius:16px;
  font-size:24px; background:var(--glass-hi); border:1px solid transparent;
  box-shadow:none;
  transition:transform .5s var(--ease);
}
.bento__item:hover .bento__icon{ transform:translateY(-4px) scale(1.08) rotate(-6deg); }
.bento__item h3{
  grid-area:1 / 2 / 2 / 3; min-width:0;
  margin:0; font-size:19px; font-weight:700;
}
.bento__item p{
  grid-area:2 / 2 / 3 / 4;
  margin:0; color:var(--text-dim); font-size:13.5px; line-height:1.75;
}
.bento__go{
  grid-area:1 / 3 / 2 / 4; justify-self:end; align-self:center;
  display:inline-flex; align-items:center; gap:7px; margin:0;
  font-size:13.5px; font-weight:600; color:var(--text); white-space:nowrap;
}
.bento__go svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; transition:transform .35s var(--ease); }
.bento__item:hover .bento__go svg{ transform:translateX(5px); }
.bento__spark{
  position:absolute; right:-40px; top:-40px; width:150px; height:150px; border-radius:50%;
  background:radial-gradient(circle, rgba(180,124,255,.4), transparent 66%);
  opacity:.75; transition:transform .6s var(--ease);
}
.bento__item:hover .bento__spark{ transform:scale(1.35); }

/* 大屏（≥1180px）：一行最多 4 列。
   6 列 + 每张占 2 列的老排法一行只放得下 3 张，4 张卡时第 4 张会孤零零落到第二行、
   右边还空一大块。改成 4 列后 4 张正好铺满一行。
   卡变窄了，所以图标和内距跟着收一点，标题才不会被挤成两行。 */
@media (min-width:1180px){
  .bento{ grid-template-columns:repeat(4,1fr); }
  .bento__item,
  .bento__item:last-child{ grid-column:span 1; padding:20px; column-gap:12px; }
  .bento__item--wide{ grid-column:span 2; }
  .bento__icon{ width:46px; height:46px; border-radius:14px; font-size:21px; }
  .bento__item h3{ font-size:17.5px; }
  .bento__item p{ font-size:12.8px; line-height:1.7; }
}

/* 首页精选轨道 */
.featured{ margin-top:clamp(34px,5vw,60px); }
.track{
  display:grid; grid-auto-flow:column; grid-auto-columns:minmax(250px,1fr);
  gap:14px; overflow-x:auto; padding:4px; scroll-snap-type:x mandatory;
  /* 藏掉那条横向滚动条（v125）：轨道本来就能触控板横滑 / Shift+滚轮 / 手机上用手指划，
     卡片底下再挂一条灰条纯属打扰；右边切半张卡的边缘已经暗示「还能往右看」。
     原来 padding-bottom 的 16px 是给它让位的，一起收到 4px。 */
  scrollbar-width:none; -ms-overflow-style:none;
}
.track::-webkit-scrollbar{ display:none; }
.feature-card{
  scroll-snap-align:start; padding:20px; min-width:250px;
  display:flex; flex-direction:column; gap:10px;
}
.feature-card__top{ display:flex; align-items:center; gap:10px; }
.feature-card h4{ margin:2px 0 0; font-size:15.5px; font-weight:600; }
.feature-card p{ margin:0; font-size:12.8px; color:var(--text-dim); line-height:1.7; white-space:pre-line;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.feature-card__meta{ margin-top:auto; display:flex; align-items:center; gap:8px; font-size:11.5px; color:var(--text-mute); }

/* =========================================================
   图标 / 徽标
   ========================================================= */
.glyph{
  display:grid; place-items:center; flex-shrink:0;
  border-radius:12px; font-weight:700; color:#fff;
  border:1px solid transparent;
  box-shadow:none;
  letter-spacing:.02em; text-transform:uppercase;
}
.glyph--sm{ width:34px; height:34px; font-size:14px; border-radius:10px; }
.glyph--md{ width:44px; height:44px; font-size:17px; }
.glyph--lg{ width:52px; height:52px; font-size:19px; border-radius:15px; }

/* =========================================================
   导航页
   ========================================================= */
.page-head{ margin-bottom:clamp(20px,3vw,32px); }
.page-head h1{
  margin:14px 0 0; font-size:clamp(30px,5vw,46px); font-weight:800; letter-spacing:-.02em;
}
.page-head p{ margin:14px 0 0; max-width:60ch; color:var(--text-dim); font-size:15px; }
/* 导航页标题区：右侧放统计与「只看收藏」，不另占一整行 */
.page-head--nav{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:18px 28px; flex-wrap:wrap;
}
.page-head--nav .page-head__main{ min-width:0; }
.page-head__side{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding-bottom:8px;
}
/* 分享页标题区：右侧放概览数字，避免右边一整块留白 */
.page-head--share{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:20px 40px; flex-wrap:wrap;
}
.page-head--share .page-head__main{ min-width:0; flex:1 1 420px; }
.page-head--share h1{ margin-top:12px; }
.page-head--share p{ max-width:56ch; }
.page-head--share .page-head__side{ padding-bottom:6px; }
.head-stats{ display:flex; gap:10px; flex-wrap:wrap; }
.head-stat{
  min-width:110px; padding:13px 18px; border-radius:16px;
  display:flex; flex-direction:column; gap:1px;
  background:var(--glass); border:1px solid transparent;
  box-shadow:none;
}
.head-stat b{
  font-size:25px; font-weight:800; line-height:1.15; letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
  background:var(--grad);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.head-stat span{ font-size:12px; color:var(--text-mute); letter-spacing:.02em; }
.nav-meta{ font-size:13px; color:var(--text-mute); white-space:nowrap; }
.nav-meta b{ color:var(--text); font-weight:700; font-variant-numeric:tabular-nums; }
.head-toggle{ display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 15px; border-radius:99px; white-space:nowrap; }
.head-toggle[aria-pressed="true"]{
  color:#080a12; border-color:transparent; background:var(--grad);
  box-shadow:none;
}
.searchbox__clear{
  position:absolute; right:12px; display:none; place-items:center;
  width:26px; height:26px; border-radius:8px; color:var(--text-mute);
  background:var(--glass-hi); border:1px solid transparent;
  transition:color .25s var(--ease), background .25s var(--ease);
}
.searchbox__clear:hover{ color:var(--text); }
.searchbox__clear svg{ position:static; width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:2; }
.searchbox.has-value .searchbox__clear{ display:grid; }

/* 导航页两栏：左「分类栏」、右「标题 + 卡片」。
   标题区不再横跨整页摆在最上面，而是放进右栏顶端 —— 这样它跟卡片左边缘对齐，
   左栏空出来的上方位置正好让分类栏顶上去（分类栏从页面顶端开始，一直吸顶）。
   用 grid-template-areas 命名摆位，DOM 顺序仍是 标题 → 分类栏 → 正文，
   读屏和手机端拿到的顺序不变。 */
.nav-layout{
  display:grid; grid-template-columns:var(--rail-w, clamp(276px,18vw,330px)) minmax(0,1fr);
  grid-template-areas:
    "rail head"
    "rail body";
  column-gap:clamp(18px,3vw,34px); row-gap:0;
  margin-top:6px; align-items:start;
}
.nav-layout > .cat-rail{ grid-area:rail; }
.nav-layout > .nav-body{ grid-area:body; }
.nav-layout > .page-head--nav{ grid-area:head; }
/* 搜索/收藏结果：没有分类栏，单栏铺满，标题回到页宽左边缘。
   选择器写成两个类，是为了压过下面窄屏那条 .nav-layout 的摆位（否则会多出一行空行） */
.nav-layout.nav-layout--solo{ grid-template-columns:minmax(0,1fr); grid-template-areas:"body"; margin-top:26px; }
/* 分类栏：双列；分类很多时整栏自己滚动，顶部还有筛选框 */
.cat-rail{
  position:sticky; top:calc(var(--header-h, 96px) + 16px);
  max-height:calc(100vh - var(--header-h, 96px) - 44px);
  overflow-y:auto; overscroll-behavior:contain;
  padding-right:4px;
}
/* 分类栏不露滚动条：照样能滚（触控板 / 滚轮 / 触屏），只是不画那条竖杠 */
.cat-rail,
.cat-rail__list{ scrollbar-width:none; -ms-overflow-style:none; }
.cat-rail::-webkit-scrollbar,
.cat-rail__list::-webkit-scrollbar{ width:0; height:0; display:none; }
.cat-rail__head{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin:0 0 8px 12px;
}
.cat-rail__title{
  margin:0;
  font-size:11.5px; letter-spacing:.2em; color:var(--text-mute);
  text-transform:uppercase; font-weight:600;
}
.cat-rail__n{
  margin-left:7px; letter-spacing:.06em; font-variant-numeric:tabular-nums;
  color:var(--text-mute);
}
/* 手机端才会变成底部选择面板；桌面端 display:contents → 筛选框和列表直接参与侧栏排版 */
.cat-rail__sheet{ display:contents; }
.cat-rail__scrim,
.cat-rail__bar,
.cat-rail__sheethead{ display:none; }
/* 分类胶囊：列数（--rail-cols）和行高（--rail-row）由 JS 按「屏幕能放几行」算，
   保证一屏装下全部分类、左栏不需要滚动条。 */
.cat-rail__list{
  display:grid;
  grid-template-columns:repeat(var(--rail-cols, 2), minmax(0,1fr));
  grid-auto-rows:var(--rail-row, 34px);
  gap:4px 6px; align-content:start;
}
.cat-filter{
  display:flex; align-items:center; gap:8px; height:36px; padding:0 11px;
  margin:0 0 8px; border-radius:var(--r-sm);
  background:var(--glass); border:1px solid transparent;
  transition:border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.cat-filter:focus-within{ border-color:transparent; box-shadow:0 0 0 4px rgba(124,156,255,.14); }
.cat-filter svg{ width:15px; height:15px; flex-shrink:0; fill:none; stroke:var(--text-mute); stroke-width:2; }
.cat-filter input{
  flex:1; min-width:0; height:100%; border:0; outline:none; background:none;
  font-family:inherit; font-size:13px; color:var(--text);
}
.cat-filter input::placeholder{ color:var(--text-mute); }
.cat-filter input::-webkit-search-cancel-button,
.cat-filter input::-webkit-search-decoration{ -webkit-appearance:none; appearance:none; display:none; }
.cat-filter__empty{
  grid-column:1 / -1; margin:8px 0 4px 12px;
  font-size:12.5px; color:var(--text-mute);
}
.cat-item{
  display:flex; align-items:center; gap:8px; width:100%; min-width:0;
  padding:6px 9px; border-radius:10px; font-size:13px; color:var(--text-dim);
  border:1px solid transparent; transition:all .3s var(--ease); text-align:left;
}
.cat-item.is-hidden{ display:none; }
.cat-item:hover{ color:var(--text); background:var(--glass); }
.cat-item.is-active{
  color:var(--text); background:var(--glass-2); border-color:transparent;
  box-shadow:none;
}
.cat-item__name{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
/* 分类 emoji：独立一层，后台关掉「分类图标」时整块消失（不会留空位）。
   不用 flex 包名字，是为了保住长分类名的省略号。 */
.cat-ico{ line-height:1; margin-right:5px; }
.cat-item__count{ font-size:11.5px; color:var(--text-mute); font-variant-numeric:tabular-nums; }
/* 后台「站点信息 → 显示项 → 分类后面的站点数」可以整列关掉：
   数字本身不占宽度（flex 里是 auto），关掉后分类名直接铺满整行。
   App 端读同一个 nav.count，表现一致。 */
html[data-cat-count="off"] .cat-item__count{ display:none; }

.nav-body{ min-width:0; }
/* 分类块：现在一次全铺出来（50 类 / 2078 张卡，两万多节点）。
   content-visibility:auto 让视口外的块直接跳过布局与绘制，滚到哪儿才渲染哪儿 ——
   相当于浏览器自带的虚拟滚动，不必再自己折叠。contain-intrinsic-size 里的 auto
   会记住每块的真实高度，滚动条长度不会跳。
   这些块都带 id（分类栏点击要滚过去），浏览器对 content-visibility:auto 的元素
   做 scrollIntoView / 锚点跳转时会先按需布局，所以位置照样准。 */
.cat-block{
  margin-bottom:clamp(20px,3vw,32px);
  scroll-margin-top:calc(var(--header-h, 96px) + 24px);
  content-visibility:auto;
  contain-intrinsic-size:auto 720px;
}
.cat-block__head{
  display:flex; align-items:center; gap:12px; margin-bottom:12px;
}
.cat-block__head h2{ margin:0; font-size:18px; font-weight:700; flex-shrink:0; }
.cat-block__head .count{
  font-size:12.5px; color:var(--text-mute);
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* ---------- 分类折叠（已取消：改成默认全部显示，靠 content-visibility 省开销） ---------- */

/* 卡片宽度由文字决定（不是固定列宽）：一行排不下就整张换到下一行。
   以前是 repeat(auto-fill,minmax(232px,1fr)) 的网格，列宽固定 ——
   站名短的卡里空一大块，站名长的就被省略成 "…"，2078 张卡里有 581 张是截断的。
   改成 flex 换行后，名字多长卡片就多宽。
   v119 起卡片里不再挂 ☆ / ⧉ 两颗常驻按钮（它们以前还占掉 62px、把卡片顶到 48px 高），
   收藏 / 复制改到右键菜单里（电脑右键、手机长按），所以卡片宽度 = 名字 + 内距。 */
.link-grid{
  display:flex; flex-wrap:wrap; align-items:stretch; gap:8px;
}
.link-card{
  position:relative; display:flex; align-items:center; gap:10px;
  flex:0 1 auto; min-width:0; max-width:100%;   /* 宽度跟着内容走；超长名字才允许缩（缩的时候末尾省略） */
  /* v127：上下收到 6px、左右放到 15px —— 卡片变扁、名字两边松一点，
     两千张铺开时行距不再那么「一格一格」的。 */
  padding:6px 15px; border-radius:var(--r);
  /* 不画底色、不描边：卡片直接贴在页面的极光背景上，靠间距和留白分组。
     边框留着但是透明色，只为让排版尺寸和以前一模一样（不会因为去掉 1px 而挪位）。 */
  background:none; border:1px solid transparent;
  transition:background .3s var(--ease), border-color .3s var(--ease);
  overflow:hidden;
}
/* 高亮只加一点点蓝调底色 + 标题变色，绝不做位移/放大 */
.link-card:hover{
  background:rgba(124,156,255,.085);
  border-color:transparent;
  box-shadow:none;
  transform:none;
}
.link-card__body{ min-width:0; flex:1; }
.link-card__name{
  display:flex; align-items:center; gap:6px;
  /* 600 在大面积铺开时会糊成一片「全是粗体」（一页两千张卡），降到 500：
     PingFang 的 Medium，比正文重一点、又不至于抢眼。 */
  font-size:14.5px; font-weight:500; line-height:1.25;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
/* 站点名单独包一层：桌面端就在这一行里省略；手机端列窄，改成最多折两行（见窄屏那段） */
.link-card__nmtxt{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.link-card__desc{
  margin-top:2px; font-size:12px; color:var(--text-mute);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ---------- 三个显示开关（后台「站点信息 → 显示项」，默认全关） ----------
   挂 <html data-*> 上，改一次属性全站立刻生效，不用重渲染两万张卡。
   ① data-icons  卡片左侧的彩色方块图标
   ② data-desc   卡片名称下面那行介绍 / 域名
   ③ data-cat-icon  分类名前面的 emoji（🎨 设计天才）        */
html[data-icons="off"] .link-card .glyph{ display:none; }
html[data-desc="off"] .link-card__desc{ display:none; }
html[data-cat-icon="off"] .cat-ico,
html[data-cat-icon="off"] #headerCatEmoji{ display:none; }

/* 图标和介绍都关掉时，卡片就是一行名字：只把间距收一点，卡片更紧凑。
   （内距不再单独改 —— 默认就是「图标关 + 描述关」，以前这里写死 padding:4px 11px，
   特异性比密度档高，导致紧凑 / 宽松两档的内距其实一直没生效过。v127 交给基础值。） */
@media (min-width:641px){
  html[data-icons="off"][data-desc="off"] .link-card{ gap:8px; }
  html[data-icons="off"][data-desc="off"] .link-grid{ gap:5px; }
}

/* ---------- 置顶 ---------- */
/* 卡片已经没有描边了，置顶改用一层很淡的底 + 那个 📌 小图钉来区分 */
.link-card.is-pinned{ background:rgba(124,156,255,.06); }
.link-card .pin{ font-style:normal; font-size:10px; line-height:1; flex-shrink:0; opacity:.9; }

/* ---------- 最近访问 / 最常去 ---------- */
.recent{ margin:0 0 26px; }
.recent__head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 12px; }
.recent__head h2{ margin:0; font-size:15px; font-weight:700; letter-spacing:.02em; }
.recent__head .count{ font-size:12.5px; color:var(--text-mute); }
.recent__ops{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.recent__clear{
  font-size:12.5px; color:var(--text-mute); padding:5px 10px; border-radius:99px;
  border:1px solid transparent; transition:all .25s var(--ease);
}
.recent__clear:hover{ color:#e2675c; border-color:transparent; }
.recent__rail{
  display:flex; gap:8px; overflow-x:auto; padding:2px 2px 6px;
  /* 同「今日精选」：滑得动就行，底下别挂一条滚动条 */
  scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch;
}
.recent__rail::-webkit-scrollbar{ display:none; }
.recent-chip{
  display:inline-flex; align-items:center; gap:6px; flex-shrink:0;
  padding:8px 14px; border-radius:99px; font-size:13px; color:var(--text-dim);
  background:var(--glass); border:1px solid transparent;
  transition:all .3s var(--ease);
}
.recent-chip:hover{ color:var(--text); border-color:transparent; transform:translateY(-2px); }
.recent-chip__n{
  font-style:normal; font-size:10.5px; font-weight:700; padding:1px 5px; border-radius:99px;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text-mute);
}

/* ---------- 卡片密度（后台「站点信息」可切） ----------
   现在卡片宽度由文字决定，密度只调「字号 / 内距 / 间距」，不再改列宽。
   只在宽屏生效：手机端有自己的一套（见 max-width:640px 那条规则）。 */
@media (min-width:641px){
  html[data-density="compact"] .link-grid{ gap:4px; }
  html[data-density="compact"] .link-card{ padding:3px 11px; gap:6px; border-radius:10px; }
  html[data-density="compact"] .link-card__name{ font-size:13.5px; }
  html[data-density="compact"] .link-card__desc{ font-size:11px; }
  html[data-density="comfy"] .link-grid{ gap:10px; }
  html[data-density="comfy"] .link-card{ padding:15px 20px; gap:12px; }
  html[data-density="comfy"] .link-card__name{ font-size:15.5px; }
  html[data-density="comfy"] .link-card__desc{ font-size:12.5px; margin-top:4px; }
}

/* 链接卡片的小菜单：手机长按弹在手指上方、电脑右键弹在指针处。
   卡片上那两颗常驻的 ☆ / ⧉ 已经去掉了，收藏和复制都走这里。 */
.card-menu{
  position:fixed; z-index:130;
  user-select:none; -webkit-user-select:none;
  display:flex; flex-direction:column; min-width:150px; padding:6px;
  border-radius:16px; background:var(--glass-hi);
  border:1px solid transparent;
  box-shadow:none;
  -webkit-backdrop-filter:blur(26px) saturate(150%);
  backdrop-filter:blur(26px) saturate(150%);
  animation:menuIn .18s var(--ease);
}
@keyframes menuIn{ from{ opacity:0; transform:translateY(6px) scale(.96); } to{ opacity:1; transform:none; } }
.card-menu__i{
  display:flex; align-items:center; gap:9px;
  height:40px; padding:0 12px; border-radius:11px;
  color:var(--text); font:inherit; font-size:13.5px; text-align:left;
  transition:background .2s var(--ease);
}
.card-menu__i:hover{ background:var(--glass); }
.card-menu__i svg{ width:16px; height:16px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.9; }
/* 已收藏那一项：文字和星都用 --star（浅色主题会切成深琥珀，保证看得清）。
   再垫一层同色淡底，让「已选中」不只靠颜色区分。 */
.card-menu__i.is-on{
  color:var(--star);
  background:color-mix(in srgb, var(--star) 14%, transparent);
}
.card-menu__i.is-on:hover{ background:color-mix(in srgb, var(--star) 22%, transparent); }
.card-menu__i.is-on svg{ fill:currentColor; }

/* 导航页标题下那句「右键 / 长按 卡片可以收藏或复制」：按设备二选一显示 */
.hint-touch{ display:none; }
@media (hover:none){
  .hint-desk{ display:none; }
  .hint-touch{ display:inline; }
}

.empty{
  display:grid; place-items:center; gap:12px;
  padding:70px 20px; text-align:center;
  border-radius:var(--r-lg); border:1px dashed transparent;
  background:var(--glass);
}
.empty__emoji{ font-size:40px; }
.empty h3{ margin:0; font-size:17px; }
/* 空状态也可以当页面的主标题用（比如「这篇找不到了」整页只有这一句） */
.empty__title{ margin:0; font-size:17px; font-weight:700; letter-spacing:0; }
.empty__acts{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:4px; }
.empty p{ margin:0; color:var(--text-mute); font-size:13.5px; }

/* 本机存着旧副本时的说明块
   404 页：接在「这篇找不到了」下面，是同一块卡片的下半部分（只有一条分隔线，不另起盒子）
   列表页：--inline，独立的一条提示卡 */
.local-shadow{
  width:100%; max-width:540px; margin:4px auto 0; padding:18px 2px 0;
  display:grid; gap:9px; text-align:left;
  border-top:1px solid var(--border);
}
.local-shadow > b{ font-size:14px; line-height:1.6; }
.local-shadow > p{ margin:0; font-size:13px; line-height:1.75; color:var(--text-mute); }
.local-shadow .btn{ justify-self:start; margin-top:2px; }
.local-shadow__note{ font-size:12.2px !important; color:var(--text-dim) !important; }
.local-shadow--inline{
  max-width:none; margin:0 0 22px; padding:16px 18px; gap:7px;
  border-top:0; border-radius:var(--r-lg);
  background:var(--glass); border:1px solid var(--border);
}
.local-shadow--inline > b{ font-size:13.2px; }
.local-shadow--inline > p{ font-size:12.6px; }

/* =========================================================
   分享页
   ========================================================= */
/* 标签筛选条：桌面端做成一条独立控制条
   左「标签」引导 | 中间胶囊按行铺开 | 右侧实时条数（把行尾空白用起来） */
.tag-bar{
  display:flex; align-items:center; gap:12px;
  margin:22px 0 32px; padding:10px 16px 10px 13px;
  border-radius:18px;
  background:var(--glass); border:1px solid transparent;
  box-shadow:none;
}
.tag-bar__lead{
  display:inline-flex; align-items:center; align-self:stretch;
  flex:0 0 auto; white-space:nowrap;
  padding:0 14px 0 4px;
  font-size:12px; font-weight:600; letter-spacing:.1em;
  color:var(--text-dim);
  border-right:1px solid transparent;
}
.tag-bar__chips{ display:flex; flex-wrap:wrap; gap:8px; flex:1 1 auto; min-width:0; }
.tag-bar__stat{
  flex:0 0 auto; margin-left:auto; white-space:nowrap;
  font-size:12px; color:var(--text-mute); font-variant-numeric:tabular-nums;
}
.tag-bar__stat b{ color:var(--text-dim); font-weight:700; }
/* 筛选条里的胶囊比卡片里的标签大一号，点起来更稳 */
.tag-bar .tag{ padding:6px 14px; font-size:12.5px; border-radius:99px; }
.tag-bar .tag.is-active{ box-shadow:none; }
/* 分享页的标签筛选：宽屏是一排胶囊；窄屏（≤960）收进顶栏的「标签」按钮 + 底部面板
   桌面端 sheet 用 display:contents，让标签胶囊直接参与页面排版 */
.tag-rail__sheet{ display:contents; }
.tag-rail__scrim,
.tag-rail__bar,
.tag-rail__head{ display:none; }
.tag-rail__n{
  letter-spacing:.06em; font-variant-numeric:tabular-nums;
  color:var(--text-mute);
}
.timeline{ position:relative; padding-left:0; }
.tl-group{ margin-top:32px; }
.tl-group:first-child{ margin-top:2px; }

/* 日期胶囊：和站内其他组件一个量级 */
.tl-date{
  position:sticky; top:calc(var(--header-h, 96px) + 10px); z-index:10;
  display:inline-flex; align-items:center; gap:11px;
  margin:0 0 16px; padding:10px 20px 10px 17px; border-radius:99px;
  font-size:15px; font-weight:700; letter-spacing:.01em; color:var(--text);
  background:color-mix(in srgb, var(--bg) 84%, transparent);
  border:1px solid transparent;
  box-shadow:none;
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
}
html[data-theme="light"] .tl-date{ box-shadow:none; }
.tl-date::before{
  content:""; width:9px; height:9px; border-radius:50%; flex-shrink:0;
  background:var(--grad); box-shadow:none;
}
.tl-date__week{ font-size:12.5px; font-weight:500; color:var(--text-mute); }
.tl-date__day{ font-variant-numeric:tabular-nums; }
.tl-date__n{
  display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 8px;
  border-radius:99px; font-size:11.5px; font-weight:700;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text-dim);
}

/* 同一天的内容：并排成一行（一张时铺满） */
.tl-cards{ display:grid; grid-template-columns:minmax(0,1fr); gap:12px; align-items:stretch; }
.tl-cards > :only-child{ grid-column:1 / -1; }

/* v129：卡片前面那个 46px 的彩色图标方块去掉了，所以这里不再是两列网格，
   整张卡就是一块「标题 + 说明 + 标签」的文字区（窄屏也不用再拆包裹层）。 */
.feed-card{
  display:block;
  padding:20px 22px;
  border-radius:var(--r-lg);
  /* 同上：不铺白底、不描边，hover 只换一层淡蓝底 */
  background:none; border:1px solid transparent;
  transition:background .35s var(--ease), border-color .3s var(--ease);
}
.feed-card:hover{
  background:rgba(124,156,255,.075);
  border-color:transparent;
  box-shadow:none;
  transform:none;
}
.feed-card__body{ display:block; min-width:0; }
/* v140：链接填错的分享条目（url 是空 / 只有 '#' / 相对路径）不再包成 <a>，
   渲染成这一版：外观和普通卡片一致，但去掉「可以点」的所有暗示——
   不出现指针手势、不出现 hover 变色和那个 ↗ 小图标（图标由 JS 不输出）。 */
.feed-card--nolink{ cursor:default; }
.feed-card--nolink:hover{ background:none; }
.feed-card--nolink:hover .feed-card__title{ color:inherit; }
.feed-card__title{
  display:inline-flex; align-items:center; gap:8px;
  margin:0; font-size:16.5px; font-weight:700; transition:color .3s var(--ease);
}
.feed-card__title svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2;
  opacity:.45; transition:all .3s var(--ease); }
.feed-card:hover .feed-card__title{ color:var(--ink-a1); }
.feed-card:hover .feed-card__title svg{ opacity:1; transform:none; }
/* v141：描述里的换行要照原样显示 —— 后台编辑框是 4 行 textarea，人家按了回车，
   预览卡和前台卡片以前会把它抹成一整段（看着像「预览没跟着变」）。
   pre-line 只保换行、仍然折叠多余空格，最贴近「所见即所得」。 */
.feed-card__desc{ margin:8px 0 0; color:var(--text-dim); font-size:13.8px; line-height:1.8; white-space:pre-line; }
.feed-card__tags{ display:flex; flex-wrap:wrap; gap:7px; margin-top:13px; }
.tag{
  display:inline-flex; align-items:center;
  padding:4px 11px; border-radius:99px;
  font-size:12px; font-weight:500; line-height:1.45;
  color:var(--text-dim); background:var(--glass); border:1px solid transparent;
  transition:all .28s var(--ease); cursor:pointer;
}
.tag:hover{ color:var(--text); border-color:transparent; background:var(--glass-hi); }
.tag.is-active{ color:#080a12; border-color:transparent; background:var(--grad); }

/* =========================================================
   搜索面板
   ========================================================= */
.palette{ position:fixed; inset:0; z-index:90; display:grid; place-items:start center; }
.palette[hidden]{ display:none; }
.palette__scrim{
  position:absolute; inset:0; background:rgba(3,4,9,.66);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  animation:fade .3s var(--ease);
}
@keyframes fade{ from{ opacity:0; } }
.palette__panel{
  position:relative; width:min(640px,92vw); margin-top:12vh;
  border-radius:var(--r-lg); overflow:hidden;
  background:color-mix(in srgb, var(--bg-soft) 88%, transparent);
  border:1px solid transparent;
  box-shadow:none;
  backdrop-filter:blur(30px) saturate(160%); -webkit-backdrop-filter:blur(30px) saturate(160%);
  animation:paletteIn .38s var(--ease);
}
@keyframes paletteIn{ from{ opacity:0; transform:translateY(-16px) scale(.97); } }
.palette__head{
  display:flex; align-items:center; gap:12px; padding:15px 18px;
  border-bottom:1px solid transparent;
}
.palette__head svg{ width:19px; height:19px; fill:none; stroke:var(--text-mute); stroke-width:2; flex-shrink:0; }
.palette__head input{
  flex:1; background:none; border:0; outline:none;
  font-size:16px; color:var(--text);
}
.palette__head input::placeholder{ color:var(--text-mute); }
.palette__esc{
  font-family:inherit; font-size:10.5px; padding:3px 8px; border-radius:7px;
  color:var(--text-mute); background:var(--glass-hi); border:1px solid transparent;
}
.palette__list{ max-height:min(52vh,440px); overflow-y:auto; padding:8px; }
.palette__group{ padding:10px 12px 6px; font-size:11px; letter-spacing:.18em; color:var(--text-mute); text-transform:uppercase; font-weight:600; }
.palette__item{
  display:flex; align-items:center; gap:12px; padding:10px 12px;
  border-radius:12px; cursor:pointer; transition:background .18s var(--ease);
}
.palette__item.is-sel{ background:var(--glass-2); }
.palette__item .glyph{ width:32px; height:32px; font-size:13px; border-radius:9px; }
.palette__item__txt{ min-width:0; flex:1; }
.palette__item__name{ font-size:14.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.palette__item__sub{ font-size:11.5px; color:var(--text-mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.palette__item__hint{ font-size:11px; color:var(--text-mute); flex-shrink:0; }
.palette__foot{
  display:flex; align-items:center; gap:16px; padding:11px 18px;
  border-top:1px solid transparent; font-size:11.5px; color:var(--text-mute);
}
.palette__foot kbd{
  font-family:inherit; padding:1px 6px; border-radius:6px; margin-right:3px;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text-dim);
}
.palette__hint{ margin-left:auto; }

/* ---------- 快捷键说明面板 ---------- */
.keys{ position:fixed; inset:0; z-index:92; display:grid; place-items:center; padding:24px; }
.keys[hidden]{ display:none; }
.keys__scrim{
  position:absolute; inset:0; background:rgba(3,4,9,.66);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  animation:fade .3s var(--ease);
}
.keys__panel{
  position:relative; width:min(520px,94vw); max-height:min(86vh,720px);
  display:flex; flex-direction:column; overflow:hidden;
  border-radius:var(--r-lg);
  background:color-mix(in srgb, var(--bg-soft) 90%, transparent);
  border:1px solid transparent;
  box-shadow:none;
  backdrop-filter:blur(30px) saturate(160%); -webkit-backdrop-filter:blur(30px) saturate(160%);
  animation:paletteIn .38s var(--ease);
}
.keys__head{
  display:flex; align-items:center; gap:10px; padding:15px 18px;
  border-bottom:1px solid transparent;
}
.keys__head b{ font-size:15px; }
.keys__esc{
  margin-left:auto; font-size:10.5px; padding:3px 8px; border-radius:7px;
  color:var(--text-mute); background:var(--glass-hi); border:1px solid transparent;
}
.keys__x{
  display:grid; place-items:center; width:30px; height:30px; border-radius:9px;
  color:var(--text-mute); transition:all .25s var(--ease);
}
.keys__x:hover{ color:var(--text); background:var(--glass-hi); }
.keys__x svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; }
.keys__list{ overflow-y:auto; padding:8px; }
.keys__row{
  display:flex; align-items:center; gap:12px; padding:9px 12px; border-radius:12px;
}
.keys__row:hover{ background:var(--glass); }
.keys__keys{ display:flex; gap:5px; flex-shrink:0; min-width:118px; }
.keys__keys kbd{
  font-family:inherit; font-size:11.5px; padding:3px 8px; border-radius:7px;
  color:var(--text-dim); background:var(--glass-hi); border:1px solid transparent;
  white-space:nowrap;
}
.keys__txt{ min-width:0; }
.keys__txt b{ display:block; font-size:13.5px; font-weight:600; }
.keys__txt span{ display:block; margin-top:1px; font-size:11.5px; color:var(--text-mute); }
.keys__foot{
  padding:11px 18px; border-top:1px solid transparent;
  font-size:11.5px; color:var(--text-mute);
}
@media (max-width:520px){
  .keys__row{ flex-direction:column; align-items:flex-start; gap:6px; }
  .keys__keys{ min-width:0; }
}

/* =========================================================
   提示条 / 页脚
   ========================================================= */
.toast{
  position:fixed; left:50%; bottom:34px; z-index:120;
  transform:translate(-50%,140%); opacity:0; pointer-events:none;
  padding:12px 22px; border-radius:99px; font-size:13.5px; font-weight:500;
  color:var(--text); background:var(--glass-hi);
  border:1px solid transparent;
  box-shadow:none;
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  transition:transform .5s var(--ease), opacity .4s var(--ease);
}
.toast.is-on{ transform:translate(-50%,0); opacity:1; }

/* 返回顶部：滚下去才浮出来（分类面板 z95 / 搜索面板 z90 会盖住它） */
.to-top{
  position:fixed; right:22px; bottom:26px; z-index:60;
  display:grid; place-items:center; width:46px; height:46px;
  border-radius:50%;
  color:var(--text);
  background:var(--glass-2); border:1px solid transparent;
  box-shadow:none;
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  backdrop-filter:blur(18px) saturate(150%);
  opacity:0; visibility:hidden; transform:translateY(12px) scale(.9);
  transition:opacity .3s var(--ease), transform .3s var(--ease),
             border-color .28s var(--ease), visibility 0s linear .3s;
}
.to-top.is-on{
  opacity:1; visibility:visible; transform:none;
  transition:opacity .3s var(--ease), transform .3s var(--ease),
             border-color .28s var(--ease), visibility 0s;
}
.to-top:hover{ border-color:transparent; transform:translateY(-3px); }
.to-top svg{ width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:2.1; stroke-linecap:round; stroke-linejoin:round; }
@media (max-width:640px){
  .to-top{ right:14px; bottom:calc(16px + env(safe-area-inset-bottom, 0px)); width:42px; height:42px; }
  .to-top svg{ width:17px; height:17px; }
}

.footer{
  border-top:1px solid transparent;
  background:color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
}
.footer__inner{
  max-width:var(--maxw); margin:0 auto;
  padding:26px var(--pad-x);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px;
  font-size:12.5px; color:var(--text-mute);
}
.footer__brand{ display:flex; align-items:center; gap:9px; color:var(--text-dim); }
.footer__brand b{ font-weight:700; letter-spacing:.06em; }
.footer__dot{
  width:8px; height:8px; border-radius:50%; background:var(--grad);
  box-shadow:none; animation:pulse 2.6s var(--ease) infinite;
}
@keyframes pulse{ 50%{ opacity:.45; transform:scale(.78); } }
.footer__meta{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.footer__meta .sep{ opacity:.5; }
.link-btn{ font-size:12.5px; color:var(--text-dim); transition:color .28s var(--ease); }
.link-btn:hover{ color:var(--text); }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width:960px){
  .hero{ grid-template-columns:1fr; text-align:left; }
  .hero__portrait{ order:-1; width:min(220px,58vw); }
  /* 长方形 / 跟随原图这两档在窄屏上给足宽度，别跟正方形一样憋成 220px */
  .hero__portrait--wide,
  .hero__portrait--auto{ width:min(420px,100%); max-width:100%; }
  .stats{ grid-template-columns:repeat(2,1fr); }
  .bento__item{ grid-column:span 3; }
  .bento__item:last-child{ grid-column:span 6; }
  .bento__item--wide{ grid-column:span 6; }
  /* 单栏：分类栏在手机端被「顶栏分类按钮 + 底部面板」取代，这里只剩标题和卡片 */
  .nav-layout{
    grid-template-columns:1fr;
    grid-template-areas:
      "rail"
      "head"
      "body";
  }
  /* 分类栏：手机上整栏收起，分类靠顶栏那个「分类」按钮 + 底部面板切换 */
  .cat-rail{
    position:static; max-height:none; overflow:visible;
    padding:0; margin:0;
  }
  .cat-rail__head{ display:none; }
  /* 底部选择面板：分类再多也只是面板里滚动 + 筛选 */
  .cat-rail__sheet{
    position:fixed; left:0; right:0; top:0; bottom:0; z-index:96;
    display:flex; flex-direction:column;
    height:100dvh; max-height:none;
    padding:calc(env(safe-area-inset-top, 0px) + 8px) 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius:0;
    background:color-mix(in srgb, var(--bg-soft) 93%, transparent);
    border-top:1px solid transparent;
    box-shadow:none;
    -webkit-backdrop-filter:blur(30px) saturate(160%);
    backdrop-filter:blur(30px) saturate(160%);
    overscroll-behavior:contain;
    transform:translateY(103%); visibility:hidden;
    /* visibility 用 0s + delay：打开立刻可见，收起等滑出动画走完再隐藏 */
    transition:transform .42s var(--ease), visibility 0s linear .42s;
  }
  .cat-rail.is-sheet .cat-rail__sheet{
    transform:none; visibility:visible;
    transition:transform .42s var(--ease), visibility 0s;
  }
  .cat-rail__bar{ display:block; width:44px; height:5px; flex-shrink:0; margin:6px auto 12px; border-radius:99px; background:rgba(255,255,255,.45); opacity:.9; }
  .cat-rail__sheethead{ display:flex; align-items:center; gap:8px; flex-shrink:0; margin:0 2px 10px; }
  .cat-rail__sheethead b{ font-size:15.5px; }
  .cat-rail__x{
    margin-left:auto; display:grid; place-items:center; width:32px; height:32px;
    border-radius:99px; color:var(--text-dim);
    background:var(--glass); border:1px solid transparent;
  }
  .cat-rail__x svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2.2; }
  .cat-rail__scrim{
    display:block; position:fixed; inset:0; z-index:95;
    background:rgba(3,4,9,.5);
    -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
    opacity:0; pointer-events:none;
    transition:opacity .35s var(--ease);
  }
  .cat-rail.is-sheet .cat-rail__scrim{ opacity:1; pointer-events:auto; }
  .cat-filter{ height:38px; flex-shrink:0; margin-bottom:10px; }
  .cat-rail__list{
    display:flex; flex-wrap:wrap; gap:8px; align-content:flex-start;
    flex:1 1 auto; min-height:0; overflow-y:auto;
    padding:2px 2px 6px;
  }
  .cat-filter__empty{ grid-column:auto; margin:6px 4px 2px; }
  /* 分享页标签：同样收进底部面板 */
  .tag-rail__sheet{
    position:fixed; left:0; right:0; bottom:0; z-index:96;
    display:flex; flex-direction:column;
    max-height:min(72vh, 560px);
    padding:9px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius:26px 26px 0 0;
    background:color-mix(in srgb, var(--bg-soft) 93%, transparent);
    border-top:1px solid transparent;
    box-shadow:none;
    -webkit-backdrop-filter:blur(30px) saturate(160%);
    backdrop-filter:blur(30px) saturate(160%);
    overscroll-behavior:contain;
    transform:translateY(103%); visibility:hidden;
    transition:transform .42s var(--ease), visibility 0s linear .42s;
  }
  .tag-rail.is-sheet .tag-rail__sheet{
    transform:none; visibility:visible;
    transition:transform .42s var(--ease), visibility 0s;
  }
  .tag-rail__bar{ display:block; width:42px; height:4px; flex-shrink:0; margin:2px auto 12px; border-radius:99px; background:var(--border-strong); }
  .tag-rail__head{ display:flex; align-items:center; gap:8px; flex-shrink:0; margin:0 2px 12px; }
  .tag-rail__head b{ font-size:15.5px; }
  .tag-rail__x{
    margin-left:auto; display:grid; place-items:center; width:32px; height:32px;
    border-radius:99px; color:var(--text-dim);
    background:var(--glass); border:1px solid transparent;
  }
  .tag-rail__x svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2.2; }
  .tag-rail__scrim{
    display:block; position:fixed; inset:0; z-index:95;
    background:rgba(3,4,9,.5);
    -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
    opacity:0; pointer-events:none;
    transition:opacity .35s var(--ease);
  }
  .tag-rail.is-sheet .tag-rail__scrim{ opacity:1; pointer-events:auto; }
  /* 面板里的标签胶囊：比正文里的大一点，好点 */
  .tag-rail .tag-bar{
    display:block; flex:1 1 auto; min-height:0; margin:0; padding:2px;
    overflow-y:auto;
    /* 面板本身就是卡片，这里去掉外层控制条的底、边、阴影与引导字 */
    background:none; border:0; border-radius:0; box-shadow:none;
  }
  .tag-rail .tag-bar__lead,
  .tag-rail .tag-bar__stat{ display:none; }
  .tag-rail .tag-bar__chips{ gap:8px; align-content:flex-start; }
  .tag-rail .tag{ flex:0 0 auto; padding:8px 14px; font-size:13px; }
  /* 标签条收进面板后，给时间线留出和原来一样的间距 */
  .tag-rail + .timeline{ margin-top:26px; }
  /* flex:0 0 auto 很关键：否则胶囊会被压扁成几十像素，只剩数字 */
  .cat-item{
    width:auto; flex:0 0 auto; white-space:nowrap; padding:9px 15px;
    border-radius:99px; background:var(--glass); border-color:transparent;
  }
  .cat-item__name{ flex:0 1 auto; }
  .page-head--nav{ align-items:flex-start; }
  .page-head__side{ padding-bottom:0; }
  .page-head--share{ align-items:flex-start; }
  .palette__hint{ display:none; }
}

/* 分享页：同一天有多条时并排显示 */
@media (min-width:900px){
  .tl-cards{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (min-width:1500px){
  .tl-cards{ grid-template-columns:repeat(auto-fit, minmax(520px, 1fr)); }
}
/* 分享页标题区：窄屏改成上下堆叠，统计条铺满 */
@media (max-width:900px){
  .page-head--share{ display:block; }
  .page-head--share .page-head__side{ width:100%; padding-bottom:0; margin-top:18px; }
  .page-head--share .head-stats{ width:100%; }
  .page-head--share .head-stat{ flex:1 1 0; min-width:0; }
}
@media (max-width:760px){
  /* 顶栏搜索框换行独占一行，保证手机上够宽 */
  /* 换行后顶栏变高，99px 的圆角会退化成整条半圆、把 logo 和搜索框挤到面板外面，改用卡片圆角 */
  .header__inner{ flex-wrap:wrap; border-radius:var(--r-lg); }
  /* 搜索框与「分类」按钮共用一整行 */
  .header__row{ flex:1 1 100%; order:9; }
  /* v182：自定义链接独占一行、均分宽度（一行最多 5 个），不再靠横滑才看得全。
     max-width 是给「只配了一两条」的情况兜底 —— 否则一条会被 flex 拉成整行那么长。
     名字在手机上也显示（≤1500px 本来是隐藏的），不然一排图标认不出哪个是哪个。 */
  .header__links{ flex:1 1 100%; min-width:0; justify-content:flex-start; gap:6px; margin-top:8px; order:10; }
  /* v188：5 条时曾经把整页撑宽（每颗 79px、min-content 422px > 屏宽），
     浏览器于是把布局宽度顶到 451 再缩一档字号，右边那颗直接被切掉。
     行和每颗都补 min-width:0，名字靠 ellipsis 收，一屏 5 条永远排得下。 */
  .header__links .hlink{ flex:1 1 0; min-width:0; max-width:96px; justify-content:center; padding:0 6px; overflow:hidden; }
  .header__links .hlink__name{ display:inline; font-size:11.5px; max-width:52px; min-width:0; }
  /* 排满 4~5 条时，手机上每颗只剩 62~76px，图标（15）+ 间距（6）+ 四个汉字（46）塞不进去，
     名字会被削成「灵…」。名字比图标有用，这一行干脆只留文字。 */
  .header__links:has(.hlink:nth-child(4)) .hlink{ padding:0 3px; }
  .header__links:has(.hlink:nth-child(4)) .hlink__icon{ display:none; }
  .header__links:has(.hlink:nth-child(4)) .hlink__name{ max-width:100%; }
  /* 手机端：主题（白天 / 暗黑）按钮靠到第一行最右边，别紧贴 logo */
  .header__actions{ margin-left:auto; }
  /* v188：手机上首页的上下留白收一收。顶栏换行后本身 180px 高，
     再叠 .app 的 20px + .hero 的 28px，一进页面先空掉一大块；
     末尾那 24+24 也一样，按钮下面糊着一片底色才有「页面到底了」的错觉。
     只收首页 —— 导航 / 分享页的标题区节奏别跟着动。 */
  html[data-route="home"] .app{ padding-top:10px; }
  html[data-route="home"] .hero{ padding-top:4px; padding-bottom:10px; gap:18px; }
  html[data-route="home"] .stats{ margin-top:16px; }
}
@media (max-width:640px){
  body{ font-size:14.5px; }
  /* 标题区整体居中：首页 hero + 导航 / 分享 / 文章 三个列表页的 page-head。
     手机一屏窄，左对齐的长标题会显得偏；居中之后 eyebrow、大标题、说明、
     下面那排统计 / 按钮都对齐到同一条中轴线上。 */
  .hero{ text-align:center; }
  .hero__meta{ justify-content:center; }
  .hero__desc{ margin-left:auto; margin-right:auto; }
  .hero__cta{ justify-content:center; }
  .page-head{ text-align:center; }
  .page-head--nav,
  .page-head--share{ display:block; }
  .page-head p{ margin-left:auto; margin-right:auto; }
  .page-head__side{
    justify-content:center; width:100%; padding-bottom:0; margin-top:16px;
  }
  /* 顺手修一个窄屏老毛病：分享正文里塞着 MP3/WAV/OGG/… 或 CleanMyMac+App… 这种
     不带空格的斜杠串、加号串，默认只在空格处折行，于是一行能顶到 366px，
     把小屏（320px）整页撑出横向滚动、浏览器还会缩一档字号。允许任意处断行即可。 */
  .feed-card__desc{ overflow-wrap:anywhere; }
  .header__inner{ gap:10px; padding:7px 8px 7px 12px; }
  .brand__text em{ display:none; }
  .nav{ padding:3px; }
  .nav__item{ padding:7px 12px; font-size:13.5px; }
  .hcat__name{ max-width:86px; }
  /* v182：手机上自定义链接也不回第一行了 —— 留在搜索框下面那一行，均分宽度、
     最多 5 个，一屏看全。（以前这里把它塞回右上角跟主题按钮并排，放不下就横滑，
     等于「有几个链接」这件事在手机上是看不见的。） */
  .header__links{ padding:0 2px; }
  /* 主导航胶囊：手机端从顶栏移到屏幕底部居中（见 index.html 的 .dock） */
  .header .nav{ display:none; }
  .dock{
    display:flex; align-items:center; gap:2px; padding:4px;
    /* 居中不用 translateX(-50%)：fixed + transform 在手机上会和浏览器地址栏
       的收放一起抖，还会偶发上下跳；改成 left/right 撑满 + margin 自动居中 */
    position:fixed; left:0; right:0; margin-inline:auto; width:max-content;
    bottom:calc(12px + env(safe-area-inset-bottom, 0px));
    z-index:56;
    border-radius:99px;
    /* 不描边了，底色就得多承担一点"我是一块浮起来的"——85% 比 80% 稳，浅色主题下不至于糊成一片 */
    background:color-mix(in srgb, var(--bg-soft) 85%, transparent);
    /* 不要最外面那圈描边（含 box-shadow 里的 1px 高光环）：只留一层下沉投影，
       药丸看起来是浮在内容上的，而不是被框起来的 */
    box-shadow:none;
    backdrop-filter:blur(22px) saturate(160%);
    -webkit-backdrop-filter:blur(22px) saturate(160%);
    transition:opacity .25s var(--ease), visibility .25s var(--ease);
  }
  .dock .nav__item{ padding:8px 18px; font-size:14.5px; }
  body.no-scroll .dock{ opacity:0; visibility:hidden; }   /* 搜索 / 快捷键面板打开时让位 */
  .footer__inner{ padding-bottom:calc(74px + env(safe-area-inset-bottom, 0px)); }  /* 别被底部 tab 栏压住 */
  /* v188b：首页末尾那 90px 是给列表页留的滚动余量；手机上底部 tab 栏是 fixed 的、
     不占流，页脚自己也留了 74px 让位，首页再垫 90px 就纯是空白（赞助卡到页脚 116px）。
     只收首页，别的页不动。 */
  html[data-route="home"] .app{ padding-bottom:24px; }
  /* 链接卡片：手机端不再固定几列，改成「宽度跟着文字长度走」。
     以前是 3～4 列网格，列一窄，长名字（"TG公众索引系统"、"SooP专利搜索"）就得折两行；
     现在每张卡的宽度 = 名字本身宽度 + 内距，一行排不下就整张换到下一行 ——
     所以名字永远是一行，不折、也不截。
     右上角的收藏/复制图标去掉，改为长按卡片弹菜单；
     下面几条都带上 html[data-density] / html[data-icons…] 前缀提特异性，
     否则桌面那几条同名规则（紧凑 / 宽松 / 关图标）特异性更高，会反过来盖掉手机端。 */
  .link-grid,
  html[data-density] .link-grid,
  html[data-icons="off"][data-desc="off"] .link-grid{
    display:flex; flex-wrap:wrap; align-items:flex-start; gap:5px;   /* 上下行距也收一点，一屏能多看一排 */
    grid-template-columns:none;   /* 桌面是网格，手机端换成 flex，这句把网格列清掉 */
  }
  .link-card,
  html[data-density] .link-card{
    /* flex:0 1 auto —— 宽度就取内容宽度（名字一行放完），不额外拉伸，
       所以卡片紧贴文字、整行从左往右排，排不下就换行；
       只有名字比整屏还宽这种极端情况才允许缩（缩的时候末尾省略） */
    display:flex; flex-direction:column; flex:0 1 auto;
    align-items:stretch;   /* 必须显式写：桌面那条 align-items:center 在竖排里会变成横向居中，名字就忽左忽右了 */
    min-width:0; max-width:100%;
    padding:7px 11px; border-radius:11px;   /* 竖向内距收到 7px：行距再压一档，一屏多一排站点 */
    -webkit-touch-callout:none;   /* 长按时别弹系统自带的链接菜单 */
  }
  .link-card .glyph{ display:none; }   /* 手机端卡片不带左侧图标，只留名称 + 简介 */
  .link-card__body{ display:flex; flex-direction:column; flex:1 1 auto; margin-top:0; min-width:0; }
  .link-card__name,
  html[data-density] .link-card__name{
    /* 名字就一行：宽度由卡片撑开，正常长度的名字根本轮不到省略号 */
    font-size:12.5px; line-height:1.34; white-space:nowrap; align-items:center;
  }
  .link-card__nmtxt{
    /* 撤掉上一版的「最多折两行」（-webkit-box + line-clamp），回到单行省略：
       现在卡片宽度跟着文字走，只有超长名字（比整屏还宽）才会真的省略 */
    display:block; min-width:0; white-space:nowrap; max-height:none; word-break:normal;
  }
  .link-card__desc,
  html[data-density] .link-card__desc{
    display:block; margin-top:auto; padding-top:3px; font-size:10.5px;
  }
  /* 后台「显示描述」关掉时，手机端必须真的不显示。
     上面那条 `html[data-density] .link-card__desc{display:block}` 跟桌面那条关闭规则
     `html[data-desc="off"] .link-card__desc{display:none}` 特异性一模一样（都是 0,2,1），
     只因为写在文件更后面才赢 —— 结果就是关了开关手机上还照样顶着域名。
     这里用同样的前缀、并且放在最后，谁关谁生效。 */
  html[data-desc="off"] .link-card__desc{ display:none; }

  /* 手机端把横向滚动条藏掉：手指照样能滑，但底部不再拖一条灰紫色滚轮出来。
     全局那条 ::-webkit-scrollbar{height:10px} 是给电脑端用的，手机上很难看。
     .track（今日精选）和 .recent__rail（最近访问）从 v125 起在基础样式里就藏了
     —— 电脑端那条也一样难看，小宝明确说要去掉 —— 这里只剩文章正文的宽表格。 */
  .md-table{
    scrollbar-width:none; -ms-overflow-style:none;
  }
  .md-table::-webkit-scrollbar{
    display:none; width:0; height:0;
  }

  /* 首页入口卡：说明文字顶到图标左边（窄屏省宽度），标题稍小一点 */
  .bento__item p{ grid-area:2 / 1 / 3 / 4; }
  .bento__item h3{ font-size:17.5px; }
  .bento__item{ row-gap:8px; }
  .stats{ gap:10px; }
  .stat{ padding:16px 14px; }
  /* 分享卡：图标去掉之后不用再摆格子，手机上只是把内距收一点、说明的间距紧一点 */
  .feed-card{ padding:18px; }
  .feed-card__desc{ margin-top:12px; }
  .head-stats{ width:100%; }
  .head-stat{ flex:1 1 0; min-width:0; padding:12px 14px; border-radius:14px; }
  .head-stat b{ font-size:21px; }
  .head-stat span{ font-size:11.5px; }
  .tl-group{ margin-top:24px; }
  .tl-date{ padding:9px 16px 9px 14px; font-size:14px; margin-bottom:13px; }
  .bento__item{ grid-column:span 6; padding:22px; }
}

/* 很窄的手机：导航胶囊再收一点，尽量让 logo / 导航 / 主题留在同一行 */
@media (max-width:380px){
  .header__inner{ gap:8px; }
  .nav{ padding:3px; }
  .nav__item{ padding:7px 9px; }
  .hcat{ padding:0 11px; }
}

/* =========================================================
   后台管理（#/admin）
   ========================================================= */
.page--admin{ width:100%; }
/* 后台里按钮统一收一号 */
.admin-toolbar .btn, .admin-card__foot .btn, .admin-actions .btn, .admin-lock .btn{ height:40px; padding:0 17px; border-radius:12px; font-size:13.5px; }
.btn:disabled, .btn[disabled]{ opacity:.4; cursor:not-allowed; transform:none !important; box-shadow:none !important; }

/* --- 口令门禁 --- */
.admin-lock{
  max-width:430px; margin:6vh auto 0; text-align:center;
  padding:36px 32px; border-radius:var(--r);
  background:var(--glass); border:1px solid transparent; box-shadow:none;
}
.admin-lock__icon{
  display:grid; place-items:center; width:60px; height:60px; margin:0 auto 18px;
  font-size:26px; border-radius:20px; background:var(--glass-2); border:1px solid transparent;
}
.admin-lock h1{ margin:0; font-size:26px; font-weight:800; letter-spacing:-.01em; }
.admin-lock p{ margin:10px 0 0; font-size:13.5px; color:var(--text-dim); }
.admin-lock code{
  padding:2px 7px; border-radius:6px; font-size:12.5px;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text);
}
.admin-lock__form{ display:flex; gap:9px; margin-top:20px; }
.admin-lock__form input{
  flex:1; height:44px; padding:0 14px; border-radius:12px; font-size:14px;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text); outline:none;
}
.admin-lock__form input:focus{ border-color:transparent; box-shadow:0 0 0 4px rgba(124,156,255,.14); }
.admin-lock__err{ color:#ff8b8b !important; font-size:12.5px; margin-top:12px !important; }
.admin-lock__back{ display:inline-block; margin-top:18px; font-size:12.5px; color:var(--text-mute); }
.admin-lock__back:hover{ color:var(--text); }
.is-shake{ animation:shake .38s var(--ease); }
@keyframes shake{ 10%,90%{transform:translateX(-2px)} 30%,70%{transform:translateX(4px)} 50%{transform:translateX(-6px)} }

/* --- 左右布局：左侧导航 + 右侧内容 --- */
.admin-shell{ display:grid; grid-template-columns:236px minmax(0,1fr); gap:18px; align-items:start; }
.admin-side{
  position:sticky; top:calc(var(--header-h, 96px) + 18px);
  display:flex; flex-direction:column; gap:4px;
  padding:12px; border-radius:var(--r);
  background:var(--glass); border:1px solid transparent;
}
.admin-side__title{
  display:flex; align-items:baseline; gap:8px;
  padding:5px 10px 11px; margin-bottom:4px; border-bottom:1px solid transparent;
}
.admin-side__title b{ font-size:14px; font-weight:700; }
.admin-side__title em{
  font-style:normal; font-size:10.5px; letter-spacing:.2em;
  text-transform:uppercase; color:var(--text-mute);
}
.admin-nav{ display:flex; flex-direction:column; gap:3px; }
.admin-tab{
  display:flex; align-items:center; gap:10px; width:100%; text-align:left;
  padding:10px 12px; border-radius:11px;
  font-size:13.5px; color:var(--text-dim);
  transition:all .25s var(--ease);
}
.admin-tab:hover{ color:var(--text); background:var(--glass-hi); }
.admin-tab.is-active{ color:#080a12; background:var(--grad); box-shadow:none; }
.admin-tab__ico{ width:18px; text-align:center; font-size:14px; line-height:1; flex-shrink:0; }
.admin-tab__label{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-tab__n{
  font-size:11px; color:var(--text-mute); font-variant-numeric:tabular-nums;
  padding:1px 7px; border-radius:99px;
  background:var(--glass-hi); border:1px solid transparent;
}
.admin-tab.is-active .admin-tab__n{ color:#fff; background:rgba(8,10,20,.22); border-color:transparent; }
.admin-side__foot{ margin-top:6px; padding-top:10px; border-top:1px solid transparent; }
.admin-lockbtn{
  width:100%; height:38px; border-radius:11px; font-size:13px;
  color:var(--text-dim); background:var(--glass-hi); border:1px solid transparent;
  transition:all .25s var(--ease);
}
.admin-lockbtn:hover{ color:#ff9c9c; border-color:transparent; background:rgba(255,110,110,.1); }
.admin-body{ min-width:0; }
.admin-main{ min-width:0; }
.admin-main .page-head{ margin-bottom:clamp(16px,2.2vw,24px); }

/* 窄屏：侧栏变成顶部横向标签条 */
@media (max-width:960px){
  .admin-shell{ grid-template-columns:minmax(0,1fr); gap:12px; }
  .admin-side{ position:static; flex-direction:row; align-items:center; gap:10px; padding:8px; }
  .admin-side__title{ display:none; }
  .admin-nav{ flex-direction:row; flex:1; min-width:0; overflow-x:auto; gap:6px; scrollbar-width:none; }
  .admin-nav::-webkit-scrollbar{ display:none; }
  .admin-tab{ width:auto; padding:9px 14px; border-radius:99px; white-space:nowrap; }
  .admin-tab__ico, .admin-tab__n{ display:none; }
  .admin-side__foot{ margin:0; padding:0; border:0; flex-shrink:0; }
  .admin-lockbtn{ width:auto; padding:0 15px; }
}

/* --- 卡片 --- */
.admin-card{
  padding:22px 24px; border-radius:var(--r); margin-bottom:16px;
  background:var(--glass); border:1px solid transparent;
}
.admin-card h2{ margin:0; font-size:17px; font-weight:700; }
.admin-card p{ margin:7px 0 0; font-size:13.5px; color:var(--text-dim); }
.admin-card code{
  padding:1px 6px; border-radius:5px; font-size:12.5px;
  background:var(--glass-hi); border:1px solid transparent;
}
.admin-card__head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.admin-card__foot{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:16px; }
/* 危险操作卡片：描边没了，改用一层很淡的红底提醒 */
.admin-card--danger{ background:color-mix(in srgb, #ff6e6e 7%, transparent); }
.admin-count{ font-size:12.5px; color:var(--text-mute); font-variant-numeric:tabular-nums; white-space:nowrap; }
.admin-count.is-full{ color:#ffb27a; }
/* 「发布到虚拟主机」的状态角标：橙色 = 有改动还没导出，绿色 = 已是最新 */
.admin-count.is-dirty{ color:#ffb27a; }
.admin-count.is-ok{ color:#7ee0a8; }
.admin-tip{ font-size:12.5px; color:var(--text-mute); margin-top:12px !important; }
/* 后台「⚡ 直接推到 GitHub」小块：嵌在「发布到虚拟主机」卡里，淡蓝底跟卡片区分开 */
.sn-gh{
  margin-top:18px; padding:14px 16px; border-radius:16px;
  background:color-mix(in srgb, #7c9cff 7%, transparent);
  border:1px solid color-mix(in srgb, #7c9cff 20%, transparent);
}
.sn-gh__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sn-gh__head b{ font-size:14px; letter-spacing:.01em; }
.sn-gh .admin-field{ margin-top:12px; }
.sn-gh .admin-tip{ margin-top:9px !important; }
.admin-empty{ font-size:13.5px; color:var(--text-mute); padding:16px 0; }

/* --- 拖拽排序握把 --- */
.drag-handle{
  display:grid; place-items:center; flex:0 0 auto; width:24px; height:28px; padding:0;
  border-radius:8px; border:1px solid transparent; background:transparent;
  color:var(--text-mute); cursor:grab; touch-action:none;
  -webkit-user-drag:none; user-select:none; -webkit-user-select:none;
  transition:color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.drag-handle svg{ fill:currentColor; opacity:.8; }
.drag-handle:hover{ color:var(--text); background:var(--glass-hi); border-color:transparent; }
.drag-handle:active{ cursor:grabbing; }
.drag-handle:focus-visible{ outline:none; color:var(--text); border-color:transparent; box-shadow:0 0 0 3px rgba(124,156,255,.18); }
[data-drag-item]{ position:relative; }
.is-dragging{ opacity:.5; }
.is-dragging::after{
  content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  border:1.5px dashed transparent;
  background:color-mix(in srgb, #7c9cff 9%, transparent);
}
body.is-dragging-row{ user-select:none; -webkit-user-select:none; }
body.is-dragging-row, body.is-dragging-row *{ cursor:grabbing !important; }

/* --- 自定义链接行 --- */
.admin-links{ display:flex; flex-direction:column; gap:8px; margin-top:16px; }
.admin-link{ display:grid; grid-template-columns:auto 22px 96px minmax(0,1fr) minmax(0,1.5fr) auto; gap:8px; align-items:center; }
.admin-link__idx{ text-align:center; font-size:12px; color:var(--text-mute); font-variant-numeric:tabular-nums; }
.alink-icon{ display:flex; align-items:center; gap:5px; }
.admin-link input.alink-icon__input, .alink-icon input{ width:48px; padding:0; text-align:center; }
.alink-icon__pick{
  width:43px; height:40px; border-radius:10px; font-size:15px; line-height:1;
  color:var(--text-dim); background:var(--glass-hi); border:1px solid transparent;
  transition:all .25s var(--ease);
}
.alink-icon__pick:hover{ color:var(--text); border-color:transparent; transform:translateY(-1px); }
.admin-link input{
  width:100%; height:40px; padding:0 12px; border-radius:10px; font-size:13.5px;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text); outline:none;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.admin-link input:focus{ border-color:transparent; box-shadow:0 0 0 3px rgba(124,156,255,.14); }
.admin-link__icon{ text-align:center; }
.alink-icon .admin-link__icon{ width:48px; padding:0; text-align:center; }
.admin-link__ops{ display:flex; gap:4px; }
.admin-link__ops button{
  width:32px; height:32px; border-radius:9px; font-size:13px;
  color:var(--text-mute); background:var(--glass-hi); border:1px solid transparent;
  transition:all .25s var(--ease);
}
.admin-link__ops button:hover:not(:disabled){ color:var(--text); border-color:transparent; }
.admin-link__ops button:disabled{ opacity:.3; cursor:not-allowed; }
.admin-link__ops button.is-danger:hover{ color:#ff8b8b; border-color:transparent; }
.admin-link__ops button.alink__pin,
.admin-link__ops button.alink__dock{ filter:grayscale(1); opacity:.55; }
.admin-link__ops button.alink__pin.is-on,
.admin-link__ops button.alink__dock.is-on{ filter:none; opacity:1; border-color:transparent; background:var(--glass-2); }
.admin-preview{
  display:flex; gap:6px; flex-wrap:wrap; margin-top:14px; padding:14px;
  border-radius:12px; border:1px dashed transparent;
  background:color-mix(in srgb, var(--bg) 55%, transparent);
}
.hlink--preview{ pointer-events:none; }
.hlink--preview .hlink__name{ display:inline; }
.admin-preview:empty::before{
  content:"填好名称与链接后，这里会显示它在顶栏的实际样子";
  font-size:12.5px; color:var(--text-mute);
}

/* --- 图标挑选器 --- */
.emoji-pop{
  position:fixed; z-index:210; width:306px; padding:12px;
  border-radius:16px; background:var(--glass-2);
  border:1px solid transparent;
  box-shadow:none;
  backdrop-filter:blur(26px) saturate(150%);
  -webkit-backdrop-filter:blur(26px) saturate(150%);
  animation:emojiIn .18s var(--ease) both;
}
@keyframes emojiIn{ from{ opacity:0; transform:translateY(-6px) scale(.98); } to{ opacity:1; transform:none; } }
.emoji-pop__title{ font-size:11.5px; color:var(--text-mute); letter-spacing:.04em; margin:0 0 8px 3px; }
.emoji-pop__grid{ display:grid; grid-template-columns:repeat(8,1fr); gap:2px; }
.emoji-pop__grid button{
  height:32px; border-radius:8px; font-size:16px; line-height:1;
  background:transparent; transition:background .16s var(--ease), transform .16s var(--ease);
}
.emoji-pop__grid button:hover{ background:var(--glass-hi); transform:scale(1.16); }
.emoji-pop__clear{
  width:100%; height:32px; margin-top:9px; border-radius:9px;
  font-size:12px; color:var(--text-mute);
  background:var(--glass); border:1px solid transparent;
  transition:all .2s var(--ease);
}
.emoji-pop__clear:hover{ color:var(--text); border-color:transparent; }

/* --- 站点数据：工具条 --- */
.admin-toolbar{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-top:18px; }
.admin-search{
  position:relative; display:flex; align-items:center; gap:9px; flex:1 1 320px; max-width:520px;
  height:40px; padding:0 14px; border-radius:12px;
  background:var(--glass-hi); border:1px solid transparent;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.admin-search:focus-within{ border-color:transparent; box-shadow:0 0 0 4px rgba(124,156,255,.14); }
.admin-search svg{ flex-shrink:0; fill:none; stroke:var(--text-mute); stroke-width:2; stroke-linecap:round; }
.admin-search input{
  flex:1; min-width:0; height:100%; background:transparent; border:0; outline:none;
  color:var(--text); font-size:13.5px;
}
.admin-search input::-webkit-search-cancel-button{ display:none; }

/* --- 站点数据：分类卡片 --- */
.admin-cats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(500px,1fr)); gap:12px; align-items:start; }
.acat{
  border-radius:16px; background:var(--glass); border:1px solid transparent;
  overflow:hidden; transition:border-color .25s var(--ease);
}
.acat:hover{ border-color:transparent; }
.acat.is-open{ border-color:transparent; }
/* 展开的分类独占一整行：链接列表拿到最大宽度，且高度受限、内部滚动 */
.admin-cats .acat.is-open{ grid-column:1 / -1; }
.acat__head{
  display:grid; grid-template-columns:auto auto 46px minmax(76px,.85fr) minmax(0,1.25fr) auto auto;
  gap:7px; align-items:center; padding:10px 12px;
}
.acat__head input{
  width:100%; height:36px; padding:0 10px; border-radius:9px; font-size:13px;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text); outline:none;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.acat__head input:focus{ border-color:transparent; box-shadow:0 0 0 3px rgba(124,156,255,.14); }
.acat__icon{ text-align:center; }
.acat__name{ font-weight:600; }
.acat__toggle{
  width:26px; height:26px; display:grid; place-items:center; border-radius:8px;
  color:var(--text-mute); background:transparent; border:1px solid transparent;
  transition:color .25s var(--ease), background .25s var(--ease);
}
.acat__toggle:hover{ color:var(--text); background:var(--glass-hi); }
.acat__toggle svg{
  width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2.2;
  stroke-linecap:round; stroke-linejoin:round; transition:transform .25s var(--ease);
}
.acat.is-open .acat__toggle svg{ transform:rotate(90deg); }
.acat__count{
  font-size:12px; color:var(--text-mute); font-variant-numeric:tabular-nums;
  padding:0 6px; white-space:nowrap;
}
.acat__body{
  display:flex; flex-direction:column; gap:5px;
  padding:10px 12px 12px; border-top:1px solid transparent;
  /* 高度设上限 + 内部滚动：分类里有 100 个站点也不会把页面撑爆 */
  max-height:min(60vh, 560px); overflow-y:auto; overscroll-behavior:contain;
  scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent;
}
.acat__body::-webkit-scrollbar{ width:11px; }
.acat__body::-webkit-scrollbar-track{ background:transparent; }
.acat__body::-webkit-scrollbar-thumb{
  background:var(--border-strong); border-radius:99px;
  border:3px solid transparent; background-clip:content-box;
}
.acat__body::-webkit-scrollbar-thumb:hover{ background:var(--text-mute); background-clip:content-box; }
.alink{ display:grid; grid-template-columns:auto 20px minmax(70px,1fr) minmax(0,1.6fr) minmax(0,1.15fr) auto; gap:6px; align-items:center; }
.alink input{
  width:100%; height:33px; padding:0 9px; border-radius:8px; font-size:12.5px;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text-dim); outline:none;
  transition:border-color .25s var(--ease), color .25s var(--ease);
}
.alink input:focus{ color:var(--text); border-color:transparent; box-shadow:0 0 0 3px rgba(124,156,255,.14); }
.alink input[data-link-f="n"]{ color:var(--text); }
.alink__idx{ text-align:center; font-size:11.5px; color:var(--text-mute); font-variant-numeric:tabular-nums; }
.alink .admin-link__ops button{ width:28px; height:28px; font-size:12px; }
/* 「添加站点」吸在滚动区底部，长列表里也随时可点 */
.alink__add{
  position:sticky; bottom:-1px; z-index:2; margin-top:3px;
  height:34px; border-radius:9px; flex-shrink:0;
  font-size:12.5px; color:var(--text-dim);
  background:var(--glass-2); border:1px dashed transparent;
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  transition:all .25s var(--ease);
}
.alink__add:hover{ color:var(--text); border-color:transparent; background:var(--glass-hi); }
.admin-link__ops button.is-armed{ width:auto; padding:0 9px; color:#ff9c9c; border-color:transparent; background:rgba(255,110,110,.14); }

@media (max-width:640px){
  .admin-cats{ grid-template-columns:minmax(0,1fr); }
  .acat__head{ grid-template-columns:auto auto 42px minmax(0,1fr) auto; }
  .acat__head .drag-handle{ grid-area:1 / 1; }
  .acat__head .acat__toggle{ grid-area:1 / 2; }
  .acat__head .acat__icon{ grid-area:1 / 3; }
  .acat__head .acat__name{ grid-area:1 / 4; }
  .acat__head .acat__count{ grid-area:1 / 5; }
  .acat__head .acat__desc{ grid-area:2 / 1 / 3 / 5; }
  .acat__head .admin-link__ops{ grid-area:2 / 5; }
  .alink{ grid-template-columns:auto 18px minmax(0,1fr) auto; }
  .alink .drag-handle{ grid-area:1 / 1; }
  .alink__idx{ grid-area:1 / 2; }
  .alink input[data-link-f="n"]{ grid-area:1 / 3; }
  .alink .admin-link__ops{ grid-area:1 / 4; }
  .alink input[data-link-f="u"]{ grid-area:2 / 2 / 3 / 5; }
  .alink input[data-link-f="d"]{ grid-area:3 / 2 / 4 / 5; }
}

/* --- 表单 --- */
.admin-field{ display:block; margin-top:16px; }
.admin-field__label{ display:block; font-size:12.5px; color:var(--text-mute); margin-bottom:7px; }
.admin-field__label em{ font-style:normal; opacity:.72; margin-left:7px; }
.admin-field input, .admin-field select{
  width:100%; height:42px; padding:0 13px; border-radius:11px; font-size:14px;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text); outline:none;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.admin-field input:focus, .admin-field select:focus{ border-color:transparent; box-shadow:0 0 0 4px rgba(124,156,255,.14); }
/* 多行文本框（关于页正文 / 赞助说明 / 导语） */
.admin-field textarea{
  width:100%; padding:11px 13px; border-radius:11px; font-size:13.5px; line-height:1.75;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text); outline:none;
  font-family:inherit; resize:vertical; min-height:80px;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.admin-field textarea:focus{ box-shadow:0 0 0 4px rgba(124,156,255,.14); }
.admin-field textarea.admin-md{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:12.5px; line-height:1.85; min-height:340px;
}
.admin-switch{ position:relative; display:flex; align-items:center; gap:11px; margin-top:18px; font-size:14px; color:var(--text-dim); cursor:pointer; }
.admin-switch input{ position:absolute; opacity:0; width:0; height:0; }
.admin-switch__track{
  position:relative; width:44px; height:25px; border-radius:99px; flex-shrink:0;
  background:var(--glass-hi); border:1px solid transparent; transition:all .28s var(--ease);
}
.admin-switch__dot{
  position:absolute; top:3px; left:3px; width:17px; height:17px; border-radius:50%;
  background:var(--text-mute); transition:all .28s var(--ease);
}
.admin-switch input:checked + .admin-switch__track{ background:var(--grad); border-color:transparent; }
.admin-switch input:checked + .admin-switch__track .admin-switch__dot{ left:23px; background:#fff; }
.admin-switch input:focus-visible + .admin-switch__track{ box-shadow:0 0 0 4px rgba(124,156,255,.2); }
/* 开关右边的文字：可以带一行浅色小注（<em>） */
.admin-switch__text{ min-width:0; }
.admin-switch__text em{
  display:block; margin-top:2px; font-style:normal;
  font-size:12px; line-height:1.5; color:var(--text-mute);
}
/* 分组小标题（一个卡片里分几段开关时用） */
.admin-sub{ font-size:12.5px; color:var(--text-mute); margin-top:20px; }
.admin-sub em{ font-style:normal; opacity:.72; margin-left:7px; }
.admin-sub + .admin-switch{ margin-top:10px; }

/* 今日精选的勾选列表：一行一条，勾上的整行提亮；列表自己滚，别把后台撑太长 */
.pick-search{ margin-top:10px; max-width:none; }
.pick-list{
  display:flex; flex-direction:column; gap:3px;
  margin-top:10px; padding:6px; max-height:330px; overflow-y:auto;
  border-radius:14px; background:var(--glass-hi); border:1px solid transparent;
  overscroll-behavior:contain;
}
.pick-row{
  display:flex; align-items:center; gap:10px;
  padding:8px 10px; border-radius:9px; cursor:pointer;
  font-size:13.5px; color:var(--text-dim);
  transition:background .2s var(--ease), color .2s var(--ease);
}
.pick-row:hover{ background:var(--glass-2); }
.pick-row.is-on{ background:rgba(124,156,255,.13); color:var(--text); }
.pick-row input{
  width:17px; height:17px; flex-shrink:0; margin:0; cursor:pointer;
  accent-color:#7c9cff;
}
.pick-row input:disabled{ cursor:not-allowed; opacity:.35; }
.pick-row__title{ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pick-row__date{ flex-shrink:0; font-size:12px; color:var(--text-mute); font-variant-numeric:tabular-nums; }
.pick-more{ margin:6px 4px 2px; font-size:12px; color:var(--text-mute); text-align:center; }

.admin-json{
  width:100%; margin-top:12px; padding:13px 15px; border-radius:12px; resize:vertical;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text-dim);
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12.5px; line-height:1.65; outline:none;
}
.admin-json:focus{ border-color:transparent; box-shadow:0 0 0 4px rgba(124,156,255,.14); }
.admin-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.btn--danger{
  background:rgba(255,110,110,.12); border:1px solid transparent; color:#ff9c9c;
}
.btn--danger:hover{ background:rgba(255,110,110,.2); border-color:transparent; color:#ffbdbd; transform:translateY(-1px); }

/* --- 备份：已选文件名 --- */
.admin-file{
  display:inline-flex; align-items:center; align-self:center;
  font-size:12.5px; color:var(--text-mute);
  max-width:min(100%, 380px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* --- 图片选择器（首页大图 / Logo / Favicon） --- */
.img-picker{ display:grid; grid-template-columns:140px minmax(0,1fr); gap:18px; align-items:start; margin-top:14px; }
.img-preview{
  width:140px; height:140px; border-radius:16px; overflow:hidden; flex-shrink:0;
  background:var(--glass-hi); border:1px solid transparent; display:grid; place-items:center;
}
.img-preview img{ width:100%; height:100%; object-fit:cover; display:block; }
.img-preview--wide{ width:100%; height:auto; aspect-ratio:16/9; max-height:320px; }
.img-preview--wide img{ object-fit:contain; }
.img-preview__none{
  padding:12px; text-align:center; font-size:11.5px; line-height:1.6; color:var(--text-mute);
}
.img-picker--wide{ grid-template-columns:minmax(0,1fr); }
.img-body{ display:flex; flex-direction:column; gap:10px; min-width:0; }
.img-body .admin-actions{ margin-top:0; }
.img-body .admin-field{ margin-top:0; }
.img-picker--wide .img-body .admin-field{ max-width:560px; }

/* --- 首页：统计 / 卡片编辑行 --- */
.arows{ display:flex; flex-direction:column; gap:6px; margin-top:14px; }

/* ---- 赞助收款码编辑行（后台「首页内容 → 赞助」） ----
   一行 = 左边 64px 小预览 + 右边三行输入（名字 / 跳转 / 图片网址）。
   名字那行还塞了「上传 / 清除 / 删除」三个小按钮，所以单独一层 flex。 */
.coderows{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.coderow{
  display:flex; align-items:flex-start; gap:12px;
  padding:12px; border-radius:14px; background:var(--glass);
}
.coderow__prev{
  flex:0 0 auto; width:64px; height:64px; border-radius:12px; overflow:hidden;
  display:grid; place-items:center; background:var(--glass-2);
  font-size:11px; color:var(--text-mute); text-align:center;
}
.coderow__prev img{ width:100%; height:100%; object-fit:contain; display:block; }
.coderow__body{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:7px; }
.coderow__line{ display:flex; align-items:center; gap:7px; }
.coderow__line input{ flex:1 1 auto; min-width:0; }
.coderow input[type="text"]{
  width:100%; height:33px; padding:0 9px; border-radius:8px; font-size:12.5px;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text-dim); outline:none;
  font-family:inherit; transition:box-shadow .25s var(--ease), color .25s var(--ease);
}
.coderow input[type="text"]:focus{ color:var(--text); box-shadow:0 0 0 3px rgba(124,156,255,.14); }
.coderow .btn--mini{ height:33px; padding:0 11px; border-radius:9px; font-size:12px; flex:0 0 auto; }
.coderow__del{
  flex:0 0 auto; width:30px; height:30px; border-radius:9px; display:grid; place-items:center;
  color:var(--text-mute); font-size:13px; cursor:pointer;
  transition:all .25s var(--ease);
}
.coderow__del:hover{ color:#e2675c; background:var(--glass-hi); }
@media (max-width:640px){
  .coderow{ flex-wrap:wrap; }
  .coderow__body{ flex-basis:100%; }
  .coderow__line{ flex-wrap:wrap; }
}

.srow{ display:grid; grid-template-columns:auto 158px 96px minmax(70px,1fr) auto; gap:8px; align-items:center; }
.erow{ display:grid; grid-template-columns:auto 54px minmax(60px,1fr) minmax(0,1.6fr) minmax(0,1.2fr) auto auto; gap:8px; align-items:center; }
.srow input, .srow select, .erow input{
  width:100%; height:33px; padding:0 9px; border-radius:8px; font-size:12.5px;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text-dim); outline:none;
  font-family:inherit; transition:border-color .25s var(--ease), color .25s var(--ease);
}
.srow input:focus, .srow select:focus, .erow input:focus{
  color:var(--text); border-color:transparent; box-shadow:0 0 0 3px rgba(124,156,255,.14);
}
.srow select{ cursor:pointer; }
.srow input:disabled{ opacity:.35; cursor:not-allowed; }
.srow input[data-stat-f="s"], .erow input[data-entry-f="title"]{ color:var(--text); }
.erow input[data-entry-f="icon"]{ text-align:center; padding:0; font-size:14px; }
.erow__spark, .erow__wide{
  display:flex; align-items:center; gap:5px; white-space:nowrap;
  font-size:12px; color:var(--text-mute); cursor:pointer;
}
.erow__spark input, .erow__wide input{ width:15px; height:15px; accent-color:#7c9cff; cursor:pointer; }
.srow .admin-link__ops button, .erow .admin-link__ops button{ width:28px; height:28px; font-size:12px; }

/* --- 发布上线：两步走（v160 把原来四步说明压成两个动作） --- */
.pub-flow{ display:flex; flex-direction:column; gap:12px; margin-top:16px; }
.pub-step{
  display:flex; gap:13px; padding:14px 16px 15px; border-radius:18px;
  background:var(--glass); border:1px solid color-mix(in srgb, var(--a1) 14%, transparent);
}
.pub-step__n{
  flex:none; width:24px; height:24px; margin-top:1px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:12.5px; font-weight:700; font-variant-numeric:tabular-nums;
  background:color-mix(in srgb, var(--a1) 20%, transparent); color:var(--ink-a1);
}
.pub-step__body{ flex:1; min-width:0; }
.pub-step__body > b{ display:block; font-size:13.5px; letter-spacing:.01em; }
.pub-step__body .admin-actions{ margin:11px 0 0; }
.pub-step__body > .admin-tip:last-child{ margin-bottom:0 !important; }
.pub-note{ margin-top:16px !important; }
/* 「草稿里还有没发布的改动」——只在真有草稿时出现，别做成常驻横幅 */
.pub-draft{
  margin:14px 0 0 !important; padding:11px 14px; border-radius:14px;
  background:color-mix(in srgb, #f0b429 13%, transparent);
  border:1px solid color-mix(in srgb, #f0b429 34%, transparent);
  color:var(--text); font-size:12.6px; line-height:1.7;
}

/* 一键发布（v174）—— 本机预览域才有按钮 */
.pub-live{
  margin:14px 0 0; padding:15px 16px 13px; border-radius:18px;
  background:color-mix(in srgb, var(--a1) 9%, transparent);
  border:1px solid color-mix(in srgb, var(--a1) 26%, transparent);
}
.pub-live > b{ display:block; font-size:13.5px; letter-spacing:.01em; }
.pub-live .admin-tip{ margin:8px 0 0; }
.pub-live .admin-actions{ margin:12px 0 0; }
.pub-live--off{
  background:var(--glass);
  border:1px dashed color-mix(in srgb, var(--text-mute) 30%, transparent);
}
.pub-live--off > b{ font-size:13px; color:var(--text-dim); }
/* 发布日志：等宽、深底、自己滚 */
.pub-log{
  margin:13px 0 0; padding:12px 14px; max-height:290px; overflow:auto;
  border-radius:14px; background:#0f1218; color:#cfd6e4;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:11.6px; line-height:1.75; white-space:pre-wrap; word-break:break-word;
  overscroll-behavior:contain;
}
.pub-log__good{ color:#7ee0a8; }
.pub-log__bad{ color:#ff9a9a; }

/* ============ 后台自绘确认框 / 发布进度（v176） ============
   替掉 window.confirm：系统弹窗改不了字号、说不清后果，也没有「现在到哪一步了」。
   一张卡两种形态 —— 问的时候是「条数 + 后果 + 主次按钮」，
   跑起来原地变成「百分比 + 进度条 + 阶段 + 计时 + 日志」。 */
.xyd{
  position:fixed; inset:0; z-index:9000;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
}
.xyd__veil{
  position:absolute; inset:0;
  background:color-mix(in srgb, #04060c 48%, transparent);
  -webkit-backdrop-filter:blur(7px); backdrop-filter:blur(7px);
  opacity:0; transition:opacity .22s ease;
}
.xyd.is-in .xyd__veil{ opacity:1; }
.xyd__card{
  position:relative; width:min(462px,100%); max-height:calc(100vh - 40px);
  display:flex; flex-direction:column; overflow:hidden;
  padding:24px 22px 18px; border-radius:24px;
  background:linear-gradient(180deg,
    color-mix(in srgb, var(--bg-soft) 88%, #fff 12%),
    var(--bg-soft) 62%);
  border:1px solid color-mix(in srgb, var(--a1) 15%, transparent);
  box-shadow:0 34px 90px -24px rgba(4,6,14,.6),
             inset 0 1px 0 color-mix(in srgb, #fff 9%, transparent);
  transform:translateY(16px) scale(.975); opacity:0;
  transition:transform .28s cubic-bezier(.22,1,.36,1), opacity .2s ease;
}
.xyd.is-in .xyd__card{ transform:none; opacity:1; }
/* 顶端一条 2px 品牌渐变色带：只在最上面，不抢内容 */
.xyd__card::before{
  content:''; position:absolute; left:0; right:0; top:0; height:2px;
  background:var(--grad); opacity:.85;
}
.xyd__card--danger::before{ background:linear-gradient(90deg,#e0524f,#f0916b); }
.xyd__card--ok::before{ background:linear-gradient(90deg,#2bb673,#5ad6a6); }
.xyd__card--bad::before{ background:linear-gradient(90deg,#d94a4a,#f07070); }

.xyd__top{ display:flex; align-items:flex-start; gap:13px; }
.xyd__ico{
  flex:0 0 auto; width:46px; height:46px; border-radius:15px;
  display:flex; align-items:center; justify-content:center; font-size:21px;
  background:color-mix(in srgb, var(--a1) 15%, transparent);
  border:1px solid color-mix(in srgb, var(--a1) 26%, transparent);
  box-shadow:0 8px 20px -10px color-mix(in srgb, var(--a1) 62%, transparent);
}
.xyd__ico--danger{
  background:color-mix(in srgb, #e0524f 14%, transparent);
  border-color:color-mix(in srgb, #e0524f 30%, transparent);
  box-shadow:0 8px 20px -10px color-mix(in srgb, #e0524f 55%, transparent);
}
.xyd.is-done .xyd__ico--run{
  background:color-mix(in srgb, #2bb673 16%, transparent);
  border-color:color-mix(in srgb, #2bb673 32%, transparent);
}
.xyd.is-done.is-bad .xyd__ico--run{
  background:color-mix(in srgb, #d94a4a 16%, transparent);
  border-color:color-mix(in srgb, #d94a4a 32%, transparent);
}
.xyd__ttl{ flex:1 1 auto; min-width:0; padding-top:2px; }
.xyd__ttl h3{
  margin:0; font-size:16.5px; font-weight:650; letter-spacing:.01em;
  color:var(--text); line-height:1.4;
}
.xyd__ttl p{
  margin:5px 0 0; font-size:12.2px; line-height:1.6; color:var(--text-mute);
}
.xyd__pct{
  flex:0 0 auto; padding-top:4px;
  font-size:21px; font-weight:650; font-variant-numeric:tabular-nums;
  letter-spacing:-.01em; color:var(--ink-a1);
}

/* 三格条数：数字大、单位小，扫一眼就知道这一版多大 */
.xyd__stats{
  display:flex; gap:8px; margin:18px 0 0;
}
.xyd__stat{
  flex:1 1 0; min-width:0; padding:10px 12px 9px; border-radius:14px;
  background:var(--glass); border:1px solid color-mix(in srgb, var(--text-mute) 12%, transparent);
  text-align:center;
}
.xyd__stat b{
  display:block; font-size:19px; font-weight:650; line-height:1.2;
  font-variant-numeric:tabular-nums; letter-spacing:-.01em; color:var(--text);
}
.xyd__stat span{ display:block; margin-top:3px; font-size:11px; color:var(--text-mute); }

/* 「本次改动」小清单：左边一个标签，右边一句话 + 名字明细。
   条数多的时候整块自己滚，别把确认卡片撑到屏幕外面去。 */
.xyd__diff{ margin:16px 0 0; }
.xyd__diff-h{
  display:flex; align-items:baseline; gap:8px; margin:0 0 8px;
  font-size:11.5px; font-weight:600; letter-spacing:.06em; color:var(--text-mute);
}
.xyd__diff-h em{
  font-style:normal; font-weight:400; font-size:11px;
  letter-spacing:0; color:var(--text-mute); opacity:.72;
}
.xyd__diff-list{
  display:flex; flex-direction:column; gap:7px;
  margin:0; padding:10px 12px; list-style:none; max-height:190px; overflow:auto;
  border-radius:14px; background:var(--glass);
  border:1px solid color-mix(in srgb, var(--text-mute) 12%, transparent);
}
.xyd__diff-list > li{ display:flex; align-items:baseline; gap:9px; font-size:12.4px; line-height:1.6; }
.xyd__diff-tag{
  flex:0 0 auto; min-width:56px; padding:1px 7px; border-radius:7px;
  font-size:11px; text-align:center; white-space:nowrap; color:var(--text-dim);
  background:color-mix(in srgb, var(--a1) 13%, transparent);
}
.xyd__diff-body{ flex:1 1 auto; min-width:0; color:var(--text); }
.xyd__diff-body em{
  display:block; margin-top:1px; font-style:normal; font-size:11.4px; color:var(--text-mute);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.xyd__diff-none{
  margin:0; padding:10px 12px; border-radius:14px;
  font-size:12.4px; line-height:1.7; color:var(--text-dim); background:var(--glass);
  border:1px solid color-mix(in srgb, var(--text-mute) 12%, transparent);
}
.xyd__diff-none b{ color:var(--text); font-weight:600; }

.xyd__note{
  margin:16px 0 0; font-size:12.8px; line-height:1.75; color:var(--text-dim);
}
.xyd__note b{ color:var(--text); font-weight:600; }
.xyd__tips{
  margin:10px 0 0; padding:0; list-style:none;
  display:flex; flex-direction:column; gap:6px;
}
.xyd__tips > li{
  position:relative; padding-left:17px;
  font-size:12.2px; line-height:1.7; color:var(--text-mute);
}
.xyd__tips > li::before{
  content:''; position:absolute; left:4px; top:.62em;
  width:5px; height:5px; border-radius:50%;
  background:color-mix(in srgb, var(--a1) 70%, transparent);
}

.xyd__acts{
  display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;
  margin:20px 0 0;
}
.xyd__btn{
  appearance:none; -webkit-appearance:none;
  display:inline-flex; align-items:center; justify-content:center;
  padding:0 18px; height:38px; border-radius:12px; cursor:pointer;
  font-size:13px; font-weight:600; letter-spacing:.01em;
  color:var(--text-dim); background:var(--glass);
  border:1px solid color-mix(in srgb, var(--text-mute) 20%, transparent);
  transition:background .16s ease, color .16s ease, transform .12s ease,
             box-shadow .16s ease, border-color .16s ease;
}
.xyd__btn:hover{ background:var(--glass-hi); color:var(--text); }
.xyd__btn:active{ transform:translateY(1px) scale(.99); }
.xyd__btn:focus-visible{
  outline:none; box-shadow:0 0 0 3px color-mix(in srgb, var(--a1) 38%, transparent);
}
.xyd__btn--go{
  color:#fff; border-color:transparent;
  background:linear-gradient(120deg,#4a63d8,#6b49cf 58%,#3a5fd0);
  box-shadow:0 10px 24px -12px rgba(74,99,216,.85);
}
.xyd__btn--go:hover{
  color:#fff;
  background:linear-gradient(120deg,#546fe6,#7654dd 58%,#4569e0);
  box-shadow:0 12px 28px -12px rgba(86,112,232,.9);
}
.xyd__btn--danger{
  background:linear-gradient(120deg,#c9453f,#e0654a);
  box-shadow:0 10px 24px -12px rgba(201,69,63,.85);
}
.xyd__btn--danger:hover{
  background:linear-gradient(120deg,#d64e47,#ec7055);
  box-shadow:0 12px 28px -12px rgba(214,78,71,.9);
}

/* ---- 跑起来之后：进度条 + 阶段 + 日志 ---- */
.xyd__bar{
  position:relative; height:7px; margin:18px 0 0;
  border-radius:999px; overflow:hidden;
  background:color-mix(in srgb, var(--text-mute) 15%, transparent);
}
.xyd__bar > i{
  position:relative; display:block; height:100%; width:0;
  border-radius:999px; overflow:hidden;
  background:linear-gradient(90deg,#4a63d8,#7a5cf0 58%,#2ec8b6);
  box-shadow:0 0 14px -2px color-mix(in srgb, #7a5cf0 72%, transparent);
  transition:width .6s cubic-bezier(.22,1,.36,1);
}
/* 斜纹缓慢流动 —— 让人看出「它在动」，比一根死条子可信 */
.xyd__bar > i::after{
  content:''; position:absolute; inset:0;
  background:repeating-linear-gradient(115deg,
    rgba(255,255,255,.20) 0 7px, transparent 7px 17px);
  background-size:34px 100%;
  animation:xydStripe 1.1s linear infinite;
}
@keyframes xydStripe{ from{ background-position:0 0; } to{ background-position:34px 0; } }
.xyd.is-done .xyd__bar > i{
  background:linear-gradient(90deg,#22a865,#4fd39a);
  box-shadow:0 0 16px -2px color-mix(in srgb, #34c07c 70%, transparent);
}
.xyd.is-done .xyd__bar > i::after{ animation:none; opacity:.35; }
.xyd.is-done.is-bad .xyd__bar > i{
  background:linear-gradient(90deg,#c9453f,#e8746a);
  box-shadow:0 0 16px -2px color-mix(in srgb, #d94a4a 65%, transparent);
}
.xyd__stage{
  margin:10px 0 0; font-size:12.3px; line-height:1.6; color:var(--text-dim);
  display:flex; align-items:center; gap:7px;
}
.xyd__stage::before{
  content:''; width:6px; height:6px; border-radius:50%; flex:0 0 auto;
  background:var(--ink-a1);
  animation:xydPulse 1.5s ease-in-out infinite;
}
@keyframes xydPulse{ 0%,100%{ opacity:.35; transform:scale(.85); } 50%{ opacity:1; transform:scale(1); } }
.xyd.is-done .xyd__stage::before{ display:none; }
.xyd__log{
  margin:14px 0 0; padding:11px 13px; max-height:172px; overflow:auto;
  border-radius:13px; background:color-mix(in srgb, #0f1218 96%, transparent);
  color:#cfd6e4; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:10.9px; line-height:1.7; white-space:pre-wrap; word-break:break-word;
  overscroll-behavior:contain;
}
.xyd__log:empty{ display:none; }
/* 结束态日志只是「留个凭据」，不用占半屏 */
.xyd.is-done .xyd__log{ max-height:118px; font-size:10.4px; opacity:.9; }

@media (max-width:520px){
  .xyd{ padding:14px; align-items:flex-end; }
  .xyd__card{
    padding:20px 17px 15px; border-radius:22px;
    max-height:calc(100vh - 28px);
  }
  .xyd__ttl h3{ font-size:15.5px; }
  .xyd__stat b{ font-size:17px; }
  .xyd__acts{ margin-top:16px; }
  .xyd__btn{ flex:1 1 0; justify-content:center; }
  .xyd__log{ max-height:132px; }
}
@media (prefers-reduced-motion:reduce){
  .xyd__card, .xyd__veil, .xyd__bar > i{ transition:none; }
  .xyd__bar > i::after, .xyd__stage::before{ animation:none; }
}

/* 「完整流程」一页纸（后台 → 备份 → 发布上线 → 折叠区） */
.pub-guide__steps{
  margin:14px 0 6px; padding:0; list-style:none; counter-reset:pubstep;
  display:flex; flex-direction:column; gap:10px;
}
.pub-guide__steps > li{
  counter-increment:pubstep; position:relative; padding-left:34px;
  font-size:12.8px; line-height:1.75; color:var(--text);
}
.pub-guide__steps > li::before{
  content:counter(pubstep); position:absolute; left:0; top:1px;
  width:22px; height:22px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  font-size:11.5px; font-weight:700; font-variant-numeric:tabular-nums;
  color:var(--text-dim); background:var(--surface-2); border:1px solid var(--border);
}
.pub-guide__steps > li > b{ display:block; font-size:13px; }
.pub-guide__steps > li > span{ display:block; color:var(--text-dim); }
/* 「打开打印版一页纸」—— 全站 a 是 color:inherit，这里得单独让它像链接 */
#pubGuide a{
  color:var(--ink-a1); font-weight:600; margin-left:6px;
  text-decoration:underline; text-underline-offset:3px;
}
#pubGuide a:hover{ color:var(--ink-a2); }
.pub-guide__faq{
  width:100%; margin:16px 0 4px; border-collapse:collapse;
  font-size:12.5px; line-height:1.7;
}
.pub-guide__faq th{
  text-align:left; font-weight:600; color:var(--text-dim);
  font-size:11.5px; letter-spacing:.04em; padding:0 10px 7px 0;
  border-bottom:1px solid var(--border);
}
.pub-guide__faq td{
  padding:9px 10px 9px 0; vertical-align:top; border-bottom:1px solid var(--border);
  color:var(--text-dim);
}
.pub-guide__faq td:first-child{ color:var(--text); width:38%; }
.pub-guide__faq tr:last-child td{ border-bottom:0; }
.pub-guide__faq code{ font-size:11.5px; }
@media (max-width:560px){
  .pub-guide__faq td:first-child{ width:44%; }
}
.admin-adv__body{ padding-bottom:4px; }
.admin-adv__body > p{ margin:0 0 4px !important; font-size:12.8px !important; line-height:1.8; color:var(--text-dim) !important; }
.admin-adv__body > p.admin-tip{ margin-top:12px !important; }
.admin-adv__body > .admin-actions{ margin:14px 0 18px; }

/* --- 备份：进阶折叠区 --- */
.admin-adv{
  margin-top:14px; padding:0 18px; border-radius:16px;
  background:var(--glass); border:1px solid transparent;
}
.admin-adv > summary{
  display:flex; align-items:center; gap:9px; cursor:pointer; list-style:none;
  padding:16px 0; font-size:13.5px; font-weight:600; color:var(--text-dim);
  transition:color .25s var(--ease);
}
.admin-adv > summary::-webkit-details-marker{ display:none; }
.admin-adv > summary::before{
  content:'▸'; font-size:11px; color:var(--text-mute);
  transition:transform .25s var(--ease);
}
.admin-adv[open] > summary::before{ transform:rotate(90deg); }
.admin-adv > summary:hover{ color:var(--text); }
.admin-adv > p{ margin:0 0 4px !important; font-size:12.8px !important; line-height:1.8; color:var(--text-dim) !important; }
.admin-adv > p.admin-tip{ margin-top:12px !important; }
.admin-adv > .admin-actions{ margin:14px 0 18px; }

/* --- 发布历史（后台「发布上线」里的折叠区，只记在本机浏览器） --- */
.pub-hist__list{ list-style:none; margin:0; padding:0; }
.pub-hist__row{ padding:12px 0; border-top:1px solid rgba(124,156,255,.12); }
.pub-hist__row:first-child{ border-top:0; padding-top:4px; }
.pub-hist__top{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.pub-hist__top b{ font-size:13px; font-weight:600; color:var(--text); }
.pub-hist__meta{ font-size:11.5px; color:var(--text-mute); }
.pub-hist__what{ margin:5px 0 0 !important; font-size:12.5px !important; line-height:1.75; color:var(--text-dim) !important; }
.pub-hist__what--same{ color:var(--text-mute) !important; }
.pub-hist__warn{ margin:4px 0 0 !important; font-size:12px !important; color:var(--star) !important; }

/* --- 确认弹窗 --- */
.confirm-mask{
  position:fixed; inset:0; z-index:9999; padding:24px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(4,6,14,.62);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  animation:confirmIn .2s var(--ease);
}
@keyframes confirmIn{ from{ opacity:0 } to{ opacity:1 } }
.confirm-box{
  width:min(440px,100%); padding:26px 26px 22px; border-radius:20px;
  background:var(--glass-2); border:1px solid transparent;
  box-shadow:none;
  animation:confirmBoxIn .28s var(--ease);
}
@keyframes confirmBoxIn{ from{ opacity:0; transform:translateY(12px) scale(.97) } to{ opacity:1; transform:none } }
.confirm-box__icon{ font-size:26px; line-height:1; margin-bottom:13px; }
.confirm-box h3{ margin:0 0 10px; font-size:17px; letter-spacing:.01em; }
.confirm-box p{ margin:0; font-size:13.5px; line-height:1.8; color:var(--text-dim); }
.confirm-box p code{
  padding:1px 6px; border-radius:6px; font-size:12.5px;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text);
}
.confirm-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:22px; }
.confirm-actions .btn{ height:40px; padding:0 20px; border-radius:12px; font-size:13.5px; }
html[data-theme="light"] .confirm-mask{ background:rgba(24,30,48,.42); }
html[data-theme="light"] .confirm-box{ box-shadow:none; }
html[data-theme="light"] .btn--danger{
  background:rgba(210,60,55,.07); border-color:transparent; color:#c0392b;
}
html[data-theme="light"] .btn--danger:hover{
  background:rgba(210,60,55,.14); border-color:transparent; color:#a32a1e;
}
html[data-theme="light"] /* 危险操作卡片：描边没了，改用一层很淡的红底提醒 */
.admin-card--danger{ background:color-mix(in srgb, #ff6e6e 7%, transparent); }

@media (max-width:760px){
  .admin-link{ grid-template-columns:auto 22px 96px minmax(0,1fr) auto; }
  .admin-link .drag-handle{ grid-area:1 / 1; }
  .admin-link__idx{ grid-area:1 / 2; }
  .admin-link .alink-icon{ grid-area:1 / 3; }
  .admin-link__name{ grid-area:1 / 4; }
  .admin-link .admin-link__ops{ grid-area:1 / 5; }
  .admin-link__url{ grid-area:2 / 1 / 3 / 6; }
  .admin-card{ padding:18px 16px; }
  .confirm-box{ padding:22px 20px 18px; }
  .confirm-actions .btn{ flex:1; padding:0 14px; }
  /* 首页内容：窄屏下改成上下堆叠，避免输入框被挤没 */
  .img-picker{ grid-template-columns:minmax(0,1fr); }
  .img-preview{ width:100%; aspect-ratio:16/9; height:auto; }
  .srow{ grid-template-columns:auto minmax(0,1fr) 92px auto; }
  .srow .drag-handle{ grid-area:1 / 1; }
  .srow [data-stat-f="auto"]{ grid-area:1 / 2; }
  .srow [data-stat-f="n"]{ grid-area:1 / 3; }
  .srow .admin-link__ops{ grid-area:1 / 4; }
  .srow [data-stat-f="s"]{ grid-area:2 / 1 / 3 / 5; }
  .erow{ grid-template-columns:auto 46px minmax(0,1fr) auto; }
  .erow .drag-handle{ grid-area:1 / 1; }
  .erow [data-entry-f="icon"]{ grid-area:1 / 2; }
  .erow [data-entry-f="title"]{ grid-area:1 / 3; }
  .erow .admin-link__ops{ grid-area:1 / 4; }
  .erow [data-entry-f="desc"]{ grid-area:2 / 1 / 3 / 5; }
  .erow [data-entry-f="route"]{ grid-area:3 / 1 / 4 / 5; }
  .erow__spark{ grid-area:4 / 1 / 5 / 5; }
}


/* 无障碍 / 减少动态 */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
:focus-visible{ outline:2px solid rgba(124,156,255,.75); outline-offset:3px; border-radius:6px; }

/* =========================================================
   文章（#/post 列表 · #/post/<id> 阅读）
   ========================================================= */

/* --- 列表页 --- */
/* 标签条下面紧接按年份分组的列表，比分享页的时间线收得紧一点 */
@media (min-width:961px){
  .page--posts .tag-bar{ margin-bottom:12px; }
}
.post-group{ margin-top:34px; }
.post-group:first-of-type{ margin-top:2px; }
.post-year{ display:flex; align-items:baseline; gap:10px; margin:0 0 12px 2px; }
.post-year b{
  font-size:21px; font-weight:800; letter-spacing:-.01em;
  background:var(--grad);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.post-year span{ font-size:12px; color:var(--text-mute); letter-spacing:.06em; }
.post-list{ display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }

/* 大屏：一行最多三篇（1180 起两列，1560 起三列，再宽也不加列） */
@media (min-width:1180px){
  .post-list{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
  .post-card{ grid-template-columns:52px minmax(0,1fr) 24px; gap:14px; padding:16px 18px; }
  .post-card__date b{ font-size:17px; }
  .post-card__title{ font-size:15.5px; }
  .post-card__desc{ font-size:13px; }
}
@media (min-width:1560px){
  .post-list{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}

.post-card{
  display:grid; grid-template-columns:62px minmax(0,1fr) 30px; gap:18px; align-items:center;
  padding:18px 20px; border-radius:var(--r);
  /* 和分享页、导航页一致：不铺底、不描边，hover 只换淡蓝底，不位移 */
  background:none; border:1px solid transparent;
  transition:background .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover{
  background:rgba(124,156,255,.075);
  border-color:transparent;
  box-shadow:none;
  transform:none;
}
.post-card__date{
  display:flex; flex-direction:column; align-items:center; gap:0;
  font-variant-numeric:tabular-nums; line-height:1.2;
}
.post-card__date b{ font-size:18px; font-weight:800; color:var(--text); letter-spacing:-.01em; }
.post-card__date span{ font-size:10.5px; color:var(--text-mute); letter-spacing:.1em; }
.post-card__main{ min-width:0; }
.post-card__title{
  display:block; font-size:16.5px; font-weight:700; color:var(--text); line-height:1.45;
  transition:color .28s var(--ease);
}
.post-card:hover .post-card__title{ color:var(--ink-a1); }
.post-card__pin{ font-style:normal; margin-right:6px; font-size:13px; }
.post-card__desc{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; margin-top:5px;
  font-size:13.5px; line-height:1.7; color:var(--text-dim);
}
.post-card__meta{ display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-top:10px; }
.post-card__meta em{ margin-left:auto; font-style:normal; font-size:11.5px; color:var(--text-mute); }
.post-card__tag{ padding:2px 9px; font-size:11px; }
.post-card__go{
  display:grid; place-items:center; color:var(--text-mute);
  opacity:0; transform:translateX(-6px);
  transition:all .35s var(--ease);
}
.post-card__go svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; }
.post-card:hover .post-card__go{ opacity:.75; transform:none; }

/* --- 阅读页 --- */
.post-back{
  display:inline-flex; align-items:center; gap:8px;
  margin-bottom:clamp(16px,2.4vw,26px);
  font-size:13px; color:var(--text-mute);
  transition:color .25s var(--ease), gap .25s var(--ease);
}
.post-back svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; transform:rotate(180deg); }
.post-back:hover{ color:var(--text); gap:11px; }

.post-layout{ display:grid; grid-template-columns:minmax(0,1fr); gap:46px; }
.post-article{ width:100%; max-width:var(--post-width, 820px); margin:0 auto; min-width:0; }
/* 阅读页的标题区整体居中：大标题、日期·字数·阅读时长那行、标签，全落在同一条中轴线上。
   上面那个「← 全部文章」是导航不是标题，仍然留在左上角。
   「关于」页不跟 —— 它标题下面还有一段导语，居中会散（见 #/about 的说明）。 */
html[data-route="post"] .post-head{ text-align:center; }
html[data-route="post"] .post-head .post-meta{ justify-content:center; }
html[data-route="post"] .post-head .post-head__tags{ justify-content:center; }
.post-title{
  margin:0; font-size:clamp(27px,3.9vw,40px); font-weight:800;
  line-height:1.26; letter-spacing:-.02em;
}
.post-meta{
  display:flex; align-items:center; flex-wrap:wrap; gap:7px;
  margin-top:14px; font-size:12.5px; color:var(--text-mute);
  font-variant-numeric:tabular-nums;
}
.post-meta__dot{ opacity:.45; }
.post-meta__copy{
  display:inline-flex; align-items:center; gap:5px; margin-left:6px;
  padding:4px 10px; border-radius:99px;
  font-size:11.5px; color:var(--text-dim);
  background:var(--glass); border:1px solid transparent;
  transition:all .25s var(--ease);
}
.post-meta__copy svg{ width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:2; }
.post-meta__copy:hover{ color:var(--text); border-color:transparent; }
.post-head__tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:13px; }
.post-head::after{
  content:""; display:block; height:1px; margin-top:24px;
  background:linear-gradient(90deg, var(--border-strong), transparent 78%);
}
/* 标题居中之后，分隔线也跟着左右对称地淡出，不再是「左深右无」 */
html[data-route="post"] .post-head::after{
  background:linear-gradient(90deg, transparent, var(--border-strong) 26%, var(--border-strong) 74%, transparent);
}

.post-foot{ margin-top:58px; padding-top:26px; border-top:1px solid transparent; }
.post-pn{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.post-pn__item{
  display:flex; flex-direction:column; gap:5px; min-width:0;
  padding:14px 16px; border-radius:14px;
  background:var(--glass); border:1px solid transparent;
  transition:all .3s var(--ease);
}
.post-pn__item:hover{ border-color:transparent; transform:translateY(-2px); }
.post-pn__item b{ font-size:14px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.post-pn__k{ font-size:11.5px; color:var(--text-mute); }
.post-pn__item--next{ text-align:right; align-items:flex-end; }
/* 「也能左右滑/按方向键换篇」那一行提示：低调一点，别抢正文收尾 */
.post-swipe-hint{
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin:14px 0 0; font-size:12px; line-height:1.7; color:var(--text-mute); text-align:center;
}
.post-swipe-hint b{ color:var(--text-dim); font-weight:600; }
.post-swipe-hint::before{ content:"⇠⇢"; letter-spacing:-1px; opacity:.55; font-size:13px; }
.post-foot__end{ margin-top:24px; text-align:center; font-size:12px; color:var(--text-mute); }
.post-foot__end span{ color:var(--ink-a2); }
.post-foot__back{ margin-top:18px; height:42px; padding:0 18px; border-radius:12px; font-size:13.5px; }

/* --- 目录（宽屏才出现） --- */
.post-toc{ display:none; }
.post-toc__title{
  margin-bottom:10px; font-size:10.5px; font-weight:600;
  letter-spacing:.16em; text-transform:uppercase; color:var(--text-mute);
}
.post-toc__item{
  display:block; padding:5px 0 5px 13px;
  border-left:1px solid transparent;
  font-size:12.5px; line-height:1.55; color:var(--text-dim); opacity:.88;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  transition:color .25s var(--ease), border-color .25s var(--ease);
}
.post-toc__item:hover{ color:var(--text); border-left-color:transparent; }
.post-toc__item--l2{ padding-left:25px; font-size:12px; }
.post-toc__item--l3{ padding-left:36px; font-size:11.5px; opacity:.85; }
@media (min-width:1180px){
  .post-layout.has-toc{ grid-template-columns:minmax(0,1fr) 208px; }
  .post-toc{
    display:block; position:sticky; top:calc(var(--header-h, 96px) + 26px);
    align-self:start; max-height:calc(100vh - var(--header-h, 96px) - 60px);
    overflow-y:auto; overscroll-behavior:contain;
  }
}

/* --- Markdown 正文 --- */
.md{ font-size:var(--post-size, 16px); line-height:var(--post-line, 1.95); color:var(--text-dim); overflow-wrap:break-word; }
/* 衬线字体（后台「主题」→ 字体） */
html[data-readfont="serif"] .md{
  font-family:"Songti SC","Noto Serif SC","Source Han Serif SC","Times New Roman",Georgia,serif;
  letter-spacing:.01em;
}
html[data-readfont="serif"] .md h2,
html[data-readfont="serif"] .md h3,
html[data-readfont="serif"] .md h4{ font-family:inherit; }
/* 关掉右侧目录后正文占满整行 */
html[data-toc="off"] .post-layout.has-toc{ grid-template-columns:minmax(0,1fr); }
html[data-toc="off"] .post-toc{ display:none; }
.md > :first-child{ margin-top:0; }
.md p{ margin:1em 0; }
.md strong{ color:var(--text); font-weight:700; }
.md em{ font-style:italic; }
.md del{ opacity:.6; }
.md a{
  color:var(--ink-a1); border-bottom:1px solid color-mix(in srgb, var(--a1) 38%, transparent);
  transition:border-color .25s var(--ease);
}
.md a:hover{ border-bottom-color:var(--a1); }
.md h2, .md h3, .md h4, .md h5, .md h6{
  color:var(--text); font-weight:700; line-height:1.45;
  scroll-margin-top:calc(var(--header-h, 96px) + 22px);
}
.md h2{ margin:2.1em 0 .7em; font-size:22px; letter-spacing:-.01em; }
.md h2::before, .md h3::before{
  content:""; display:inline-block; margin-right:10px;
  border-radius:2px; background:var(--grad); vertical-align:1px;
}
.md h2::before{ width:4px; height:16px; }
.md h3::before{ width:3px; height:13px; }
.md h3{ margin:1.9em 0 .6em; font-size:19px; }
.md h4{ margin:1.6em 0 .5em; font-size:16.5px; }
.md h5, .md h6{ margin:1.4em 0 .4em; font-size:15px; color:var(--text-dim); }
.md ul, .md ol{ margin:1em 0; padding-left:1.45em; }
.md li{ margin:.36em 0; }
.md li::marker{ color:color-mix(in srgb, var(--a1) 85%, transparent); }
.md li > ul, .md li > ol{ margin:.3em 0; }
.md .md-li__more{ display:block; color:var(--text-mute); font-size:14px; }
.md blockquote.md-quote{
  margin:1.5em 0; padding:14px 20px 14px 18px;
  border-left:3px solid var(--a1); border-radius:0 12px 12px 0;
  background:var(--glass); color:var(--text-dim);
}
.md blockquote.md-quote p{ margin:.4em 0; }
.md hr{ margin:2.4em 0; border:0; height:1px; background:var(--border); }
.md img{ margin:1.5em 0; border-radius:14px; border:1px solid transparent; }
.md code{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:.87em; padding:2px 6px; border-radius:6px;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text);
}
.md pre.md-code{
  position:relative; margin:1.5em 0; padding:17px 19px;
  border-radius:14px; overflow:auto;
  background:color-mix(in srgb, var(--bg-soft) 88%, transparent);
  border:1px solid transparent;
}
.md pre.md-code code{
  padding:0; border:0; background:none;
  font-size:13px; line-height:1.8; color:var(--text-dim); white-space:pre;
}
.md pre.md-code[data-lang]:not([data-lang=""])::before{
  content:attr(data-lang); position:absolute; top:9px; right:14px;
  font-size:10px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--text-mute); opacity:.7;
}
.md-table{ margin:1.5em 0; overflow-x:auto; border-radius:12px; border:1px solid transparent; }
.md-table table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.md-table th, .md-table td{ padding:9px 14px; border-bottom:1px solid transparent; text-align:left; }
.md-table th{ background:var(--glass-hi); color:var(--text); font-weight:600; white-space:nowrap; }
.md-table tr:last-child td{ border-bottom:0; }
.md-task{ display:inline-flex; align-items:flex-start; gap:9px; }
.md-task__box{
  position:relative; flex:0 0 auto; width:15px; height:15px; margin-top:6px;
  /* 描边去掉了，未勾选时靠一点底色还看得出是个方框；勾上用渐变块 */
  border-radius:5px; border:1.5px solid transparent; background:var(--glass-hi);
}
.md-task.is-done .md-task__box{ background:var(--grad); border-color:transparent; }
.md-task.is-done .md-task__box::after{
  content:""; position:absolute; left:4px; top:1px; width:4px; height:8px;
  border:2px solid #fff; border-top:0; border-left:0; transform:rotate(42deg);
}
.md-task.is-done .md-task__txt{ color:var(--text-mute); text-decoration:line-through; }

@media (max-width:760px){
  /* 手机上比后台设置的字号略小半号，行高保持一致 */
  .md{ font-size:calc(var(--post-size, 16px) - .5px); line-height:var(--post-line, 1.95); }
  .md h2{ font-size:19.5px; }
  .md h3{ font-size:17px; }
  .post-foot{ margin-top:44px; }
  .post-pn{ grid-template-columns:1fr; }
  .post-pn__item--next{ text-align:left; align-items:flex-start; }
}
@media (max-width:640px){
  /* 列表卡片：日期挪到标题上方一行，标题占满宽度 */
  .post-card{ grid-template-columns:minmax(0,1fr); gap:0; padding:15px 16px; }
  .post-card__date{ flex-direction:row; align-items:baseline; gap:7px; margin-bottom:5px; }
  .post-card__date b{ font-size:13px; color:var(--text-mute); font-weight:600; }
  .post-card__date span{ font-size:11px; }
  .post-card__title{ font-size:15.5px; }
  .post-card__desc{ -webkit-line-clamp:2; font-size:13px; }
  .post-card__go{ display:none; }
  .post-card__meta{ margin-top:9px; }
  .post-title{ font-size:25px; }
  .post-meta{ font-size:12px; }
  .post-meta__copy{ margin-left:0; }
}

/* =========================================================
   后台 · 文章编辑
   ========================================================= */
.post-admin-list{ display:grid; gap:8px; margin-top:16px; }
.post-admin-row{
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 14px; align-items:center;
  padding:12px 14px; border-radius:12px;
  background:var(--glass-hi); border:1px solid transparent;
  transition:border-color .25s var(--ease);
}
.post-admin-row:hover{ border-color:transparent; }
.post-admin-row.is-editing{ border-color:transparent; box-shadow:0 0 0 3px color-mix(in srgb, var(--a1) 12%, transparent); }
/* 刚保存完的那一行闪一下，让人一眼看到「存到哪去了」 */
.post-admin-row.is-saved{ background:color-mix(in srgb, var(--a1) 10%, transparent); }
@keyframes savedFlash{
  0%{ box-shadow:none; }
  100%{ box-shadow:0 0 0 12px transparent; }
}
.post-admin-row.is-saved{ animation:savedFlash .95s var(--ease); }
.post-admin-row__main{ min-width:0; }
.post-admin-row__title{
  display:flex; align-items:center; gap:7px;
  font-size:14px; font-weight:600; color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.post-admin-row__title i{ font-style:normal; }
.post-admin-row__badge{
  flex:0 0 auto; padding:1px 7px; border-radius:99px;
  font-size:10.5px; font-weight:600;
  background:var(--glass); border:1px solid transparent; color:var(--text-mute);
}
.post-admin-row__badge--draft{ color:#ffc46b; border-color:transparent; }
.post-admin-row__meta{
  margin-top:4px; font-size:11.5px; color:var(--text-mute);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.post-admin-row__ops{ display:flex; align-items:center; gap:6px; flex-shrink:0; }
.post-admin-row__ops button{
  height:30px; padding:0 11px; border-radius:9px;
  font-size:12.5px; color:var(--text-dim);
  background:var(--glass); border:1px solid transparent;
  transition:all .22s var(--ease);
}
.post-admin-row__ops button:hover{ color:var(--text); border-color:transparent; }
.post-admin-row__ops button.is-danger:hover{ color:#ff9c9c; border-color:transparent; background:rgba(255,110,110,.12); }
.post-admin-row__ops button.is-on{ color:var(--text); border-color:transparent; background:rgba(124,156,255,.14); }

.post-editor{ display:grid; gap:0; }
.post-editor__grid{ display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:0 16px; align-items:start; }
.post-editor__grid .admin-field{ min-width:0; }
.post-editor textarea{
  width:100%; padding:12px 14px; border-radius:11px; resize:vertical;
  background:var(--glass-hi); border:1px solid transparent; color:var(--text);
  outline:none; font-family:inherit; font-size:14px; line-height:1.8;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.post-editor textarea:focus{ border-color:transparent; box-shadow:0 0 0 4px rgba(124,156,255,.14); }
.post-editor textarea#postBody{
  min-height:380px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:13px; line-height:1.85; tab-size:2;
}
.post-editor__bar{
  display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-top:12px;
}
.post-editor__bar .btn{ height:34px; padding:0 13px; border-radius:10px; font-size:12.5px; }
.post-editor__count{ font-size:11.5px; color:var(--text-mute); font-variant-numeric:tabular-nums; }
.post-editor__preview{
  margin-top:14px; padding:18px 22px; border-radius:14px;
  background:color-mix(in srgb, var(--bg-soft) 70%, transparent);
  border:1px dashed transparent;
  max-height:520px; overflow:auto;
}
.post-editor__preview[hidden]{ display:none; }
.post-editor__preview .md{ font-size:14.5px; }

/* --- 正文的 Markdown 快捷输入条 --- */
.post-editor__main{ position:relative; }
.md-tools{
  display:flex; align-items:center; gap:2px; flex-wrap:wrap;
  padding:5px 6px; margin-bottom:7px;
  border:1px solid transparent; border-radius:11px;
  background:var(--glass);
}
.md-tools__group{ display:flex; gap:2px; }
.md-tools__group + .md-tools__group{
  margin-left:6px; padding-left:8px; border-left:1px solid transparent;
}
.md-tools__btn{
  min-width:28px; height:28px; padding:0 7px; border-radius:7px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:12.5px; font-weight:600; color:var(--text-dim);
  transition:background .18s var(--ease), color .18s var(--ease);
}
.md-tools__btn:hover{ background:var(--glass-hi); color:var(--text); }
.md-tools__btn:active{ transform:translateY(1px); }
.md-tools__btn[data-md="bold"]{ font-weight:800; }
.md-tools__btn[data-md="italic"]{ font-family:Georgia,"Times New Roman",serif; font-style:italic; font-size:13.5px; }
.md-tools__btn[data-md="strike"]{ text-decoration:line-through; }
.md-tools__btn[data-md="code"]{ font-family:ui-monospace,Menlo,monospace; font-size:12px; }
.md-tools__btn[data-md="h1"]{ font-size:13.5px; }
.md-tools__btn svg{
  width:14px; height:14px; fill:none; stroke:currentColor;
  stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
}
.md-tools__help{ margin-left:auto; opacity:.7; font-weight:700; }
.md-tools__help:hover{ opacity:1; }

/* 快捷键说明：就地展开，别浮在正文上面（半透明底压字会看不清） */
.md-help{
  margin:0 0 8px; padding:14px 16px 12px; border-radius:12px;
  background:var(--glass-2); border:1px solid transparent;
}
.md-help[hidden]{ display:none; }
.md-help__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.md-help__head b{ font-size:13px; font-weight:600; color:var(--text); }
.md-help__x{
  width:22px; height:22px; border-radius:6px; display:grid; place-items:center;
  font-size:14px; line-height:1; color:var(--text-mute);
}
.md-help__x:hover{ background:var(--glass-hi); color:var(--text); }
.md-help__list{
  display:grid; grid-template-columns:auto minmax(0,1fr);
  gap:7px 14px; margin:0; align-items:center;
}
.md-help__list dt{ margin:0; }
.md-help__list dd{ margin:0; font-size:12.5px; color:var(--text-dim); line-height:1.5; }
.md-help kbd{
  display:inline-block; padding:2px 7px; border-radius:6px;
  background:var(--glass-hi); border:1px solid transparent;
  font-family:ui-monospace,Menlo,monospace; font-size:11.5px; color:var(--text-dim);
  white-space:nowrap;
}
.md-help__tip{
  margin:11px 0 0; padding-top:10px; border-top:1px dashed transparent;
  font-size:11.5px; color:var(--text-mute);
}
@media (max-width:900px){
  .post-editor__grid{ grid-template-columns:minmax(0,1fr); }
  .post-admin-row{ grid-template-columns:minmax(0,1fr); }
  .post-admin-row__ops{ flex-wrap:wrap; }
  .md-tools{ gap:1px; }
  .md-tools__group + .md-tools__group{ margin-left:3px; padding-left:5px; }
  .md-tools__btn{ min-width:26px; padding:0 5px; }
}

/* =========================================================
   后台 · 主题 & 阅读
   ========================================================= */
.admin-grid2{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:0 14px; }
@media (max-width:760px){ .admin-grid2{ grid-template-columns:minmax(0,1fr); } }

.look-swatches{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.look-swatch{
  display:flex; align-items:center; gap:9px; padding:8px 13px 8px 9px; border-radius:12px;
  background:var(--glass); border:1px solid transparent; color:var(--text-dim);
  font-size:12.5px; transition:transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.look-swatch:hover{ transform:translateY(-1px); border-color:transparent; color:var(--text); }
.look-swatch.is-active{
  border-color:transparent;
  background:color-mix(in srgb, var(--a1) 14%, transparent);
  color:var(--text);
}
.look-swatch__dot{
  width:22px; height:22px; border-radius:8px;
  box-shadow:none;
}
.look-swatch__name{ white-space:nowrap; }

.look-color{
  display:flex; align-items:center; gap:12px; margin-top:14px; padding:11px 14px;
  border-radius:13px; background:var(--glass); border:1px solid transparent;
  transition:border-color .25s var(--ease);
}
.look-color.is-active{ background:color-mix(in srgb, var(--a1) 9%, transparent); }
.look-color input[type="color"]{
  width:44px; height:44px; padding:3px; border-radius:11px; cursor:pointer; flex:0 0 auto;
  background:var(--glass-hi); border:1px solid transparent;
}
.look-color input[type="color"]::-webkit-color-swatch-wrapper{ padding:0; }
.look-color input[type="color"]::-webkit-color-swatch{ border:0; border-radius:8px; }
.look-color__txt{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.look-color__txt b{ font-size:13px; font-weight:600; color:var(--text); }
.look-color__txt em{ font-style:normal; font-size:11.5px; color:var(--text-mute); }
.look-color code{
  margin-left:auto; flex:0 0 auto; font-size:12px; color:var(--text-dim);
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* 自定义主色右侧：色值输入 + 「存为配色」 */
.look-color__side{
  margin-left:auto; flex:0 0 auto;
  display:flex; align-items:center; gap:10px;
}
/* 直接敲色值（#ff1d55 / ff1d55 / #f15 都认） */
.look-hex{
  display:flex; align-items:center; gap:7px; height:32px; padding:0 10px;
  border-radius:9px; background:var(--glass-hi); cursor:text;
  transition:background .22s var(--ease);
}
.look-hex:hover{ background:color-mix(in srgb, var(--a1) 14%, transparent); }
.look-hex:focus-within{ background:color-mix(in srgb, var(--a1) 18%, transparent); }
.look-hex span{
  font-size:9.5px; font-weight:700; letter-spacing:.14em;
  color:var(--text-mute); flex:0 0 auto; user-select:none;
}
.look-hex input{
  width:78px; height:100%; padding:0; border:0; outline:none; background:none;
  color:var(--text); font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:12.5px; letter-spacing:.02em;
}
.look-hex input::placeholder{ color:var(--text-mute); }
.look-hex.is-bad{ background:rgba(255,110,110,.14); }
.look-hex.is-bad input{ color:#ff9c9c; }
.look-color__side code{ margin-left:0; }
.look-color__side .look-save{
  height:32px; padding:0 12px; border-radius:9px; font-size:12px; font-weight:600;
}
.look-color__side .look-save:hover{ transform:none; }
.look-color__side .look-save[disabled]{
  opacity:.45; cursor:not-allowed; transform:none;
}
/* 窄屏：色值 + 按钮换到第二行，别把「自定义主色」挤成竖条 */
@media (max-width:640px){
  .look-color{ flex-wrap:wrap; row-gap:12px; }
  .look-color__txt{ flex:1 1 auto; }
  .look-color__side{ margin-left:0; width:100%; justify-content:space-between; }
  .look-hex{ flex:1 1 auto; }
  .look-hex input{ width:100%; }
}

/* 我的配色（可以自己存几套） */
.look-sub{
  display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
  margin:18px 0 8px; padding-top:15px; border-top:1px dashed transparent;
}
.look-sub b{ font-size:13px; font-weight:600; color:var(--text); }
.look-sub em{ font-style:normal; font-size:11.5px; color:var(--text-mute); }

.look-presets{ display:flex; flex-wrap:wrap; gap:9px; }
.look-presets.is-empty{ display:block; }
.look-empty{
  margin:0; padding:13px 15px; border-radius:11px;
  border:1px dashed transparent;
  font-size:12.5px; color:var(--text-mute);
}
.look-preset{
  display:flex; align-items:center; gap:2px; padding:4px 6px 4px 4px;
  flex:0 0 auto; max-width:100%;
  border-radius:12px; background:var(--glass); border:1px solid transparent;
  transition:transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.look-preset:hover{ transform:translateY(-1px); border-color:transparent; }
.look-preset.is-active{
  border-color:transparent;
  background:color-mix(in srgb, var(--a1) 14%, transparent);
}
.look-preset__main{
  display:flex; align-items:center; gap:8px;
  padding:5px 8px 5px 5px; border-radius:9px;
  font-size:12.5px; color:var(--text-dim); white-space:nowrap;
}
.look-preset.is-active .look-preset__main,
.look-preset__main:hover{ color:var(--text); }
.look-preset__dot{
  width:20px; height:20px; border-radius:7px; flex:0 0 auto;
  box-shadow:none;
}
.look-preset__name{ max-width:96px; overflow:hidden; text-overflow:ellipsis; }
.look-preset code{
  font-size:11px; color:var(--text-mute);
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
}
.look-preset__act{
  width:22px; height:22px; flex:0 0 auto; border-radius:7px;
  display:grid; place-items:center;
  font-size:12px; line-height:1; color:var(--text-mute);
  opacity:.7; transition:opacity .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.look-preset:hover .look-preset__act{ opacity:1; }
.look-preset__act:hover{ background:var(--glass-hi); color:var(--text); }
.look-preset__act--del:hover{ background:rgba(255,110,110,.18); color:#ffbdbd; }
.look-preset.is-editing{ padding:4px 8px 4px 4px; border-color:transparent; }
.look-preset__input{
  width:104px; height:26px; padding:0 8px; border-radius:8px;
  background:var(--glass-hi); border:1px solid transparent;
  font-size:12.5px; color:var(--text);
}
.look-preset__input:focus{ outline:none; border-color:transparent; }

/* 字号滑杆：别继承 .admin-field input 的 42px 高度和描边 */
.admin-field input[type="range"]{
  height:auto; padding:0; margin-top:2px;
  background:none; border:0; box-shadow:none;
  accent-color:var(--a1); cursor:pointer;
}
.look-num{ float:right; font-size:12.5px; font-weight:600; color:var(--text); font-variant-numeric:tabular-nums; }
.look-scale{ display:flex; justify-content:space-between; margin-top:4px; font-size:10.5px; color:var(--text-mute); }
.look-scale i{ font-style:normal; }

.look-preview{
  margin-top:18px; padding:22px 24px; border-radius:var(--r);
  background:color-mix(in srgb, var(--bg-soft) 72%, transparent);
  border:1px dashed transparent;
}
.look-paper{ max-width:var(--post-width, 820px); }
.look-paper__eyebrow{
  display:block; font-size:11px; letter-spacing:.16em; color:var(--text-mute);
}
.look-paper h3{
  margin:10px 0 12px; font-size:calc(var(--post-size, 16px) + 6px);
  font-weight:700; color:var(--text);
}
.look-paper p{
  margin:.7em 0; font-size:var(--post-size, 16px);
  line-height:var(--post-line, 1.95); color:var(--text-dim);
}
.look-paper .tag{ font-size:11.5px; }
html[data-readfont="serif"] .look-paper{
  font-family:"Songti SC","Noto Serif SC","Source Han Serif SC",Georgia,serif;
}

/* =========================================================
   灵感随记（#/idea）
   ---------------------------------------------------------
   和站里其它页一个调子：不铺白底、不描边、不用阴影，
   分区全靠 --glass / --glass-2 两档极淡底色 + 圆角。
   ========================================================= */
.page--idea{ padding-bottom:48px; }
.page-head--idea{ align-items:flex-start; }
.idea-tools{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; margin-top:10px; }
.idea-tools .btn{ height:34px; padding:0 14px; font-size:12.5px; }

/* ---- 写一条 ---- */
.idea-composer{
  padding:16px 18px 14px; border-radius:var(--r-lg);
  background:var(--glass); border:1px solid transparent;
  transition:background .3s var(--ease);
}
.idea-composer:focus-within{ background:var(--glass-2); }
.idea-composer textarea{
  display:block; width:100%; min-height:100px; resize:vertical;
  padding:0; border:0; outline:none; background:none;
  color:var(--text); font:inherit; font-size:15px; line-height:1.85;
}
.idea-composer textarea::placeholder{ color:var(--text-mute); }
.idea-composer__foot{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap; margin-top:12px;
}
.idea-tip{ font-size:12px; color:var(--text-mute); }

/* ---- 标签条 ---- */
.idea-rail{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  margin:18px 0 16px;
}
.idea-rail__n{ margin-left:3px; font-size:11px; font-variant-numeric:tabular-nums; }
.idea-rail__tip{ font-size:12px; color:var(--text-mute); }

/* ---- 卡片墙：瀑布流，省高度也不留空格 ---- */
.idea-grid{ columns:380px; column-gap:14px; }
.idea-card{
  display:inline-block; width:100%; margin:0 0 14px;
  /* v138：操作按钮挪到卡片右上角，顶部留出那一行的高度，正文不会从按钮底下穿过 */
  padding:42px 20px 16px; border-radius:var(--r);
  background:var(--glass); border:1px solid transparent;
  vertical-align:top;
  break-inside:avoid; -webkit-column-break-inside:avoid;
  transition:background .3s var(--ease);
}
.idea-card:hover{ background:var(--glass-2); }
.idea-card.is-editing{ background:var(--glass-2); }
/* 卡片里的 Markdown 收紧一档：正文的行距是给长文用的，小卡片里太散 */
.idea-card__body.md{
  font-size:14.5px; line-height:1.8; color:var(--text-dim);
}
.idea-card__body.md > :first-child{ margin-top:0; }
.idea-card__body.md > :last-child{ margin-bottom:0; }
.idea-card__body.md p{ margin:.5em 0; }
.idea-card__body.md h1,
.idea-card__body.md h2,
.idea-card__body.md h3{ margin:.7em 0 .35em; font-size:15.5px; }
.idea-card__body.md ul,
.idea-card__body.md ol{ margin:.5em 0; padding-left:1.25em; }
.idea-card__body.md blockquote{ margin:.6em 0; }
.idea-card__body.md pre{ margin:.6em 0; font-size:12.5px; }
.idea-card__raw{ margin:0; color:var(--text-dim); white-space:pre-wrap; }

.idea-card__foot{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; flex-wrap:wrap; margin-top:12px;
}
.idea-card__meta{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.idea-card__date{ font-size:11.5px; color:var(--text-mute); font-variant-numeric:tabular-nums; }
.idea-card__tags{ display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; }
.idea-card__tags .tag{ padding:2px 9px; font-size:11.5px; }
/* v138：操作按钮固定在卡片右上角（原来是压在底部 meta 后面，内容一长就要往下找） */
.idea-card__ops{
  position:absolute; top:9px; right:10px; margin:0;
  display:inline-flex; align-items:center; gap:2px;
}

.idea-mini{
  padding:3px 7px; border:0; border-radius:8px; background:none;
  font:inherit; font-size:12px; color:var(--text-mute); cursor:pointer;
  transition:color .2s var(--ease), background .2s var(--ease);
}
.idea-mini:hover{ color:var(--ink-a1); background:var(--glass-hi); }
.idea-mini--del:hover{ color:#ff8f8f; }

/* 就地编辑 */
.idea-edit{
  display:block; width:100%; min-height:92px; resize:vertical;
  padding:10px 12px; border:0; border-radius:12px; outline:none;
  background:var(--glass-hi); color:var(--text);
  font:inherit; font-size:14.5px; line-height:1.8;
}
.idea-edit__ops{ display:flex; justify-content:flex-end; gap:8px; margin-top:10px; }
/* 卡片里的「取消 / 保存」用正常尺寸会把卡撑得很高，小一号正好 */
.idea-edit__ops .btn--mini{ height:32px; padding:0 13px; border-radius:9px; font-size:12.5px; }

@media (max-width:960px){
  .idea-tools{ width:100%; justify-content:flex-start; }
}
@media (max-width:640px){
  .page-head--idea{ align-items:stretch; }
  .idea-tools{ justify-content:center; }
  .idea-grid{ columns:1; }
  .idea-composer{ padding:14px 15px 12px; }
  .idea-composer textarea{ min-height:88px; font-size:14.5px; }
  .idea-composer__foot{ flex-direction:column-reverse; align-items:stretch; }
  .idea-composer__foot .btn{ width:100%; }
  .idea-tip{ text-align:center; }
  .idea-rail{ gap:7px; margin:16px 0 14px; }
}

/* =========================================================
   后台 · 分享条目（列表行复用 .post-admin-row）
   ========================================================= */
.feed-preview{ padding:16px 18px; }
.feed-preview .feed-card{ transform:none; cursor:default; }
.feed-preview .feed-card:hover{
  transform:none; box-shadow:none; border-color:transparent;
}
.feed-preview .feed-card__title{ font-size:15.5px; }

/* v129：所有条目一次铺开成格子（以前只列前 60 条，剩下几百条藏在搜索里，
   后台看着像「数据丢了」）。一列一行太占地方，宽屏一行放两到三格。 */
.feed-admin-list{
  display:grid; gap:8px; margin-top:16px;
  grid-template-columns:repeat(auto-fill, minmax(340px, 1fr));
}
/* 正在编辑的那一格跨满整排 —— 表单里有两栏，挤在 340px 里没法用 */
.feed-admin-list .post-admin-row.is-open{ grid-column:1 / -1; }

/* 就地展开的表单：顶上一条「正在编辑 xxx」，下面才是表单本体 */
.feed-form{ min-width:0; }
.feed-form__head{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-bottom:12px; }
.feed-form__head b{ font-size:14px; font-weight:700; color:var(--text); }
.feed-form__name{
  min-width:0; font-size:12.5px; color:var(--text-dim);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.feed-form__date{
  margin-left:auto; font-size:11.5px; color:var(--text-mute);
  font-variant-numeric:tabular-nums;
}
@media (max-width:760px){
  .feed-admin-list{ grid-template-columns:minmax(0,1fr); }
}

/* =========================================================
   后台 · 手册 / 技术参数
   没有描边可用，靠 2px 的间隙 + 极淡底色把一行一行分开
   ========================================================= */
.guide-list{
  display:flex; flex-direction:column; gap:2px; margin-top:10px;
}
.guide-row{
  display:grid; grid-template-columns:136px minmax(0,1fr); gap:12px;
  align-items:baseline; padding:7px 11px; border-radius:9px; font-size:13px;
}
.guide-list > .guide-row:nth-child(odd){ background:var(--glass); }
.guide-row b{ color:var(--text); font-weight:600; }
.guide-row span{ color:var(--text-dim); line-height:1.75; }
.guide-row code, .guide-kv code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px;
  padding:1px 5px; border-radius:5px; background:var(--glass-hi); color:var(--text);
}
.guide-grid{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; margin-top:10px;
}
.guide-kv{
  display:flex; flex-direction:column; gap:3px; padding:9px 12px; border-radius:10px;
  background:var(--glass);
}
.guide-kv b{ font-size:11.5px; letter-spacing:.05em; color:var(--text-mute); font-weight:600; }
.guide-kv span{ font-size:13px; color:var(--text); line-height:1.7; }
.guide-steps{ margin:10px 0 0; padding-left:20px; }
.guide-steps li{ margin:7px 0; font-size:13px; color:var(--text-dim); line-height:1.75; }
.guide-steps b{ color:var(--text); }
/* 复制按钮在窄屏下换到标题下面，别把副标题挤成一条 */
.guide-head .btn{ flex:0 0 auto; }
@media (max-width:760px){
  .guide-grid{ grid-template-columns:minmax(0,1fr); }
  .guide-row{ grid-template-columns:minmax(0,1fr); gap:3px; }
}
@media (max-width:640px){
  .guide-head{ flex-direction:column; align-items:stretch; gap:10px; }
  .guide-head .btn{ align-self:flex-start; height:34px; font-size:12.5px; }
}

/* ---------- 发布到虚拟主机：体检 / 拆图片 / 版本历史 ---------- */
/* 体检结论：有问题是橙色，没问题一句话带过 */
.admin-tip.sn-ok{ color:#7ee0a8; }
.admin-tip.sn-warn{ color:#ffb27a; }
.sn-issues{ margin:7px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:4px; }
.sn-issue{
  font-size:12.5px; line-height:1.7; color:var(--text-dim);
  padding:6px 11px; border-radius:8px; background:var(--glass);
}
.sn-issue b{ color:var(--text); font-weight:600; margin-right:2px; }
.sn-issue--err b{ color:#ff9b9b; }
.sn-issue--warn b{ color:#ffc98a; }
.sn-issue--more{ color:var(--text-mute); font-style:normal; background:none; padding-left:2px; }

/* 「把内嵌图片拆成独立文件」那一行开关 */
.sn-check{
  display:flex; align-items:flex-start; gap:9px;
  margin:10px 0 0; padding:9px 12px; border-radius:10px;
  background:var(--glass); font-size:12.5px; line-height:1.7; color:var(--text-dim);
  cursor:pointer;
}
.sn-check input{ margin:2px 0 0; width:15px; height:15px; flex:0 0 auto; accent-color:var(--a1); }
.sn-check b, .sn-check code{ color:var(--text); }

/* 体检有标红错误时，导出按钮右上角点一颗红灯，提醒「先看看上面那几条」 */
.btn.is-blocked{ position:relative; }
.btn.is-blocked::after{
  content:''; position:absolute; top:-4px; right:-4px;
  width:10px; height:10px; border-radius:50%; background:#ff6b6b;
  box-shadow:0 0 0 2px var(--bg), 0 0 10px rgba(255,90,90,.75);
  animation:snBlockedPulse 2.4s var(--ease) infinite;
}
@keyframes snBlockedPulse{
  0%,100%{ opacity:.75; }
  50%{ opacity:1; }
}
@media (prefers-reduced-motion:reduce){
  .btn.is-blocked::after{ animation:none; }
}

/* 版本历史列表 */
.hist-snap{ display:flex; gap:8px; margin-top:12px; }
.hist-snap input{
  flex:1 1 auto; min-width:0; height:34px; padding:0 12px;
  border-radius:10px; font-size:12.5px; color:var(--text);
  background:var(--glass); border:1px solid var(--line, rgba(255,255,255,.1));
  font-family:inherit;
}
.hist-snap input::placeholder{ color:var(--text-mute); }
.hist-snap input:focus{ outline:none; border-color:var(--a1); }
.hist-snap .btn{ flex:0 0 auto; height:34px; padding:0 14px; font-size:12.5px; }
.hist-list{ display:flex; flex-direction:column; gap:3px; margin-top:10px; }
.hist-row{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto auto auto; gap:11px;
  align-items:center; padding:8px 12px; border-radius:9px; font-size:12.5px;
}
.hist-list > .hist-row:nth-child(odd){ background:var(--glass); }
.hist-row.is-pin{ background:rgba(255,210,140,.07); }
.hist-row__when{ color:var(--text-mute); font-variant-numeric:tabular-nums; white-space:nowrap; }
.hist-row__what{ color:var(--text); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hist-row__what b{ font-weight:600; color:var(--a1-soft, var(--text)); }
.hist-row__size{ color:var(--text-mute); font-variant-numeric:tabular-nums; white-space:nowrap; }
.hist-row .btn{ height:28px; padding:0 11px; font-size:12px; }
.hist-pin{ margin-right:4px; }
.hist-del{
  width:24px; height:24px; border-radius:50%; flex:0 0 auto;
  font-size:14px; line-height:1; color:var(--text-mute);
  background:none; border:1px solid transparent;
  transition:color .2s var(--ease), background .2s var(--ease);
}
.hist-del:hover{ color:#ff9b9b; background:var(--glass-hi); }
.hist-empty{ font-size:12.5px; color:var(--text-mute); margin:10px 0 0; }
@media (max-width:640px){
  .hist-snap{ flex-wrap:wrap; }
  .hist-snap input{ flex-basis:100%; }
  .hist-row{ grid-template-columns:minmax(0,1fr) auto auto; gap:4px 8px; }
  .hist-row__when{ grid-row:2; grid-column:1; }
  .hist-row__size{ grid-row:2; grid-column:2 / 4; text-align:right; }
  .hist-row .btn{ grid-row:1; grid-column:2; }
  .hist-del{ grid-row:1; grid-column:3; }
}

/* ---------- 分类栏「只看」：勾几个分类，只渲染它们 ---------- */
.cat-pick{
  flex:0 0 auto; height:24px; padding:0 10px; border-radius:99px;
  font-size:11px; letter-spacing:.04em; color:var(--text-mute);
  background:var(--glass); border:1px solid transparent;
  transition:color .25s var(--ease), background .25s var(--ease);
  white-space:nowrap;
}
.cat-pick:hover{ color:var(--text); background:var(--glass-hi); }
.cat-pick.is-on{ color:var(--text); background:color-mix(in srgb, var(--a1) 22%, transparent); }
/* 勾选模式下每项前面长出一个方块勾选框（用 ::before，不改 DOM） */
.cat-rail.is-pick .cat-item{ padding-left:6px; gap:6px; }
.cat-rail.is-pick .cat-item::before{
  content:''; flex:0 0 auto; width:13px; height:13px; border-radius:4px;
  background:var(--glass-hi);
  box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--a1) 42%, transparent);
  transition:background .2s var(--ease), box-shadow .2s var(--ease);
}
.cat-rail.is-pick .cat-item.is-picked::before{
  background:var(--a1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2l2.2 2.2 4.6-5' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/9px 9px;
  box-shadow:none;
}
.cat-item.is-picked{ color:var(--text); background:var(--glass); }

/* ---------- 关于页（#/about）：和文章页共用排版，只补标题下面那点东西 ---------- */
.page--about .post-title{ margin-top:12px; }
.about-lede{
  margin:16px 0 0; max-width:56ch;
  font-size:clamp(15px,1.9vw,17.5px); line-height:1.9; color:var(--text-dim);
}
.about-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:26px; }

/* ---------- 首页「赞助」小尾巴 ---------- */
.sponsor{
  margin-top:clamp(34px,5vw,60px);
  display:flex; align-items:center; gap:clamp(18px,3vw,40px); flex-wrap:wrap;
  padding:clamp(20px,3vw,34px); border-radius:var(--r-lg, 26px);
  background:var(--glass);
}
.sponsor__copy{ flex:1 1 340px; min-width:0; }
.sponsor__kicker{
  font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--text-mute);
}
.sponsor h2{
  margin:10px 0 0; font-size:clamp(19px,2.4vw,24px); font-weight:700; letter-spacing:-.01em;
}
.sponsor p{
  margin:10px 0 0; max-width:52ch;
  font-size:13.5px; line-height:1.85; color:var(--text-dim);
}
.sponsor__foot{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:16px; }
.sponsor__note{ font-size:12px; color:var(--text-mute); }
.sponsor__media{
  flex:0 0 auto; width:150px; height:150px; border-radius:16px; overflow:hidden;
  display:grid; place-items:center; background:var(--glass-2);
}
.sponsor__media img{ width:100%; height:100%; object-fit:contain; display:block; }
.sponsor__media--none{
  font-size:46px; line-height:1;
  background:radial-gradient(circle at 40% 30%, rgba(124,156,255,.24), rgba(180,124,255,.13));
}

/* 多张收款码：支付宝 / 微信 / 云闪付…各一张，横向排开，放不下自动换行。
   每张 = 图 + 下面一行小名字（名字留空就只有图）。设了跳转的整张可点。 */
.sponsor__codes{
  /* flex:0 1 auto —— 必须能「缩」。写 0 0 auto 的话几张码加起来超过一行宽时
     它会硬顶出去（3 张 112px 在 390 屏上就溢出 38px，整页多出一条横向滚动），
     改成可收缩后由内部的 flex-wrap 自己换行。 */
  flex:0 1 auto; min-width:0; max-width:100%;
  display:flex; align-items:flex-start; justify-content:flex-end;
  flex-wrap:wrap; gap:12px; margin-left:auto;
}
.sponsor__code{
  display:flex; flex-direction:column; align-items:center; gap:7px;
  text-decoration:none; color:inherit;
}
.sponsor__code img{
  display:block; width:132px; height:132px; object-fit:contain;
  border-radius:16px; background:var(--glass-2);
  transition:transform .35s var(--ease);
}
.sponsor__code-label{
  font-size:11.5px; color:var(--text-mute); letter-spacing:.04em; white-space:nowrap;
}
a.sponsor__code:hover img{ transform:translateY(-4px); }
a.sponsor__code:hover .sponsor__code-label{ color:var(--text); }
@media (max-width:640px){
  .sponsor{ gap:18px; }
  .sponsor__media{ width:100%; max-width:170px; height:auto; aspect-ratio:1; }
  /* 手机上收款码独占一行、缩到 112px，两张并排正好放下。
     v187：从「靠左」改成**居中** —— 靠左时右边空一大块，看着像漏排了。 */
  .sponsor__codes{ flex:1 1 100%; justify-content:center; margin-left:0; gap:10px; }
  .sponsor__code img{ width:112px; height:112px; border-radius:14px; }
  .about-actions .btn{ height:42px; font-size:13px; padding:0 18px; }
}

/* 收款码点开看大图（v187）。
   码小的时候手机扫不出来，点一下铺满屏；点任意处 / 按 ESC 关掉。
   颜色是固定的深色遮罩，不跟主题走：放大图片时要的是「只剩下这张图」，
   浅色主题下再铺一层浅灰反而看不清边界。 */
.xy-zoom{
  position:fixed; inset:0; z-index:210;
  display:grid; place-items:center; padding:24px;
  background:rgba(8,10,16,.78);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  cursor:zoom-out; animation:xyZoomIn .16s var(--ease);
}
.xy-zoom img{
  max-width:min(92vw,520px); max-height:82vh; width:auto; height:auto;
  border-radius:18px; background:#fff;
  box-shadow:0 30px 80px rgba(0,0,0,.45);
  animation:xyZoomPop .2s var(--ease);
}
.xy-zoom__hint{
  position:absolute; left:0; right:0; bottom:calc(20px + env(safe-area-inset-bottom,0px));
  text-align:center; font-size:12px; letter-spacing:.06em; color:rgba(255,255,255,.72);
}
@keyframes xyZoomIn{ from{ opacity:0; } to{ opacity:1; } }
@keyframes xyZoomPop{ from{ opacity:0; transform:scale(.94); } to{ opacity:1; transform:none; } }

/* =========================================================
   v127
   ---------------------------------------------------------
   ① 分享 / 文章 / 灵感随记三个列表页的标题区：从「左标题 + 右统计」
      的两栏改成一整块居中（统计卡也回到中轴线上）；
      v129 之后**导航页也进了这一套**（见 ① 下方的 `.page-head--nav`）——
   ② 统计卡染主题色 —— 数字还是那条渐变，卡片底与描边也用同一套蓝紫；
   ③ 灵感随记新增件：搜索框、随机回顾、置顶角标、标签管理弹层。

   写在文件最后是有意的：上面 max-width:1100 / 900 / 640 那几段里有
   `.page-head--share{ align-items:flex-start }` 之类的老规则，同权重下
   谁写在后面谁赢，放最后就不用给每条都加前缀提特异性。
   ========================================================= */

/* ---------- ① 列表页的标题区：整块居中 ---------- */
.page-head--nav,
.page-head--share{
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:16px; text-align:center;
}
/* 竖向排列之后 flex-basis 决定的是「高度」，420px 会把标题区顶开一大块，改回 auto */
.page-head--nav .page-head__main,
.page-head--share .page-head__main{
  flex:0 1 auto; min-width:0; max-width:min(100%, 64ch);
}
.page-head--nav p,
.page-head--share p{ margin-left:auto; margin-right:auto; max-width:56ch; }
.page-head--nav .page-head__side,
.page-head--share .page-head__side{
  padding-bottom:0; justify-content:center;
}

/* ---------- ①b 灵感随记：改成左右两栏（v131） ----------
   这一页内容本来就短（一张写卡片 + 一列随记），标题竖排居中会把首屏顶出一大片空白；
   标题留在左边、统计与四个工具按钮收到右边一列，视线一行就能扫完，页面也矮了一截。 */
.page-head--idea{
  display:flex; flex-direction:row; flex-wrap:wrap;
  align-items:flex-end; justify-content:space-between;
  gap:18px 40px; text-align:left;
}
.page-head--idea .page-head__main{
  flex:1 1 420px; min-width:0; max-width:56ch;
}
.page-head--idea p{ margin-left:0; margin-right:0; max-width:56ch; }
/* 右栏：统计一行、工具一行，都靠右对齐到同一条竖线上 */
.page-head--idea .page-head__side{
  flex:0 1 auto; padding-bottom:0;
  flex-direction:column; align-items:flex-end; gap:12px;
}
.page-head--idea .head-stats{ justify-content:flex-end; }
.page-head--idea .idea-tools{ margin-top:0; justify-content:flex-end; }
/* 窄屏铺不下就退回竖排：标题在上，统计与工具在下面左对齐（别在手机上硬挤两栏）。
   960 是算出来的临界点：右栏最少 446px（4 张统计卡）+ 间距 40 + 主栏 420 = 906，
   容器再窄就得换行 —— 与其让它半吊子地「标题一行、右侧块跑到第二行还靠右」，
   不如整块竖过来左对齐。 */
@media (max-width:960px){
  .page-head--idea{ align-items:stretch; gap:16px; }
  .page-head--idea .page-head__side{ align-items:stretch; gap:12px; }
  .page-head--idea .head-stats{ justify-content:flex-start; }
  .page-head--idea .idea-tools{ justify-content:flex-start; }
}

/* ---------- ② 统计卡：底色 / 描边走主题色 ---------- */
.head-stats{ justify-content:center; }
.head-stat{
  align-items:center; text-align:center; min-width:104px;
  /* 数字那条渐变（.head-stat b）本来就有，这里给卡片底也铺一层同色系的极淡渐变，
     再补一条 1px 同色描边 —— 原来 border 是 transparent 的，改色不动尺寸。 */
  background:linear-gradient(135deg,
    rgba(124,156,255,.13), rgba(180,124,255,.10) 55%, rgba(79,227,208,.08));
  border-color:rgba(124,156,255,.16);
}
/* 标签从 --text-mute 提一档：卡片底变亮了，原来的灰字会显得更弱 */
.head-stat span{ color:var(--text-dim); }

/* ---------- ③ 灵感随记：搜索 + 随机回顾 ---------- */
.idea-bar{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin:14px 0 0;
}
.idea-search{
  position:relative; display:flex; align-items:center;
  flex:1 1 240px; min-width:0; height:38px;
  padding:0 12px 0 36px; border-radius:99px;
  background:var(--glass); border:1px solid transparent;
  transition:background .3s var(--ease);
}
.idea-search:focus-within{ background:var(--glass-2); }
.idea-search__ico{
  position:absolute; left:13px; width:15px; height:15px; flex-shrink:0;
  fill:none; stroke:var(--text-mute); stroke-width:2; stroke-linecap:round;
  pointer-events:none;
}
.idea-search input{
  flex:1 1 auto; min-width:0; height:100%;
  padding:0; border:0; outline:none; background:none;
  color:var(--text); font:inherit; font-size:13.5px;
  -webkit-appearance:none; appearance:none;
}
.idea-search input::placeholder{ color:var(--text-mute); }
/* Safari / Chrome 自带的那个小 ×，样式各端不一样，用自己的 */
.idea-search input::-webkit-search-cancel-button,
.idea-search input::-webkit-search-decoration{ -webkit-appearance:none; display:none; }
.idea-search__clear{
  display:none; place-items:center; flex-shrink:0;
  width:22px; height:22px; margin-left:6px;
  border:0; border-radius:50%; background:var(--glass-hi);
  color:var(--text-mute); font:inherit; font-size:14px; line-height:1; cursor:pointer;
  transition:color .2s var(--ease);
}
.idea-search__clear:hover{ color:var(--text); }
.idea-search.has-val .idea-search__clear{ display:grid; }
.idea-bar__btn{ height:38px; padding:0 16px; border-radius:99px; font-size:13px; white-space:nowrap; }

/* ---------- ④ 灵感卡片：置顶 / 随机回顾闪烁 ---------- */
.idea-card{ position:relative; }
.idea-card.is-pinned{ background:var(--glass-2); }
/* 📌 已撤（v138）：右上角让给操作按钮，置顶态靠背景变亮 + 「取消置顶」表示。
   下面这条留着兜住旧缓存里可能残留的节点，别让它占位。 */
.idea-card__pin{ display:none; }
/* 📌 已撤（v138：右上角让给操作按钮），这条规则留着给老缓存里的开关留个空壳 */
.idea-card__pin{ display:none; }
/* 置顶按钮的「已置顶」状态：底变亮 + 字变亮，别用色相区分（浅色主题下蓝字对比度不够） */
.idea-mini.is-on{ color:var(--text); background:var(--glass-hi); font-weight:600; }
/* 随机回顾抽到的那张：闪两下，眼能跟上它落在哪儿 */
.idea-card.is-flash{ animation:ideaFlash 1.1s var(--ease) 2; }
@keyframes ideaFlash{
  0%, 100%{ background:var(--glass); }
  45%{ background:rgba(124,156,255,.26); }
}

/* ---------- ⑤ 标签管理 ---------- */
.idea-rail__manage{
  margin-left:auto; padding:6px 11px;
  border:0; border-radius:99px; background:none;
  color:var(--text-mute); font:inherit; font-size:12px; cursor:pointer;
  transition:color .2s var(--ease), background .2s var(--ease);
}
.idea-rail__manage:hover{ color:var(--text); background:var(--glass-hi); }
.idea-tagbox{ width:min(520px,100%); }
.idea-taglist{
  display:flex; flex-direction:column; gap:2px;
  margin:16px 0 0; max-height:min(52vh,420px); overflow-y:auto;
}
.idea-tagrow{
  display:flex; align-items:center; gap:8px;
  padding:9px 10px; border-radius:12px; background:var(--glass);
  transition:background .2s var(--ease);
}
.idea-tagrow:hover{ background:var(--glass-2); }
.idea-tagrow.is-renaming{ background:var(--glass-2); }
.idea-tagrow__n{
  flex:1 1 auto; min-width:0; font-size:13.5px; color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.idea-tagrow__c{
  flex:0 0 auto; font-size:11.5px; color:var(--text-mute);
  font-variant-numeric:tabular-nums;
}
.idea-tagrow__input{
  display:block; width:100%; padding:4px 8px;
  border:0; border-radius:8px; outline:none;
  background:var(--glass-hi); color:var(--text); font:inherit; font-size:13px;
}

@media (max-width:640px){
  /* 手机上搜索框和「随机回顾」各占一整行，都够宽好点 */
  .idea-bar{ gap:8px; }
  .idea-search{ flex:1 1 100%; }
  .idea-bar__btn{ flex:1 1 100%; }
  /* 标签条会换行，「⚙ 标签」跟着往回缩，别被 margin-left:auto 推到孤零零一行 */
  .idea-rail__manage{ margin-left:0; }
  .idea-tagbox{ padding:22px 18px 16px; }
  .idea-taglist{ max-height:min(56vh,360px); }
  /* 手机端四张统计卡排成 2×2，别出现「三张一行、第四张孤零零占一整行」 */
  .page-head--idea .head-stats{ width:100%; }
  .page-head--idea .head-stat{ flex:1 1 calc(50% - 5px); padding:12px 12px; }
}

/* =========================================================
   v132 · 灵感随记：桌面改成「左边写 / 右边看」两栏
   ---------------------------------------------------------
   原来那张写卡铺满整个内容区（1440 下 1365px 宽），敲一行字
   右边空掉八成，看着像个坏掉的输入框。现在：
     · 左边一栏 400~460px 的写作面板，高度正好一屏、滚动时跟住不动；
     · 右边（.idea-side）是搜索栏 + 标签条 + 卡片瀑布流，各占其位。
   1000px 以下铺不下两栏，退回单列（手机上本来就该是单列）。
   v133：写作卡从「只占 230px 高的一小块」改成占满一屏 —— textarea
   用 flex 撑满卡片，写长文不用在小框里拖滚动条。
   ⚠️ 用 flex 不用 grid：写作卡跨三行时会把多出来的高度摊进三行行高，
   右栏会出现「搜索…(空一大截)…卡片」的怪缝隙。
   ========================================================= */
@media (min-width:1000px){
  .idea-box{ display:flex; align-items:flex-start; gap:30px; }
  .idea-composer{
    /* v144：460 → 410。长灵感在窄列里一行挤不下几个字，
       写作面板让 50px 出来，右栏每列能宽 25px。 */
    flex:0 0 410px;
    position:sticky; top:calc(var(--header-h, 96px) + 16px);
    /* v137：高度交给 JS 量出来的 --idea-h。只按 100vh 算会忽略标题区占掉的那一段，
       面板底部会越过视口，「记下来」按钮就落到屏幕外看不见了。
       这里的 calc 只是 JS 没跑起来时的兜底。 */
    height:var(--idea-h, calc(100vh - var(--header-h, 96px) - 120px));
    max-height:calc(100vh - var(--header-h, 96px) - 32px);
    display:flex; flex-direction:column;
    overflow:hidden;            /* 内容再多也不许顶出面板底边 */
  }
  .idea-side{ flex:1 1 auto; min-width:0; }
  .idea-bar{ margin:0; }
  /* v154：原来 margin:0 —— 搜索框和标签条严丝合缝贴在一起（小宝截图说「挨得太近」）。
     上 16px 拉开呼吸（跟手机端一个节奏），下 14px 让标签条和第一张卡片也分开。 */
  .idea-rail{ margin:16px 0 14px; }
  /* v138：250 → 300 → v144 再到 380。250 时右栏能塞三列，每列才 270 出头；
     300 之后两列，但 1000～1330 之间右栏只有 630~760px，劈成两列每列
     300 出头，长文一行没几个字，而且只有一条灵感时整个右栏就孤零零
     一条窄卡、右边大片留白（小宝截图吐槽的就是这个）。
     380 让这段宽度落成单列全宽 —— 灵感本来就是长句居多；
     1360 以上仍能排两列，每列 410~455。 */
  .idea-grid{ columns:380px; }
  /* textarea 吃掉面板剩余高度；高度已由 flex 管，就不再让手动拖了。
     min-height:0 是关键：否则 flex 子项不肯小于内容高度，会把底栏挤出去。 */
  .idea-composer textarea{ flex:1 1 auto; min-height:0; resize:none; }
  /* 底栏横排：提示在左、按钮在右，按钮文字居中 */
  .idea-composer__foot{
    flex:0 0 auto; flex-direction:row; align-items:center;
    gap:14px; padding-top:12px;
  }
  .idea-composer__foot .btn{
    flex:0 0 auto; min-width:112px; white-space:nowrap; text-align:center;
  }
  .idea-tip{ flex:1 1 auto; min-width:0; line-height:1.5; font-size:11.5px; }
}
/* 1000～1320 之间左栏再收一档（v144：400 → 355，配合 columns:380，
   这段宽度右栏能落成单列全宽，长灵感不再挤在 300px 的窄列里） */
@media (min-width:1000px) and (max-width:1320px){
  .idea-box{ gap:24px; }
  .idea-composer{ flex-basis:355px; }
}

/* =========================================================
   v137 · 灵感随记：空状态重做
   ---------------------------------------------------------
   原来空状态（.empty）会落进 .idea-grid 的 columns 瀑布流里，
   被拆成两半 —— 💡 和标题挤在左列，那句说明文字被甩到右列，
   中间还断一截，看着像布局坏了。
   没有卡片可排的时候就不该用多列：取消 columns，改成一整块
   居中的虚线卡（圆形图标底 + 标题 + 一句说明）。
   其它页面的 .empty（分享、导航）照旧不动，只认 .idea-grid 里的。
   ========================================================= */
.idea-grid:has(> .empty){ columns:auto; }

.idea-grid > .empty{
  gap:16px;
  padding:clamp(44px, 9vh, 84px) 30px;
  min-height:clamp(260px, 42vh, 380px);
  align-content:center;
  border:1px dashed color-mix(in srgb, var(--text-mute) 32%, transparent);
  background:
    radial-gradient(120% 110% at 50% 0%, color-mix(in srgb, var(--a1) 9%, transparent), transparent 68%),
    var(--glass);
}
/* 圆形图标底：只给一点品牌渐变，别抢文字 */
.idea-grid > .empty .empty__emoji{
  display:grid; place-items:center;
  width:62px; height:62px; border-radius:50%;
  font-size:26px; line-height:1;
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--a1) 30%, transparent), transparent 72%),
    var(--glass-2);
  border:1px solid color-mix(in srgb, var(--a1) 24%, transparent);
  box-shadow:0 10px 28px rgba(0,0,0,.22);
}
.idea-grid > .empty h3{
  font-size:16.5px; font-weight:600; letter-spacing:.4px; color:var(--text);
}
.idea-grid > .empty p{
  max-width:26em; font-size:13px; line-height:1.8; color:var(--text-mute);
}

/* v138 曾把 1000～1200 的列宽收到 260px 好塞两列；v144 方向反转 ——
   长灵感要的是宽卡，这档跟全局一样 380px（右栏 540~760px 落成单列全宽）。
   原来配的「.idea-card__ops 按钮缩小一号」也跟着删：卡片不再只有 266 宽。 */

/* =========================================================
   v139 · 十个新功能的样式
   ---------------------------------------------------------
   ① 顶栏「稍后读」角标  ② 失效站点卡片  ③ 那年今日
   ④ 稍后读页          ⑤ 足迹页        ⑥ 标签落地页
   ⑦ 随机漫游「今日三站」面板
   全写在文件最后：上面那些 max-width 断点里有同权重的老规则，
   靠文件顺序决胜（跟 v127 ~ v138 一个套路）。
   ========================================================= */
:root{ --danger:#ff8f8f; }
html[data-theme="light"]{ --danger:#bf2e28; }

/* ---------- ① 顶栏「稍后读」---------- */
.header__actions .icon-btn{ position:relative; }
.icon-btn__n{
  position:absolute; top:-4px; right:-6px;
  min-width:15px; height:15px; padding:0 4px;
  display:grid; place-items:center;
  font-size:9.5px; font-style:normal; font-weight:700; line-height:1;
  color:#fff; background:linear-gradient(135deg, var(--a2), var(--a1));
  border-radius:99px; box-shadow:0 2px 8px rgba(0,0,0,.4);
}
.icon-btn__n[hidden]{ display:none; }
.header__actions .icon-btn.has-new svg{ color:var(--ink-a1); }

/* ---------- ② 失效站点：整卡淡下去、名字划一道 ---------- */
.link-card.is-dead{ opacity:.4; filter:saturate(.35); }
.link-card.is-dead:hover{ opacity:.62; }
.link-card.is-dead .link-card__nmtxt{ text-decoration:line-through; text-decoration-thickness:1px; }
/* 菜单里「已存稍后读 / 已标记失效」两项的选中态（不用 .is-on，那条给星星填了实心） */
.card-menu__i.is-later{ color:var(--ink-a1); background:color-mix(in srgb, var(--a1) 13%, transparent); }
.card-menu__i.is-dead{ color:var(--danger); background:color-mix(in srgb, var(--danger) 13%, transparent); }

/* ---------- ③ 那年今日 ---------- */
.otd{
  margin:24px 0 6px; padding:16px 18px 14px; border-radius:var(--r);
  background:
    radial-gradient(120% 130% at 0% 0%, color-mix(in srgb, var(--a2) 10%, transparent), transparent 70%),
    var(--glass);
}
.otd__head{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.otd__k{
  font-size:12.5px; font-weight:700; letter-spacing:.04em;
  background:var(--grad); -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:var(--ink-a1);
}
.otd__d{ font-size:11.5px; color:var(--text-mute); }
/* 列数由 JS 给出的 --otd-n 决定：1 条就铺满一整行，3 条就三等分。
   原来是横向滚动的轨道，一条时右边空出一大片、看着像忘了填内容。 */
.otd__rail{
  display:grid; gap:10px;
  grid-template-columns:repeat(var(--otd-n, 1), minmax(0, 1fr));
}
.otd-card{
  display:flex; flex-direction:column; gap:5px;
  padding:11px 13px; border-radius:var(--r-sm);
  background:var(--glass-2); text-decoration:none;
  transition:background .25s var(--ease), transform .25s var(--ease);
}
.otd-card:hover{ background:var(--glass-hi); transform:translateY(-1px); }
.otd-card__y{ font-size:10.5px; font-weight:700; letter-spacing:.08em; color:var(--ink-a1); font-variant-numeric:tabular-nums; }
.otd-card__t{
  font-size:13.5px; font-weight:600; color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.otd-card__d{
  font-style:normal; font-size:12px; line-height:1.55; color:var(--text-mute);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* ---------- ④ 稍后读（#/later）---------- */
.later-bar{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap; margin:28px 0 14px;
}
.later-bar .tag-bar__chips{ display:flex; gap:8px; flex-wrap:wrap; }
.later-list{ display:flex; flex-direction:column; gap:10px; }
.later-item{
  display:flex; align-items:center; gap:14px;
  padding:13px 16px; border-radius:var(--r-sm);
  background:var(--glass);
  transition:background .25s var(--ease);
}
.later-item:hover{ background:var(--glass-2); }
.later-item.is-read{ opacity:.66; }
.later-item__main{
  flex:1 1 auto; min-width:0;
  display:flex; flex-direction:column; gap:3px; text-decoration:none;
}
.later-item__name{
  font-size:14.5px; font-weight:500; color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.later-item.is-read .later-item__name{ color:var(--text-dim); }
.later-item__host{
  font-size:11.5px; color:var(--text-mute);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.later-item__time{ flex:0 0 auto; font-size:11.5px; color:var(--text-mute); font-variant-numeric:tabular-nums; }
.later-item__ops{ flex:0 0 auto; display:inline-flex; align-items:center; gap:4px; }
.later-empty{ width:100%; }

/* ---------- ⑤ 足迹（#/insight）---------- */
.insight-sec{ margin:38px 0 0; }
.insight-sec:first-of-type{ margin-top:30px; }
.year-grid{
  display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px;
  margin:0 0 20px;
}
.year-cell{
  padding:16px 18px; border-radius:var(--r-sm);
  background:linear-gradient(160deg, color-mix(in srgb, var(--a1) 10%, transparent), var(--glass));
}
.year-cell b{
  display:block; font-size:26px; font-weight:700; letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
  background:var(--grad); -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:var(--ink-a1);
}
.year-cell span{ display:block; margin-top:4px; font-size:11.5px; color:var(--text-mute); }

/* 12 个月的灵感条形：现在这个月高亮 */
.ybars{ display:flex; align-items:flex-end; gap:6px; height:104px; }
.ybar{
  flex:1 1 0; min-width:0; height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:4px;
}
.ybar i{
  display:block; width:100%; max-width:26px; border-radius:5px 5px 2px 2px;
  background:color-mix(in srgb, var(--a1) 55%, transparent);
  transition:background .3s var(--ease);
}
.ybar.is-now i{ background:var(--grad); box-shadow:0 0 14px color-mix(in srgb, var(--a2) 45%, transparent); }
.ybar em{ font-style:normal; font-size:9.5px; color:var(--text-mute); font-variant-numeric:tabular-nums; }

/* 灵感热力图：7 行 × N 列，按周成列 */
.heat__grid{
  display:grid; grid-auto-flow:column; grid-template-rows:repeat(7, 12px);
  gap:3px; overflow-x:auto; padding-bottom:4px; scrollbar-width:none;
}
.heat__grid::-webkit-scrollbar{ display:none; }
.heat__c{
  display:block; width:12px; height:12px; border-radius:3px;
  background:var(--glass-2);
}
.heat__c--1{ background:color-mix(in srgb, var(--a1) 30%, transparent); }
.heat__c--2{ background:color-mix(in srgb, var(--a1) 52%, transparent); }
.heat__c--3{ background:color-mix(in srgb, var(--a1) 76%, transparent); }
.heat__c--4{ background:var(--a1); }
.heat__foot{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin-top:10px; font-size:11.5px; color:var(--text-mute);
}
.heat__legend{ display:inline-flex; align-items:center; gap:3px; }
.heat__legend .heat__c{ width:10px; height:10px; }

/* 常去 / 冷落：两列紧凑行 */
.top-list{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px 18px; }
.top-row{
  display:flex; align-items:center; gap:10px;
  padding:9px 12px; border-radius:var(--r-sm);
  background:var(--glass); text-decoration:none;
  transition:background .22s var(--ease);
}
.top-row:hover{ background:var(--glass-2); }
.top-row__i{
  flex:0 0 22px; font-size:11.5px; font-weight:700; color:var(--text-mute);
  font-variant-numeric:tabular-nums;
}
.top-row__n{
  flex:1 1 auto; min-width:0; font-size:13.5px; color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.top-row__c{ flex:0 0 auto; font-size:11.5px; color:var(--text-mute); }
.top-row--cold .top-row__i{ color:var(--ink-a3); }

.dead-list{ display:flex; flex-wrap:wrap; gap:8px; }
.dead-row{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 8px 6px 13px; border-radius:99px;
  background:var(--glass); font-size:13px;
}
.dead-row__n{ color:var(--text-dim); }

/* ---------- ⑥ 标签落地页（#/tag/xx）---------- */
.tag-bar__link{
  margin-left:10px; font-size:11.5px; color:var(--ink-a1);
  text-decoration:none; white-space:nowrap;
}
.tag-bar__link:hover{ text-decoration:underline; }
/* 标签页里的灵感是只读的：不带任何操作按钮，一列一列排开 */
.idea-grid--lite{ columns:auto; display:grid; gap:14px; }
.idea-card--lite{ display:block; margin:0; padding:18px 20px 12px; }
.idea-card--lite .idea-card__foot{ margin-top:10px; }

/* ---------- ⑦ 随机漫游「今日三站」---------- */
.rsheet{ position:fixed; inset:0; z-index:200; display:grid; place-items:center; padding:20px; }
.rsheet__scrim{ position:absolute; inset:0; background:rgba(4,6,12,.6); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.rsheet__panel{
  position:relative; width:min(520px, 100%);
  padding:20px; border-radius:var(--r-lg);
  background:color-mix(in srgb, var(--bg-soft) 82%, transparent);
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  border:1px solid var(--glass-hi);
  box-shadow:0 30px 80px rgba(0,0,0,.5);
  animation:rsheetIn .32s var(--ease) both;
}
@keyframes rsheetIn{ from{ opacity:0; transform:translateY(14px) scale(.97); } to{ opacity:1; transform:none; } }
.rsheet__head{ display:flex; align-items:baseline; gap:10px; margin-bottom:14px; }
.rsheet__head b{ font-size:15px; color:var(--text); }
.rsheet__head span{ flex:1 1 auto; font-size:11.5px; color:var(--text-mute); }
.rsheet__x{
  flex:0 0 auto; width:28px; height:28px; border-radius:9px;
  display:grid; place-items:center; color:var(--text-mute); background:var(--glass);
}
.rsheet__x:hover{ color:var(--text); background:var(--glass-hi); }
.rsheet__x svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; }
.rsheet__list{ display:flex; flex-direction:column; gap:9px; }
.rsheet__card{
  display:flex; flex-direction:column; gap:3px;
  padding:13px 15px; border-radius:var(--r-sm);
  background:var(--glass); text-decoration:none;
  transition:background .22s var(--ease), transform .22s var(--ease);
}
.rsheet__card:hover{ background:var(--glass-hi); transform:translateY(-1px); }
.rsheet__cat{ font-size:10.5px; font-weight:700; letter-spacing:.06em; color:var(--ink-a1); }
.rsheet__n{ font-size:14.5px; font-weight:600; color:var(--text); }
.rsheet__d{
  font-size:12px; color:var(--text-mute);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.rsheet__foot{ display:flex; gap:10px; margin-top:16px; }
.rsheet__foot .btn{ flex:1 1 0; text-align:center; }

/* ---------- 窄屏收一收 ---------- */
@media (max-width:900px){
  .year-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .top-list{ grid-template-columns:minmax(0,1fr); }
  .idea-grid--lite{ grid-template-columns:minmax(0,1fr); }
}
@media (min-width:900px){
  .idea-grid--lite{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:640px){
  .otd{ padding:14px 14px 12px; }
  .otd__rail{ grid-template-columns:minmax(0, 1fr); }
  .later-item{ gap:10px; padding:12px 13px; }
  .later-item__time{ display:none; }
  .year-cell{ padding:14px 15px; }
  .year-cell b{ font-size:22px; }
  .rsheet{ padding:14px; }
}

/* ---------- v139 · 明亮主题下把新的强调色压深一档 ----------
   深色主题用 a1/a2 那套粉紫没问题，落到浅色底上对比度只有 2:1 左右，
   小字（年份、标签、分类名）基本看不清。这里统一换成同一色系压深后的值。
   数字格 / 年份沿用渐变文字，所以只换渐变的两端。 */
html[data-theme="light"]{
  /* v140：三档都重算过 —— 落在最亮的卡片底 #CDD5EC 上也过 4.5:1
     (#4a63c8 那版只有 3.66，v139 只覆盖了年份/标签几个点，这次全站统一) */
  --ink-a1:#3b51b8;   /* 页底 5.8 / 卡片 5.3 / 亮玻璃 4.7 */
  --ink-a2:#6f3fbd;   /* 5.7 / 5.2 / 4.6 */
  --ink-a3:#086155;   /* 6.2 / 5.7 / 5.0 */
  --ink-grad: linear-gradient(120deg, #3b51b8, #6f3fbd 52%, #086155);
}
/* 渐变文字（background-clip:text）在浅色底上整段都会偏淡，
   这里干脆退回实色 —— 大数字和小标签都按 4.5:1 以上给它一个深蓝。 */
html[data-theme="light"] .otd__k{
  background:none; -webkit-text-fill-color:currentColor; color:var(--ink-a1);
}
html[data-theme="light"] .otd-card__y{ color:var(--ink-a1); }
html[data-theme="light"] .year-cell b{
  background:none; -webkit-text-fill-color:currentColor; color:var(--ink-a1);
}
/* v140：导航页/分享页顶部那几个大数字也是渐变文字，浅色底上只剩 ~2:1，同上一并退回实色 */
html[data-theme="light"] .head-stat b{
  background:none; -webkit-text-fill-color:currentColor; color:var(--ink-a1);
}
html[data-theme="light"] .rsheet__cat,
html[data-theme="light"] .tag-bar__link{ color:var(--ink-a1); }
html[data-theme="light"] .ybar.is-now i{ background:var(--ink-grad); box-shadow:none; }
html[data-theme="light"] .heat__c--4{ background:#5a72d8; }
html[data-theme="light"] .heat__c--3{ background:rgba(90,114,216,.72); }
html[data-theme="light"] .heat__c--2{ background:rgba(90,114,216,.46); }
html[data-theme="light"] .heat__c--1{ background:rgba(90,114,216,.26); }
html[data-theme="light"] .card-menu__i.is-later{ color:var(--ink-a1); }

/* =========================================================
   v142 · 后台更好用：分组侧栏 / 内联校验 / 快捷键提示
   ========================================================= */

/* 侧栏分三组：内容 / 外观 / 系统。组之间用一条淡淡的线隔开，
   比十项平铺下来好找 —— 分组按「你要改什么」分，不是按代码顺序。 */
.admin-nav__group{ display:flex; flex-direction:column; gap:3px; }
.admin-nav__group + .admin-nav__group{
  margin-top:9px; padding-top:9px;
  border-top:1px solid color-mix(in srgb, var(--text-mute) 16%, transparent);
}
.admin-nav__gtitle{
  padding:0 12px 5px; font-size:10.5px; font-weight:600;
  letter-spacing:.18em; text-transform:uppercase; color:var(--text-mute);
}
/* 选中项那枚计数徽标：原来是「白字压在 22% 暗底上再叠渐变」，11px 白字看不清，
   改成浅底深字（和 .admin-tab.is-active 的深墨文字一个思路） */
.admin-tab.is-active .admin-tab__n{ color:#080a12; background:rgba(255,255,255,.6); border-color:transparent; }

/* 窄屏侧栏变成横向标签条：分组壳子退成 display:contents，
   让十颗按钮直接参与那一行（否则每组自己会竖起来） */
@media (max-width:960px){
  .admin-nav__group{ display:contents; }
  .admin-nav__gtitle{ display:none; }
}

/* 内联校验：红框标出来 + 提示贴在字段下面。
   表单长的时候，弹一句 toast 就没了等于没提示。 */
.admin-field.is-invalid input,
.admin-field.is-invalid textarea,
.admin-field.is-invalid select{
  box-shadow:0 0 0 2px color-mix(in srgb, var(--danger) 60%, transparent);
}
.admin-field__err{
  display:block; margin-top:6px; font-size:12px; line-height:1.5; color:var(--danger);
}

/* 「⌘S 保存 · Esc 取消」的小提示，贴在这一排按钮的右边 */
.edit-keyhint{
  margin-left:auto; font-size:11.5px; color:var(--text-mute);
  white-space:nowrap; letter-spacing:.01em;
}
.edit-keyhint kbd{
  font-family:inherit; font-size:10.5px; padding:1px 5px; border-radius:5px;
  background:var(--glass-hi); color:var(--text-dim);
}
@media (max-width:640px){
  .edit-keyhint{ display:none; }   /* 手机上没实体键盘，别占地方 */
}

/* 手册头的版本标：证明「手册跟着每版一起改」，不是嘴上说说。
   margin-left:auto 把它和右边那颗复制按钮一起推到右侧 ——
   .guide-head 是 flex + space-between，没这一行会跟标题挤在一起。 */
.guide-ver{
  margin-left:auto; flex:0 0 auto; align-self:center;
  font-size:11.5px; color:var(--text-mute); white-space:nowrap;
}
.guide-ver b{ color:var(--text-dim); font-weight:600; font-variant-numeric:tabular-nums; }
@media (max-width:640px){
  .guide-ver{ margin-left:0; align-self:flex-start; }
}

/* 标题区的常驻提醒（v142）：面板名会换，这句不换 */
.admin-head__note{
  margin-top:6px !important; font-size:12.5px !important;
  color:var(--text-mute) !important; line-height:1.7;
}
.admin-head__note b{ color:var(--text-dim); font-weight:600; }
.admin-head__note code{ font-size:11.5px; }
/* 「草稿里还有没发布的改动」—— 每个面板顶上一条，带一颗直接导出的按钮 */
.admin-head__draft{
  margin-top:10px; padding:9px 12px; border-radius:12px;
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  background:color-mix(in srgb, #f0b429 13%, transparent);
  border:1px solid color-mix(in srgb, #f0b429 34%, transparent);
  font-size:12.4px; line-height:1.6;
}
.admin-head__draft b{ font-weight:600; }
.admin-head__draft .btn{ margin-left:auto; flex:none; font-size:12px; padding:5px 11px; }

/* 草稿比线上旧：比上面那条更重的警示（红一点），因为导出会真的盖掉内容 */
.admin-head__stale{
  margin-top:10px; padding:9px 12px; border-radius:12px;
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  background:color-mix(in srgb, #ff5c73 13%, transparent);
  border:1px solid color-mix(in srgb, #ff5c73 36%, transparent);
  font-size:12.4px; line-height:1.6;
}
.admin-head__stale b{ flex:none; font-weight:600; color:color-mix(in srgb, #ff5c73 72%, var(--text)); }
.admin-head__stale span{ flex:1 1 220px; min-width:0; color:var(--text-dim); }
.admin-head__stale .btn{ margin-left:auto; flex:none; font-size:12px; padding:5px 11px; }

/* 手机上十颗面板按钮是一条横向滚动的胶囊条，最右边那颗会被切掉 ——
   用一层渐隐告诉人「还能往右滑」。（只在真的放不下时才需要，所以放媒体查询里） */
@media (max-width:960px){
  .admin-nav{
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent);
    mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent);
  }
}

/* =========================================================
   v143 · 去掉点击 / 长按那一下的「浅色背景一闪」
   ========================================================= */

/* 成因：浏览器给所有可点元素（button / a / [role]）默认糊一层
   -webkit-tap-highlight-color = rgba(0,0,0,.18) 的手指点按高亮。
   浅色主题下那块浅灰肉眼就是「点一下闪一下」，长按也跟着亮，松手才退。
   本站的点击反馈自己做（.is-active 渐变、:active 的 translateY/scale），
   这层默认高亮纯属噪音，全部关掉。
   写 * 而不是 body：它虽是继承属性，但部分 WebKit 版本只认元素自身的声明。 */
*{
  -webkit-tap-highlight-color: transparent;
}

/* 长按按钮 / 胶囊 / 标签时也别选中它们的文字 ——
   选中会糊一块浅色选区（:root 的 ::selection 是强调色 35%），同样是「闪一下」。
   正文、输入框、代码块不列进来，该选还得能选。 */
button,
[role="button"],
[role="tab"],
.nav__item,
.pill,
.tag,
.hcat,
.admin-tab,
.admin-lockbtn,
.card-menu__i,
.dock{
  -webkit-user-select: none;
  user-select: none;
}

/* =========================================================
   v148 · 本地音乐（#/music）
   ---------------------------------------------------------
   一块播放器 + 一张曲目表。风格照着「灵感随记 / 稍后读」那几页来：
   玻璃底、圆角、渐变只用在「正在播放」和主按钮上，不当装饰铺满。
   渐变底上一律用深墨字（#080a12）——白字压最浅那段只有 1.59:1。
   ========================================================= */

.page--music{ padding-bottom:26px; }

/* 拖文件进来时整页淡淡地亮一下，告诉人「松手就行」 */
.page--music.is-drop::after{
  content:'松手就加进曲库';
  position:fixed; inset:0; z-index:80;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; font-weight:600; color:var(--text);
  background:rgba(8,10,18,.55);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  border:2px dashed var(--a1);
  pointer-events:none;
}

/* ---------- 播放器 ---------- */
.mu-player{
  display:flex; align-items:center; gap:20px;
  padding:18px;
  border-radius:var(--r-lg);
  background:var(--glass);
  border:1px solid transparent;
}
.mu-player.is-empty{ opacity:.92; }

.mu-cover{
  position:relative; flex:0 0 auto;
  width:108px; height:108px; border-radius:22px;
  display:grid; place-items:center; overflow:hidden;
}
.mu-cover::before{
  content:''; position:absolute; inset:0;
  background:var(--grad);
  /* saturate 压到 .72：不压的话 hue-rotate 一转就变成很艳的洋红，
     跟这一页整体那股安静的调子打架 */
  filter:hue-rotate(var(--mu-hue,0deg)) saturate(.72);
}
/* 内侧一道极淡的高光边，方块看着才像块玻璃、不是一块色纸 */
.mu-cover::after{
  content:''; position:absolute; inset:0; border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
  pointer-events:none;
}
/* 正在播的时候让封面慢慢「呼吸」，一眼能看出在响 */
.mu-player.is-playing .mu-cover::before{ animation:muBreath 3.4s var(--ease) infinite alternate; }
@keyframes muBreath{ from{ transform:scale(1); } to{ transform:scale(1.08); } }
.mu-cover span{
  position:relative; z-index:2;
  font-size:38px; font-weight:800; letter-spacing:-.02em;
  color:#080a12;
}
/* 有内嵌封面就把图铺上去，底下那层渐变和首字让位 */
.mu-cover img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1;
}
.mu-cover.has-img::before{ opacity:0; }
.mu-cover.has-img span{ display:none; }

.mu-main{ flex:1 1 auto; min-width:0; }
.mu-title{
  font-size:17px; font-weight:700; letter-spacing:-.01em;
  color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mu-sub{ margin-top:3px; font-size:12.5px; color:var(--text-mute); }

/* 进度条 */
.mu-bar{ display:flex; align-items:center; gap:10px; margin-top:14px; }
.mu-time{
  flex:0 0 auto; font-size:11.5px; color:var(--text-mute);
  font-variant-numeric:tabular-nums;
}
.mu-track{
  position:relative; flex:1 1 auto; height:22px;   /* 高一点才好按，真正的轨道用 ::before */
  cursor:pointer; touch-action:none;
}
.mu-track::before{
  content:''; position:absolute; left:0; right:0; top:50%; height:4px; margin-top:-2px;
  border-radius:99px; background:var(--glass-hi);
}
.mu-track i{
  position:absolute; left:0; top:50%; height:4px; margin-top:-2px; width:0;
  border-radius:99px; background:var(--grad);
}
.mu-track b{
  position:absolute; left:0; top:50%; width:12px; height:12px; margin:-6px 0 0 -6px;
  border-radius:50%; background:var(--text);
  opacity:0; transition:opacity .2s var(--ease);
}
.mu-player:hover .mu-track b,
.mu-player.is-playing .mu-track b{ opacity:1; }
html[data-theme="light"] .mu-track b{ background:var(--ink-a1); }

/* 控制行 */
.mu-ctrl{ display:flex; align-items:center; gap:10px; margin-top:6px; flex-wrap:wrap; }
.mu-btn{
  display:grid; place-items:center; width:38px; height:38px; border-radius:50%;
  background:var(--glass); border:0; cursor:pointer;
  transition:transform .25s var(--ease), background .25s var(--ease);
}
.mu-btn svg{ width:17px; height:17px; fill:var(--text-dim); }
.mu-btn:hover{ transform:translateY(-2px); background:var(--glass-2); }

.mu-play{
  display:grid; place-items:center; width:54px; height:54px; border-radius:50%;
  background:var(--grad); border:0; cursor:pointer;
  transition:transform .25s var(--ease);
}
.mu-play svg{ width:22px; height:22px; fill:#080a12; }
.mu-play:hover{ transform:translateY(-2px) scale(1.03); }

.mu-mode{
  height:32px; padding:0 12px; border-radius:99px; border:0; cursor:pointer;
  font-size:12.5px; color:var(--text-dim); background:var(--glass);
  transition:background .25s var(--ease), color .25s var(--ease);
}
.mu-mode:hover{ background:var(--glass-2); color:var(--text); }
/* 「词」开关打开时点亮，跟进度条一个色系 */
.mu-mode.is-on{
  background:var(--grad); color:#080a12; font-weight:600;
}

.mu-vol{ display:flex; align-items:center; gap:8px; margin-left:auto; }
.mu-vol svg{ width:16px; height:16px; fill:var(--text-mute); }
/* 音量条：跟主进度分开写，免得共用一套选择器互相牵连 */
.mu-vol input[type="range"]{
  -webkit-appearance:none; appearance:none;
  width:112px; height:4px; border-radius:99px; background:var(--glass-hi);
  outline:none; cursor:pointer;
}
.mu-vol input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:12px; height:12px; border-radius:50%; background:var(--text-dim);
}
.mu-vol input[type="range"]::-moz-range-thumb{
  width:12px; height:12px; border:0; border-radius:50%; background:var(--text-dim);
}

/* ---------- 工具条 ---------- */
.mu-tools{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin:18px 0 12px;
}
.mu-tools .btn{ height:42px; padding:0 18px; border-radius:12px; font-size:13.5px; }
.mu-hint{ font-size:12px; color:var(--text-mute); }

/* ---------- 曲目表 ---------- */
/* 一行排多列：宽屏 auto-fill 自己算列数，手机退成单列（见最下面的 @media） */
.mu-list{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:2px 8px;
}
.mu-item{
  position:relative;
  display:flex; align-items:center; gap:10px;
  padding:7px 10px 7px 10px; border-radius:14px;
  cursor:pointer; min-width:0;
  transition:background .2s var(--ease);
}
.mu-item:hover{ background:var(--glass); }
.mu-item.is-on{ background:var(--glass-2); }
/* 正在播放那行：左边一道渐变竖条 */
.mu-item.is-on::before{
  content:''; position:absolute; left:0; top:9px; bottom:9px; width:3px;
  border-radius:2px; background:var(--grad);
}
.mu-item__idx{
  flex:0 0 auto; width:18px; text-align:center;
  font-size:11.5px; color:var(--text-mute); font-variant-numeric:tabular-nums;
}
.mu-item__idx svg{ width:10px; height:10px; fill:var(--ink-a1); }
/* 封面缩略图：没标签的歌用首字 + 色相，跟播放器那块封面同一套算法 */
.mu-item__thumb{
  position:relative; flex:0 0 auto;
  width:36px; height:36px; border-radius:9px; overflow:hidden;
  display:grid; place-items:center;
  background:var(--grad);
  filter:hue-rotate(var(--mu-hue,0deg)) saturate(.72);
  font-size:14px; font-weight:700; color:#080a12;
}
.mu-item__thumb img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  /* 图片本身不要再被上面的 hue-rotate 染色 */
  filter:none;
}
.mu-item__thumb.has-img{ background:var(--glass-hi); filter:none; }
.mu-item__body{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:1px; }
.mu-item__body b{
  font-size:13.5px; font-weight:600; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mu-item.is-on .mu-item__body b{ color:var(--ink-a1); }
.mu-item__body span{
  font-size:11.5px; color:var(--text-mute);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.mu-item__del{
  flex:0 0 auto; display:grid; place-items:center;
  width:26px; height:26px; border-radius:8px; border:0; cursor:pointer;
  font-size:12px; color:var(--text-mute); background:transparent;
  opacity:0; transition:opacity .2s var(--ease), background .2s var(--ease);
}
.mu-item:hover .mu-item__del{ opacity:1; }
.mu-item__del:hover{ background:var(--glass-hi); color:var(--text); }
/* 触屏没有 hover：移除键常驻但淡一点，免得想删找不到 */
@media (hover:none){
  .mu-item__del{ opacity:.55; }
}

/* ---------- 歌词 ---------- */
.mu-lyrics{
  margin-top:12px; padding:14px 18px;
  border-radius:var(--r-lg);
  background:var(--glass);
  max-height:250px; overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  font-size:13.5px; line-height:1.95; color:var(--text-dim);
  scroll-behavior:smooth;
}
.mu-lyrics[hidden]{ display:none; }
.mu-lyr-line{
  padding:1px 0; border-radius:6px;
  transition:color .2s var(--ease), opacity .2s var(--ease);
  opacity:.72;
}
/* 当前这一句：亮起来 + 往右挪一点，眼睛好找 */
.mu-lyr-line.is-cur{
  color:var(--ink-a1); opacity:1; font-weight:600;
  transform:translateX(3px);
}
.mu-lyr-empty{ font-size:12.5px; color:var(--text-mute); }

/* ---------- 空态 ---------- */
.mu-empty{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  padding:54px 20px 60px; text-align:center;
}
.mu-empty__ico{ font-size:38px; line-height:1; }
.mu-empty h3{ font-size:16px; font-weight:600; color:var(--text); }
.mu-empty p{ max-width:42ch; font-size:13.5px; line-height:1.8; color:var(--text-dim); }

/* ---------- 手机 ---------- */
/* 窄屏不把封面单独占一行 —— 那样右边空一大块，还把「选歌」挤到屏幕底下
   被底部 tab 栏压住。改成「封面 + 歌名并排，进度与按钮跟在下面」。 */
@media (max-width:640px){
  .mu-player{ gap:12px; padding:14px; align-items:flex-start; }
  .mu-cover{ width:72px; height:72px; border-radius:16px; margin-top:2px; }
  .mu-cover span{ font-size:26px; }
  .mu-main{ flex:1 1 0; min-width:0; }
  .mu-title{ font-size:15.5px; }
  .mu-sub{ font-size:12px; }
  .mu-bar{ margin-top:10px; gap:8px; }
  .mu-ctrl{ gap:8px; }
  .mu-play{ width:48px; height:48px; }
  .mu-play svg{ width:20px; height:20px; }
  .mu-btn{ width:34px; height:34px; }
  .mu-mode{ padding:0 10px; font-size:12px; height:30px; }
  .mu-vol{ margin-left:0; flex:1 1 100%; }
  .mu-vol input[type="range"]{ width:auto; flex:1 1 auto; }
  /* 手机一行放不下多列，退回单列 */
  .mu-list{ grid-template-columns:1fr; }
  .mu-lyrics{ max-height:200px; padding:12px 14px; font-size:13px; }
  .mu-tools{ margin-top:14px; }
  .mu-tools .btn{ flex:1 1 auto; justify-content:center; }
  .mu-hint{ flex:1 1 100%; }
  .page--music.is-drop::after{ font-size:14px; }
}

/* ---------- 跨页迷你播放条（v154） ----------
   离开 #/music 之后音频继续放，这条负责「暂停 / 回去」。
   玻璃底同 .dock：只留一层下沉投影，别把它做成一张浮起来的卡片。 */
.mu-mini{
  position:fixed; z-index:80;
  right:calc(22px + env(safe-area-inset-right, 0px));
  bottom:calc(22px + env(safe-area-inset-bottom, 0px));
  display:flex; align-items:center; gap:8px;
  width:min(356px, calc(100vw - 32px));
  padding:7px 8px 7px 7px; border-radius:99px;
  background:color-mix(in srgb, var(--bg-soft) 90%, transparent);
  backdrop-filter:blur(22px) saturate(160%);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  box-shadow:0 20px 44px -24px rgba(0,0,0,.6);
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .28s var(--ease), transform .28s var(--ease), visibility .28s var(--ease);
}
.mu-mini.is-on{ opacity:1; visibility:visible; transform:none; }
/* 搜索 / 快捷键面板打开时和 dock 一起让位，别压住面板 */
body.no-scroll .mu-mini{ opacity:0; visibility:hidden; }
.mu-mini__hit{
  display:flex; align-items:center; gap:9px; flex:1 1 auto; min-width:0;
  padding:0; border:0; background:none; color:inherit; text-align:left; cursor:pointer;
}
.mu-mini__cover{
  position:relative; flex:0 0 auto;
  width:34px; height:34px; border-radius:50%;
  display:grid; place-items:center; overflow:hidden;
  color:#080a12; font-size:14px; font-weight:600;
}
.mu-mini__cover::before{
  content:''; position:absolute; inset:0;
  background:var(--grad);
  filter:hue-rotate(var(--mu-hue, 0deg)) saturate(.72);
}
.mu-mini__cover span{ position:relative; }
.mu-mini__txt{ min-width:0; display:flex; flex-direction:column; gap:1px; }
.mu-mini__txt b{
  font-size:12.5px; font-weight:600; line-height:1.3; color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.mu-mini__txt em{
  font-style:normal; font-size:11px; line-height:1.3; color:var(--text-mute);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.mu-mini__btn{
  flex:0 0 auto; width:32px; height:32px; border-radius:50%;
  display:grid; place-items:center; border:0; cursor:pointer;
  background:var(--glass-hi); color:var(--text);
}
.mu-mini__btn svg{ width:14px; height:14px; fill:currentColor; }
/* 切歌键：比播放键轻一档，只做图标不做底，别跟播放键抢焦点 */
.mu-mini__skip{
  flex:0 0 auto; width:26px; height:26px; border-radius:50%;
  display:grid; place-items:center; border:0; cursor:pointer;
  background:none; color:var(--text-mute);
  transition:color .18s var(--ease), background .18s var(--ease);
}
.mu-mini__skip svg{ width:13px; height:13px; fill:currentColor; }
.mu-mini__skip:hover{ color:var(--text); background:var(--glass-hi); }
.mu-mini__skip:active{ transform:scale(.92); }
.mu-mini.is-single .mu-mini__skip{ display:none; }
.mu-mini__x{
  flex:0 0 auto; width:26px; height:26px; border-radius:50%;
  display:grid; place-items:center; border:0; cursor:pointer;
  background:none; color:var(--text-mute); font-size:15px; line-height:1;
}
.mu-mini__x:hover{ color:var(--text); background:var(--glass-hi); }
@media (max-width:640px){
  /* 手机端底栏在下面，迷你条往上让一格，别叠在一起 */
  .mu-mini{
    left:12px; right:12px; width:auto;
    bottom:calc(82px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- 本地预览：草稿提示条（只在 127.0.0.1 / localhost 出现） ----------
   预览时前台读草稿，改完立刻能看见；这条负责说明「看到的还不是线上」。
   放左下角，跟右下角的迷你播放条错开，两者同时出现也不打架。 */
.xy-draftbar{
  position:fixed; z-index:85;
  left:calc(22px + env(safe-area-inset-left, 0px));
  bottom:calc(22px + env(safe-area-inset-bottom, 0px));
  display:flex; align-items:center; gap:7px;
  max-width:calc(100vw - 44px);
  padding:7px 8px 7px 12px; border-radius:99px;
  background:color-mix(in srgb, var(--bg-soft) 92%, transparent);
  backdrop-filter:blur(20px) saturate(150%);
  -webkit-backdrop-filter:blur(20px) saturate(150%);
  box-shadow:0 16px 34px -22px rgba(0,0,0,.55);
  font-size:11.5px; line-height:1.35; color:var(--text-mute);
  animation:xyDraftIn .3s var(--ease);
}
@keyframes xyDraftIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.xy-draftbar__dot{
  flex:0 0 auto; width:7px; height:7px; border-radius:50%;
  background:var(--a1);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--a1) 26%, transparent);
}
.xy-draftbar b{ flex:0 0 auto; color:var(--text); font-weight:600; }
.xy-draftbar em{
  font-style:normal; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.xy-draftbar a{
  flex:0 0 auto; color:var(--ink-a1); text-decoration:none; font-weight:600;
  padding:3px 9px; border-radius:99px; background:var(--glass-hi);
  transition:background .18s var(--ease);
}
.xy-draftbar a:hover{ background:var(--glass-2); }
@media (max-width:640px){
  /* 手机上让到迷你播放条上面一格，别跟它叠在一起 */
  .xy-draftbar{
    left:12px; right:12px; bottom:calc(140px + env(safe-area-inset-bottom, 0px));
    max-width:none; justify-content:center;
  }
}

/* ===== 随手记（#/note）=====
   整页就是一个铺满的 iframe，本体在 assets/note/index.html（换肤版）。
   高度由 note.js 量出顶栏占位后写成内联 style，这里的 100dvh 只是兜底
   （JS 没跑到 / 宽度变化时的第一帧）。 */
.note-page{
  width:100%;
  height:calc(100dvh - 120px);
  min-height:320px;
  border-radius:var(--r-lg);
  overflow:hidden;            /* 圆角必须裁到 iframe 上，否则四角会露出方块 */
}
.note-page__frame{
  display:block; width:100%; height:100%; border:0;
  background:transparent;     /* 让下面的极光透上来，接缝不明显 */
}

/* =========================================================
   待办清单（#/todo）
   ---------------------------------------------------------
   跟「灵感随记 / 本地音乐」同一套语言：玻璃底、圆角、只给主操作上渐变。
   自己的一点脾气：每条待办都串在一根渐变竖线上，圆点即勾选框 ——
   完成时圆点填满、文字退成灰并划一道线，像把这件事从"栈"上取走。
   ========================================================= */

.page--todo{ padding-bottom:44px; }

.page-head--todo{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:20px 40px; flex-wrap:wrap;
}
.page-head--todo .page-head__main{ min-width:0; flex:1 1 420px; }
.page-head--todo h1{ margin-top:12px; }
.page-head--todo p{ max-width:52ch; }

.td-tools{ display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.td-tools .btn{ height:32px; padding:0 13px; font-size:12.5px; }

/* ---------- 头部右侧：今日环 + 两个数 ---------- */
.td-head__side{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding-bottom:6px; }
.td-ring{ position:relative; width:96px; height:96px; flex:0 0 auto; }
.td-ring svg{ width:100%; height:100%; transform:rotate(-90deg); }
.td-ring__track{ fill:none; stroke:var(--glass-2); stroke-width:5; }
.td-ring__bar{
  fill:none; stroke:url(#tdRingGrad); stroke-width:5; stroke-linecap:round;
  transition:stroke-dashoffset .65s var(--ease);
}
.td-ring__mid{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:2px;
}
.td-ring__mid b{
  font-size:21px; font-weight:800; line-height:1; letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
  background:var(--grad);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.td-ring__mid b i{ font-style:normal; font-size:11px; font-weight:600; }
.td-ring__mid span{
  display:inline-flex; align-items:baseline; gap:3px;
  font-size:10.5px; color:var(--text-mute); letter-spacing:.02em;
  white-space:nowrap;
}
.td-ring__mid span i{ font-style:normal; font-variant-numeric:tabular-nums; }
.td-ring__mid span em{ font-style:normal; }
.td-ring.is-empty .td-ring__mid b{ font-size:17px; }

/* ---------- 加一条 ---------- */
.td-add{
  margin-top:6px; padding:12px 16px 14px; border-radius:var(--r-lg);
  background:var(--glass); border:1px solid transparent;
  transition:background .3s var(--ease);
}
.td-add:focus-within{ background:var(--glass-2); }
.td-add__row{ display:flex; align-items:center; gap:10px; }
.td-input{
  flex:1 1 auto; min-width:0; padding:9px 2px;
  border:0; outline:none; background:none;
  color:var(--text); font:inherit; font-size:15.5px;
}
.td-input::placeholder{ color:var(--text-mute); }
.td-add__btn{ flex:0 0 auto; height:38px; padding:0 20px; }

.td-add__opts{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin-top:10px; padding-top:10px;
  border-top:1px solid color-mix(in srgb, var(--text) 7%, transparent);
}
.td-opts{ display:inline-flex; gap:2px; padding:3px; border-radius:999px; background:var(--glass); }
.td-opt{
  height:26px; padding:0 11px; border-radius:999px;
  display:inline-flex; align-items:center; gap:5px;
  font-size:12px; color:var(--text-mute); white-space:nowrap;
  transition:color .2s var(--ease), background .2s var(--ease);
}
.td-opt:hover{ color:var(--text-dim); }
.td-opt.is-on{ background:var(--glass-hi); color:var(--text); }
.td-opt--pri::before{
  content:''; width:6px; height:6px; border-radius:50%;
  background:var(--pri, transparent); flex:0 0 auto;
  opacity:.45; transition:opacity .2s var(--ease), transform .2s var(--ease);
}
.td-opt--pri.is-on::before{ opacity:1; transform:scale(1.15); }

/* ---------- 筛选条 ---------- */
.td-bar{ display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin:22px 0 2px; }
.td-pill{
  height:30px; padding:0 14px; border-radius:999px;
  display:inline-flex; align-items:center;
  font-size:12.5px; color:var(--text-mute);
  background:var(--glass); border:1px solid transparent;
  transition:color .22s var(--ease), background .22s var(--ease);
}
.td-pill:hover{ color:var(--text-dim); background:var(--glass-2); }
.td-pill.is-on{ background:var(--grad-soft); color:var(--text); font-weight:600; }
.td-pill i{
  font-style:normal; margin-left:6px; font-size:11px; font-weight:400;
  color:var(--text-mute); font-variant-numeric:tabular-nums;
}
.td-pill.is-on i{ color:var(--text-dim); }

/* ---------- 分组 + 那根线 ---------- */
.td-group{ margin-top:22px; }
.td-group__h{
  display:flex; align-items:baseline; gap:8px; margin:0 0 2px;
  font-size:12px; font-weight:600; letter-spacing:.1em;
  color:var(--text-dim);
}
.td-group__h i{
  font-style:normal; font-size:11px; font-weight:400; letter-spacing:0;
  color:var(--text-mute); font-variant-numeric:tabular-nums;
}
.td-group__h em{
  margin-left:auto; font-style:normal; font-size:11.5px; font-weight:400;
  letter-spacing:0; color:var(--text-mute);
}

.td-items{ position:relative; margin:0; padding:0; list-style:none; }
/* 竖线：从第一颗圆点到底部，往下渐隐 —— 像一串还没走完的路 */
.td-items::before{
  content:''; position:absolute; left:15px; top:12px; bottom:16px; width:1px;
  background:linear-gradient(180deg,
    color-mix(in srgb, var(--a1) 58%, transparent),
    color-mix(in srgb, var(--a2) 34%, transparent) 55%,
    transparent);
}
/* 浅色底上同一档透明度会彻底看不见，单独加重 */
html[data-theme="light"] .td-items::before{
  background:linear-gradient(180deg,
    color-mix(in srgb, var(--a1) 78%, transparent),
    color-mix(in srgb, var(--a2) 52%, transparent) 55%,
    transparent);
}

/* ---------- 一条 ---------- */
.td-item{
  display:grid; grid-template-columns:30px minmax(0,1fr) 26px;
  align-items:start; gap:12px;
  padding:10px 10px 10px 0; border-radius:14px;
  transition:background .25s var(--ease);
}
.td-item:hover{ background:var(--glass); }

.td-dot{
  position:relative; z-index:1;
  width:22px; height:22px; margin:1px 0 0 4px; padding:0;
  border-radius:50%; border:1.5px solid color-mix(in srgb, var(--a1) 55%, transparent);
  background:var(--bg);
  display:grid; place-items:center;
  transition:background .22s var(--ease), border-color .22s var(--ease), transform .18s var(--ease);
}
.td-dot:hover{ border-color:var(--a1); transform:scale(1.08); }
.td-dot:active{ transform:scale(.94); }
.td-dot svg{
  width:12px; height:12px; fill:none; stroke:#080a12; stroke-width:2.8;
  stroke-linecap:round; stroke-linejoin:round;
  opacity:0; transform:scale(.55);
  transition:opacity .2s var(--ease), transform .22s var(--ease);
}
.td-item.is-done .td-dot{ background:var(--grad); border-color:transparent; }
.td-item.is-done .td-dot svg{ opacity:1; transform:none; }
/* 逾期：只给圆点描一圈星色，不整行标红 —— 这页已经够花了 */
.td-item.is-over .td-dot{ border-color:var(--star); border-style:dashed; }

.td-main{ min-width:0; }
.td-title{
  margin:0; font-size:14.5px; line-height:1.65; color:var(--text);
  word-break:break-word; cursor:text;
}
.td-item.is-done .td-title{
  color:var(--text-mute);
  text-decoration:line-through;
  text-decoration-color:color-mix(in srgb, var(--text-mute) 60%, transparent);
}
.td-meta{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:4px; }
.td-due{ font-size:11.5px; color:var(--text-mute); font-variant-numeric:tabular-nums; }
.td-due.is-over{ color:var(--star); }
.td-pri{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11.5px; color:var(--text-dim);
}
.td-pri::before{
  content:''; width:5px; height:5px; border-radius:50%; background:var(--pri, transparent);
}
.td-ago{ font-size:11.5px; color:var(--text-mute); }

.td-del{
  width:26px; height:26px; padding:0; border-radius:8px;
  display:grid; place-items:center; opacity:0;
  transition:opacity .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  color:var(--text-mute);
}
.td-del svg{ width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.td-item:hover .td-del{ opacity:.7; }
.td-del:hover{ opacity:1 !important; color:var(--text); background:var(--glass-hi); }
/* 触屏没有 hover：删除键常驻，但压暗一点，别抢戏 */
@media (hover:none){ .td-del{ opacity:.4; } }

/* 行内改名 */
.td-edit{
  display:block; width:100%; padding:2px 8px; margin:-2px 0;
  border:0; outline:none; border-radius:8px;
  background:var(--glass-hi); color:var(--text);
  font:inherit; font-size:14.5px; line-height:1.65;
}

.td-more{ margin:6px 0 0 42px; font-size:11.5px; color:var(--text-mute); }

/* ---------- 空状态 ---------- */
.td-empty{ padding:44px 16px 40px; text-align:center; }
.td-empty svg{
  width:112px; height:auto; margin:0 auto 14px; display:block;
  fill:none; stroke:color-mix(in srgb, var(--a1) 46%, transparent);
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
}
.td-empty b{ display:block; font-size:15px; font-weight:600; color:var(--text-dim); }
.td-empty p{ margin:6px 0 0; font-size:12.5px; color:var(--text-mute); }

/* ---------- 窄屏 ---------- */
@media (max-width:720px){
  .page-head--todo{ gap:14px; }
  .page-head--todo .page-head__main{ flex:1 1 100%; }
  /* 环和两个数字挤一行：手机上标题区已经够高了，别再各占一行 */
  .td-head__side{ width:100%; gap:12px; padding-bottom:0; flex-wrap:nowrap; }
  .td-ring{ width:62px; height:62px; }
  .td-ring__track, .td-ring__bar{ stroke-width:6; }
  .td-ring__mid b{ font-size:15px; }
  .td-ring__mid b i{ font-size:9px; }
  .td-ring__mid span{ font-size:9px; letter-spacing:0; gap:0; }
  /* 62px 的环塞不下「2 / 3 今日」，只留数字 */
  .td-ring__mid span em{ display:none; }
  .td-head__stats{ flex:1 1 0; min-width:0; gap:8px; flex-wrap:nowrap; }
  .td-head__stats .head-stat{ min-width:0; flex:1 1 0; padding:8px 12px; border-radius:13px; }
  .td-head__stats .head-stat b{ font-size:18px; }
  .td-head__stats .head-stat span{ font-size:11px; }
  .td-tools{ justify-content:center; margin-top:14px; }
  .td-add{ padding:10px 12px 12px; }
  .td-input{ font-size:15px; }
  .td-add__btn{ height:34px; padding:0 15px; font-size:13px; }
  .td-add__opts{ gap:8px; justify-content:center; }
  .td-item{ grid-template-columns:30px minmax(0,1fr) 26px; gap:10px; }
  .td-del{ opacity:.4; }
  /* 手机上标题区居中（跟全站一致），但列表保持左对齐才好读 */
  .td-bar{ justify-content:center; }
}
