/* ============================================================
   Fool Blog — 新版内页设计系统（.np- 前缀）
   与 static/home.css 同源：磨砂半透明面板 + 衬线标题 + 克制留白
   仅在 *_new 页面引入，不参与旧版样式
   ============================================================ */

/* ---------- 导航覆盖（与 home.css 保持一致，仅新版内页生效） ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
html.dark .site-header {
  background: var(--bg);
  border-bottom-color: var(--border);
}
.brand { font-size: 16.5px; }
.brand span {
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-weight: 700; letter-spacing: .02em;
}
.brand-icon { width: 26px; height: 26px; border-radius: 4px; }
.nav-links > a {
  position: relative;
  font-size: 13px; font-weight: 500; letter-spacing: .06em;
  padding: 6px 10px; border-radius: 4px;
  transition: color .2s ease;
}
.nav-links > a::after {
  content: ""; position: absolute;
  left: 10px; right: 10px; bottom: 2px; height: 2px;
  border-radius: 2px; background: currentColor;
  transform: scaleX(0);
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}
.nav-links > a:hover {
  color: var(--primary); background: transparent; text-decoration: none;
}
.nav-links > a:hover::after { transform: scaleX(1); }
.nav-links > a.active {
  background: transparent; color: var(--primary); font-weight: 600;
}
.nav-links > a.active::after { transform: scaleX(1); }
@media (max-width: 768px) {
  .nav-links > a::after { left: 14px; right: 14px; bottom: 6px; }
}
/* ---------- 图标按钮：hover 时描边沿圆周生长一圈 ---------- */
@property --icon-ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.icon-btn {
  position: relative;
  width: 30px; height: 30px; font-size: 14px;
}
/* 圆环用 ::before 承载，conic-gradient 负责“扫过”的角度，
   mask 挖空中心只留 1.5px 描边，避免盖住图标 */
.icon-btn::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(
    from -90deg,
    var(--primary) 0deg,
    var(--primary) var(--icon-ring-angle),
    transparent var(--icon-ring-angle),
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .15s ease;
}
.icon-btn:hover { background: var(--border); color: var(--primary); }
.icon-btn:hover::before {
  opacity: 1;
  animation: iconRingSweep .5s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes iconRingSweep {
  from { --icon-ring-angle: 0deg; }
  to   { --icon-ring-angle: 360deg; }
}

/* ---------- NEW 角标：最近 3 天发布的文章 ---------- */
.badge-new {
  display: inline-flex; align-items: center;
  margin-left: 7px; padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  line-height: 1.5; vertical-align: middle;
  color: #fff; background: #ef4444;
  box-shadow: 0 1px 4px rgba(239, 68, 68, .35);
}
html.dark .badge-new { background: #f87171; box-shadow: 0 1px 4px rgba(248,113,113,.3); }
.hero-feat .badge-new { margin-left: 6px; padding: 0 5px; font-size: 9.5px; }
/* 文章详情页标题：标题很大，角标对齐到 baseline 上方更协调 */
.art-title .badge-new { margin-left: 10px; padding: 2px 8px; font-size: 12px; vertical-align: .35em; }
/* 注册按钮：与「登录」同为普通导航链接样式，仅保留加粗以作区分 */
.nav-links > a.btn-mini {
  background: transparent; border: none; box-shadow: none;
  border-radius: 4px; padding: 6px 10px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary) !important;
}
.nav-links > a.btn-mini:hover {
  background: transparent; color: var(--primary) !important;
}

/* ---------- 用户头像下拉菜单：改为新版磨砂面板 ---------- */
.dropdown-menu {
  min-width: 178px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
  padding: 7px;
  margin-top: 10px;
}
html.dark .dropdown-menu {
  background: rgba(24, 34, 52, .82);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.dropdown-menu a {
  padding: 9px 12px; border-radius: 9px;
  font-size: 13.5px; gap: 10px;
}
.dropdown-menu a:hover {
  background: rgba(var(--primary-rgb), .09);
  color: var(--primary);
}
.dropdown-menu a i { width: 16px; text-align: center; opacity: .85; }
.dropdown-menu hr { margin: 6px 4px; border-top-color: var(--border); }
.dropdown-menu .link-btn.dropdown-btn {
  width: 100%; padding: 9px 12px; border-radius: 9px;
  font-size: 13.5px; text-align: left;
  display: flex; align-items: center; gap: 10px;
  transition: background-color .15s ease, color .15s ease;
}
.dropdown-menu .link-btn.dropdown-btn:hover {
  background: rgba(220, 38, 38, .08); color: #ef4444;
}
.dropdown-menu .link-btn.dropdown-btn i { width: 16px; text-align: center; }

/* ---------- 页面容器 / 磨砂变量 ---------- */
.np {
  --np-glass: rgba(255, 255, 255, .28);
  --np-glass-bd: rgba(255, 255, 255, .45);
  --np-glass-body: rgba(255, 255, 255, .2);
  --np-shadow: 0 4px 18px rgba(15, 23, 42, .06);
  --np-radius: 14px;
  padding: 26px 0 40px;
}

/* 文章详情页底部：.content（42px）+ .np（40px）+ .art-page 三层叠加太远，
   文章页把后两层收窄（其余 np 页面保持原设计） */
.np.art-page {
  padding-bottom: 0;
}

/* 文章页区块间距与旧版对齐：旧版正文/评论区之间约 20px，
   新版 .np-sec 的 30px 偏松，这里只对文章页收窄 */
.np.art-page .np-sec { margin-bottom: 20px; }
.np.art-page .np-sec-head { margin-bottom: 12px; padding-bottom: 9px; }
html.dark .np {
  --np-glass: rgba(24, 34, 52, .35);
  --np-glass-bd: rgba(255, 255, 255, .12);
  --np-glass-body: rgba(16, 24, 40, .3);
  --np-shadow: 0 4px 18px rgba(0, 0, 0, .22);
}
.np-panel {
  background: var(--np-glass);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid var(--np-glass-bd);
  border-radius: var(--np-radius);
  box-shadow: var(--np-shadow);
}

/* ---------- 页头 ---------- */
.np-head { margin-bottom: 26px; }
.np-kicker {
  margin: 0 0 8px; font-size: 12.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--primary); font-weight: 700;
}
.np-title {
  margin: 0 0 8px; color: var(--text);
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 800;
  letter-spacing: .01em; line-height: 1.2;
}
.np-sub {
  margin: 0; color: var(--text-secondary);
  font-size: 14.5px; line-height: 1.7; max-width: 56em;
}
.np-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.np-head-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 14px; font-size: 13.5px; color: var(--text-secondary);
}
.np-head-meta b {
  color: var(--text); font-size: 17px; font-weight: 700;
  font-variant-numeric: tabular-nums; margin-right: 4px;
}

/* ---------- 段头 ---------- */
.np-sec { margin-bottom: 30px; }
.np-sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; margin-bottom: 16px; padding-bottom: 11px;
  border-bottom: 2px solid var(--text);
}
.np-sec-head h2 {
  margin: 0; color: var(--text);
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: 20px; font-weight: 800; letter-spacing: .01em;
}
.np-sec-note { font-size: 13px; color: var(--text-secondary); }
.np-sec-note a {
  color: var(--text-secondary); text-decoration: none;
  border-bottom: 1px dashed var(--text-tertiary);
}
.np-sec-note a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- 通用面板内容 ---------- */
.np-body { padding: 22px 24px; }
.np-body-flush { padding: 0; overflow: hidden; }
.np-empty {
  text-align: center; padding: 58px 20px; color: var(--text-secondary);
  font-size: 14px;
}
.np-empty .fa {
  display: block; margin-bottom: 12px;
  font-size: 36px; opacity: .35;
}
.np-note {
  margin: 0; font-size: 13.5px; color: var(--text-secondary); line-height: 1.7;
}
.np-muted { color: var(--text-secondary); }

/* ---------- 徽标 / 标签 / chips ---------- */
.np-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.np-chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  font-size: 13.5px; color: var(--text-secondary); text-decoration: none;
  border: 1px solid var(--border); background: var(--np-glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 7px 14px; border-radius: 999px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.np-chip:hover, .np-chip.is-on {
  background: var(--primary); border-color: var(--primary); color: #fff;
  text-decoration: none; transform: translateY(-1px);
}
.np-chip.is-on { font-weight: 600; }
.np-chip-count {
  font-size: 11.5px; font-variant-numeric: tabular-nums;
  color: var(--text-tertiary); font-weight: 600;
}
.np-chip:hover .np-chip-count, .np-chip.is-on .np-chip-count { color: rgba(255, 255, 255, .8); }
.np-tag {
  display: inline-block; font-size: 12px; text-decoration: none;
  color: var(--primary); background: rgba(var(--primary-rgb), .08);
  padding: 3px 9px; border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
html.dark .np-tag { background: rgba(96, 165, 250, .14); color: #93c5fd; }
.np-tag:hover { background: var(--primary); color: #fff; text-decoration: none; }

.np-level {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(var(--primary-rgb), .1); color: var(--primary);
}
.np-role {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(245, 158, 11, .14); color: #b45309;
}
html.dark .np-role { background: rgba(245, 158, 11, .18); color: #fbbf24; }
.np-role-super { background: rgba(239, 68, 68, .14); color: #dc2626; }
html.dark .np-role-super { background: rgba(239, 68, 68, .2); color: #fca5a5; }

/* ---------- 文章行（新版列表） ---------- */
.np-rows { display: flex; flex-direction: column; }
.np-row {
  position: relative;
  display: grid; grid-template-columns: 92px 1fr auto;
  gap: 4px 20px; align-items: start;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background-color .18s ease;
}
.np-row:last-child { border-bottom: none; }
.np-row:hover { background: rgba(var(--primary-rgb), .04); }
html.dark .np-row:hover { background: rgba(255, 255, 255, .03); }
.np-row-date {
  font-size: 12.5px; color: var(--text-tertiary);
  font-variant-numeric: tabular-nums; padding-top: 3px;
  white-space: nowrap;
}
.np-row-main { min-width: 0; }
.np-row-title {
  margin: 0 0 6px; font-size: 16.5px; font-weight: 700; line-height: 1.45;
}
.np-row-title a { color: var(--text); text-decoration: none; }
.np-row-title a:hover { color: var(--primary); }
.np-row-sum {
  margin: 0 0 10px; font-size: 13.5px; line-height: 1.65;
  color: var(--text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.np-row-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.np-row-aside {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  font-size: 12.5px; color: var(--text-secondary);
  font-variant-numeric: tabular-nums; padding-top: 3px; white-space: nowrap;
}
.np-row-title a::after { content: ""; position: absolute; inset: 0; }
.np-row-tags a, .np-row-aside a { position: relative; z-index: 2; }

/* ---------- 归档时间线 ---------- */
.np-year {
  border: 1px solid var(--np-glass-bd); border-radius: 12px;
  overflow: hidden; margin-bottom: 14px;
  background: var(--np-glass-body);
}
.np-year-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; cursor: pointer;
  background: transparent; border: none; width: 100%; text-align: left;
  font: inherit; color: var(--text);
  transition: background-color .15s ease;
}
.np-year-head:hover { background: rgba(var(--primary-rgb), .05); }
html.dark .np-year-head:hover { background: rgba(255, 255, 255, .04); }
.np-year-name {
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: 17px; font-weight: 800;
}
.np-year-count { font-size: 12.5px; color: var(--text-secondary); }
.np-year-mark {
  margin-left: auto; font-size: 15px; color: var(--text-tertiary);
  width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 6px;
}
.np-month { border-top: 1px solid var(--border); }
.np-month-head {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; font: inherit; color: var(--text-secondary);
  background: transparent; border: none; cursor: pointer;
  padding: 10px 20px 10px 34px; font-size: 13.5px; font-weight: 600;
  transition: color .15s ease;
}
.np-month-head:hover { color: var(--primary); }
.np-month-list { list-style: none; margin: 0; padding: 0 20px 12px 34px; }
.np-month-list li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 7px 0; border-top: 1px dashed var(--border);
}
.np-month-list li:first-child { border-top: none; }
.np-month-list .np-dot-date {
  flex-shrink: 0; font-size: 12.5px; color: var(--text-tertiary);
  font-variant-numeric: tabular-nums; width: 46px;
}
.np-month-list a {
  color: var(--text); text-decoration: none; font-size: 14.5px;
}
.np-month-list a:hover { color: var(--primary); }

/* ---------- 表单 ---------- */
.np-form { display: flex; flex-direction: column; gap: 16px; }
.np-field { display: flex; flex-direction: column; gap: 7px; }
.np-field > span, .np-label {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: .03em;
}
.np-input, .np-field input, .np-field textarea, .np-field select {
  width: 100%; font: inherit; font-size: 14.5px;
  color: var(--text); background: var(--input-bg);
  border: 1px solid var(--input-border); border-radius: 10px;
  padding: 10px 14px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.np-field textarea { resize: vertical; line-height: 1.7; min-height: 92px; }
.np-input:focus, .np-field input:focus, .np-field textarea:focus,
.np-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .16);
}
.np-field input::placeholder, .np-field textarea::placeholder { color: var(--text-tertiary); }
.np-row-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.np-row-inline > .np-field { flex: 1; min-width: 200px; }

.np-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--np-glass);
  color: var(--text); text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease;
}
.np-btn:hover {
  border-color: var(--primary); color: var(--primary);
  text-decoration: none; transform: translateY(-1px);
}
.np-btn-primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), .25);
}
.np-btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
.np-btn-ghost { background: transparent; }
.np-btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.np-btn-block { width: 100%; }

.np-alert {
  margin: 0; padding: 11px 15px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.6;
  background: rgba(239, 68, 68, .1); color: #dc2626;
  border: 1px solid rgba(239, 68, 68, .25);
}
html.dark .np-alert { background: rgba(239, 68, 68, .16); color: #fca5a5; }

/* ---------- 认证页 ---------- */
.np-auth-wrap { max-width: 440px; margin: 8px auto 0; }
.np-auth {
  padding: 32px 32px 28px;
  background: var(--np-glass);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid var(--np-glass-bd);
  border-radius: 16px;
  box-shadow: var(--np-shadow);
}
.np-auth-title {
  margin: 0 0 4px; text-align: center;
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: 24px; font-weight: 800; color: var(--text);
}
.np-auth-sub {
  margin: 0 0 24px; text-align: center;
  font-size: 13.5px; color: var(--text-secondary);
}
.np-auth-foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  text-align: center; font-size: 13.5px; color: var(--text-secondary);
}
.np-auth-foot a { color: var(--primary); text-decoration: none; }
.np-auth-foot a:hover { text-decoration: underline; }
.np-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 30px; height: 30px; border: none; background: transparent;
  color: var(--text-tertiary); cursor: pointer; border-radius: 8px;
}
.np-eye:hover { color: var(--primary); background: rgba(var(--primary-rgb), .1); }
.np-eye svg { width: 18px; height: 18px; }
.np-field .np-input-wrap { position: relative; }
.np-field .np-input-wrap input { padding-right: 42px; }
.np-qq {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 11px; border-radius: 10px;
  border: 1px solid var(--input-border); background: var(--input-bg);
  color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.np-qq:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ---------- 留言板 ---------- */
.np-msg { padding: 18px 24px; border-bottom: 1px solid var(--border); }
.np-msg:last-child { border-bottom: none; }
.np-msg-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 9px;
}
.np-msg-name { font-size: 14px; font-weight: 700; color: var(--text); }
.np-msg-name a { color: inherit; text-decoration: none; }
.np-msg-name a:hover { color: var(--primary); }
.np-msg-time {
  margin-left: auto; font-size: 12.5px; color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.np-msg-text {
  margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}
.np-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; overflow: visible;
  background: rgba(var(--primary-rgb), .12); color: var(--primary);
  font-weight: 700; font-size: 14px; position: relative;
}
.np-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.np-avatar-lg { width: 74px; height: 74px; font-size: 28px; }

/* ---------- 通知 ---------- */
.np-notify {
  position: relative;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  transition: background-color .18s ease;
}
.np-notify:last-child { border-bottom: none; }
.np-notify:hover { background: rgba(var(--primary-rgb), .04); }
html.dark .np-notify:hover { background: rgba(255, 255, 255, .03); }
.np-notify.is-unread { background: rgba(var(--primary-rgb), .055); }
.np-notify.is-unread::before {
  content: ""; position: absolute; left: 8px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--primary);
}
.np-notify-body { min-width: 0; flex: 1; }
.np-notify-text {
  font-size: 14.5px; line-height: 1.6; color: var(--text);
  text-decoration: none; display: block;
}
.np-notify-text:hover { color: var(--primary); text-decoration: none; }
.np-notify-text strong { font-weight: 700; }
.np-notify-article {
  display: inline-block; color: var(--primary);
  background: rgba(var(--primary-rgb), .08);
  padding: 1px 8px; border-radius: 6px; font-size: 13px;
}
html.dark .np-notify-article { background: rgba(96, 165, 250, .14); color: #93c5fd; }
.np-notify-time {
  display: block; margin-top: 5px;
  font-size: 12.5px; color: var(--text-tertiary);
}

/* ---------- 选项卡 ---------- */
.np-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); margin-bottom: 22px;
}
.np-tab {
  position: relative; padding: 9px 16px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; border-radius: 8px 8px 0 0;
  transition: color .18s ease, background-color .18s ease;
}
.np-tab:hover { color: var(--text); background: rgba(var(--primary-rgb), .06); text-decoration: none; }
.np-tab.is-on { color: var(--primary); }
.np-tab.is-on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; background: var(--primary); border-radius: 2px;
}

/* ---------- 统计块 ---------- */
.np-stats {
  display: flex; flex-wrap: wrap; gap: 12px 34px;
  padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-secondary);
}
.np-stats b {
  color: var(--text); font-size: 17px; font-weight: 700;
  font-variant-numeric: tabular-nums; margin-right: 5px;
}

/* ---------- 头像框（沿用全站 .avatar-wrap 规则，此处仅给新版兜底） ---------- */
.np-ava-frame {
  position: relative; display: inline-grid; place-items: center;
  width: 34px; height: 34px;
}

/* ---------- 分页（磨砂简洁） ---------- */
.np-pagination { margin: 20px 0 4px; }
.np-pagination .pg-num, .np-pagination .pg-edge {
  background: var(--np-glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
}
.np-pagination .pg-num:hover, .np-pagination .pg-edge:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--np-glass); transform: none;
}
.np-pagination .pg-current {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: none; transform: none;
}
.np-pagination .pg-total { color: var(--text-secondary); }

/* ---------- 搜索 ---------- */
.np-search {
  position: relative; display: flex; align-items: center;
}
.np-search .fa-search {
  position: absolute; left: 16px; color: var(--text-tertiary);
  font-size: 14px; pointer-events: none;
}
.np-search input {
  width: 100%; font: inherit; font-size: 15.5px;
  color: var(--text); background: var(--np-glass);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid var(--np-glass-bd); border-radius: 12px;
  padding: 15px 18px 15px 42px; outline: none;
  box-shadow: var(--np-shadow);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.np-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .16);
}
.np-search input::placeholder { color: var(--text-tertiary); }
mark {
  background: rgba(var(--primary-rgb), .18); color: inherit;
  padding: 0 2px; border-radius: 3px;
}

/* ---------- 关于页 ---------- */
.np-author {
  display: grid; grid-template-columns: auto 1fr; gap: 22px 26px;
  align-items: start; padding: 26px 28px;
}
.np-author-id { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.np-author-name {
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: 17px; font-weight: 800; color: var(--text);
}
.np-author-name a { color: inherit; text-decoration: none; }
.np-author-name a:hover { color: var(--primary); }
.np-author-intro {
  margin: 0 0 16px; font-size: 14.5px; line-height: 1.85;
  color: var(--text-secondary); white-space: pre-wrap;
}
.np-author-social { display: flex; flex-wrap: wrap; gap: 12px; }
.np-social {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text-secondary); text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 15px; transition: all .16s ease;
}
.np-social:hover {
  border-color: var(--primary); color: var(--primary);
  text-decoration: none; transform: translateY(-1px);
}

/* ---------- 头像周边（新版） ---------- */
.np-hero-ava {
  display: grid; place-items: center; position: relative;
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(var(--primary-rgb), .12); color: var(--primary);
  font-size: 28px; font-weight: 700; overflow: visible;
}
.np-hero-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- 底部：页脚固定在视口底部 ----------
   与 app.css 的 body flex 配合：正文撑满剩余高度，footer 贴底；
   内容超出视口时 footer 自然跟随内容。 */
main.content { flex: 1 0 auto; }
.site-footer { margin-top: auto; }

/* ---------- 键盘焦点 ---------- */
.np-title a:focus-visible,
.np-row-title a:focus-visible,
.np-row-tags a:focus-visible,
.np-chip:focus-visible,
.np-tag:focus-visible,
.np-tab:focus-visible,
.np-btn:focus-visible,
.np-notify-text:focus-visible,
.np-social:focus-visible,
.np-month-list a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 回到旧版 ---------- */
.np-back-old {
  position: fixed; right: 18px; bottom: 78px; z-index: 60;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 16px; box-shadow: 0 6px 20px rgba(15, 23, 42, .12);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
html.dark .np-back-old {
  background: rgba(17, 24, 39, .78);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}
.np-back-old:hover {
  color: var(--primary); border-color: var(--primary);
  transform: translateY(-2px); text-decoration: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .np-author { grid-template-columns: 1fr; }
  .np-row { grid-template-columns: 74px 1fr; }
  .np-row-aside { display: none; }
}
@media (max-width: 640px) {
  .np { padding-top: 18px; }
  .np-body { padding: 18px 16px; }
  .np-msg, .np-notify { padding-left: 16px; padding-right: 16px; }
  .np-row { grid-template-columns: 1fr; padding: 16px; gap: 6px; }
  .np-row-date { padding-top: 0; order: -1; }
  .np-auth { padding: 26px 20px 22px; }
  .np-year-head { padding: 13px 16px; }
  .np-month-head { padding-left: 18px; }
  .np-month-list { padding-left: 18px; padding-right: 16px; }
  .np-sec-head { flex-direction: column; gap: 4px; align-items: flex-start; }
  .np-back-old { right: 12px; bottom: 70px; padding: 8px 13px; }
}
