/* ================================================================
   DinoBlog V1.1 · 全站样式 css/style.css
   ----------------------------------------------------------------
   设计语言: 夜观 (dark-glass editorial)
   - 暗色(默认): 随机图 + 左右渐变黑遮罩(body::before) + 单一蓝点缀
   - 浅色: 白 + 磨砂玻璃 + 浅蓝; 两套主题变量完整对等
   - 可注入变量(:root 层, header.php 内联 :root{} 同特异性可覆盖):
       --accent --radius --font-size --font-family
   - 圆角规则: 卡片/面板 = var(--radius,16px), 输入件 = 10px,
       按钮与胶囊 = 全圆 999px (文档化的混合体系)
   - 动效基调: all .25s cubic-bezier(.16,1,.3,1); 仅 transform/opacity
   - z-index 刻度: bg -1 / nav 50 / u-pop 70 / mask 80 / drawer 85
                    dock 86 / panel 90 / toast 100
   目录: 01 令牌与主题 | 02 基础重置 | 03 通用工具 | 04 顶部导航
         05 抽屉菜单 | 06 博主 Hero | 07 胶囊组件 | 08 文章卡片
         09 按钮 | 10 表单与提示 | 11 分页 | 12 评论
         13 隐藏内容/AI | 14 Markdown | 15 页脚 | 16 友链
         17 登录页 | 18 用户悬停卡 | 19 音乐播放器 | 20 全局提示
         21 响应式 | 22 降级与偏好
   ================================================================ */

/* ============ 01 · 令牌与主题 ============ */
:root {
  /* 以下四项允许后台设置注入覆盖(同特异性, 注入靠后者胜出) */
  --accent: #4f8cff;
  --radius: 16px;
  --font-size: 16px;
  --font-family: -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, 'Courier New', monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .25s;
  /* 强调色派生(不支持 color-mix 时用固定值兜底, 见 22 节升级) */
  --accent-ink: #6ea3ff;               /* 强调色文字, 保证 AA 对比 */
  --accent-soft: rgba(79, 140, 255, .16);
  --ring: rgba(79, 140, 255, .32);
  --on-accent: #071021;                /* 强调色底上的文字 */

  /* 暗色为默认主题 */
  color-scheme: dark;
  --bg: #0a0e16;
  --fg: #e9edf5;
  --muted: #9aa5ba;
  --line: rgba(233, 238, 248, .10);
  --glass: rgba(13, 18, 30, .55);
  --glass-brd: rgba(233, 238, 248, .12);
  --glass-solid: #101623;
  --nav-bg: rgba(8, 11, 19, .60);
  --field: rgba(255, 255, 255, .055);
  --veil: rgba(4, 7, 13, .35);
  --toast-bg: rgba(15, 20, 32, .92);
  --shadow: 0 14px 40px rgba(2, 6, 16, .45);
  --shadow-sm: 0 4px 16px rgba(2, 6, 16, .30);
  --ok: #3fd68a;
  --err: #ff7377;
  --info: #8ab9ff;
}
/* 暗色(显式声明, 与 :root 默认值一致, 便于单独调整) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0e16;
  --fg: #e9edf5;
  --muted: #9aa5ba;
  --line: rgba(233, 238, 248, .10);
  --glass: rgba(13, 18, 30, .55);
  --glass-brd: rgba(233, 238, 248, .12);
  --glass-solid: #101623;
  --nav-bg: rgba(8, 11, 19, .60);
  --field: rgba(255, 255, 255, .055);
  --veil: rgba(4, 7, 13, .35);
  --toast-bg: rgba(15, 20, 32, .92);
  --shadow: 0 14px 40px rgba(2, 6, 16, .45);
  --shadow-sm: 0 4px 16px rgba(2, 6, 16, .30);
  --ok: #3fd68a;
  --err: #ff7377;
  --info: #8ab9ff;
  /* 深浅反色: 悬停/高亮以对方主题的表面色包裹(暗色→亮包裹) */
  --inv-bg: #e9eef6;
  --inv-fg: #101a2c;
  --inv-line: rgba(16, 26, 44, .16);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fb;
  --fg: #1b2333;
  --muted: #5c6a82;
  --line: rgba(27, 35, 51, .12);
  --glass: rgba(255, 255, 255, .72);
  --glass-brd: rgba(148, 166, 196, .28);
  --glass-solid: rgba(255, 255, 255, .97);
  --nav-bg: rgba(255, 255, 255, .72);
  --field: #ffffff;
  --veil: transparent;
  --toast-bg: rgba(255, 255, 255, .95);
  --shadow: 0 14px 40px rgba(31, 51, 89, .12);
  --shadow-sm: 0 4px 14px rgba(31, 51, 89, .08);
  --ok: #0e8a54;
  --err: #c53a40;
  --info: #2563cf;
  /* 深浅反色: 亮色→暗包裹 */
  --inv-bg: #17202f;
  --inv-fg: #e9eef6;
  --inv-line: rgba(233, 238, 246, .16);
}

/* ============ 02 · 基础重置 ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: rgba(140, 160, 190, .35) transparent; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-size: var(--font-size);
  line-height: 1.7;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
/* 暗色背景层: 随机图 + 左右渐变黑遮罩(边缘更深, 中心透气) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image: linear-gradient(90deg, rgba(0, 0, 0, .84), rgba(0, 0, 0, .60) 50%, rgba(0, 0, 0, .84)), var(--bg-image, none);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  transition: opacity .4s ease;
}
/* 浅色: 纯净底色, 不承载图片 */
:root[data-theme="light"] body::before { background-image: none; background-color: var(--bg); }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.35; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
a { color: var(--accent-ink); text-decoration: none; transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--ring); color: var(--fg); }
/* 滚动条: 细、半透明 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(140, 160, 190, .28); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(140, 160, 190, .48); background-clip: padding-box; }

/* 区块进入动画: 淡入 + 上移, 子元素阶梯延迟 */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
.layout-wrap > * { animation: rise .55s var(--ease) backwards; }
.layout-wrap > *:nth-child(1) { animation-delay: .02s; }
.layout-wrap > *:nth-child(2) { animation-delay: .08s; }
.layout-wrap > *:nth-child(3) { animation-delay: .14s; }
.layout-wrap > *:nth-child(4) { animation-delay: .20s; }
.layout-wrap > *:nth-child(5) { animation-delay: .26s; }
.layout-wrap > *:nth-child(6) { animation-delay: .32s; }
.layout-wrap > *:nth-child(7) { animation-delay: .38s; }
.layout-wrap > *:nth-child(8) { animation-delay: .44s; }
#pjax-main { display: block; min-height: 55vh; }

/* ============ 03 · 通用工具: 布局 / 玻璃卡 / 页题 / 标签 / 空状态 ============ */
.layout-wrap { margin: 0 20%; padding: 26px 0 10px; }
.page-center { max-width: 760px; margin: 0 auto; padding: 40px 20px 20px; }
.page-title { font-size: 26px; font-weight: 750; letter-spacing: -.02em; margin: 0 0 20px; }
.glass-card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.pad { padding: 22px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; line-height: 1.6; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid transparent; transition: all var(--dur) var(--ease); }
a.tag:hover { color: var(--inv-fg); background: var(--inv-bg); border-color: var(--inv-line); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; line-height: 1.6; color: var(--muted); background: var(--glass); border: 1px solid var(--line); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* ============ 04 · 顶部导航 ============ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s ease;
}
.topnav-inner {
  margin: 0 20%;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.brand {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--fg);
  white-space: nowrap;
}
.brand::after { content: "."; color: var(--accent); }
.topnav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  min-width: 0;
}
.topnav-links a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.topnav-links a:hover { color: var(--fg); background: var(--field); }
.topnav-links a.active { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.topnav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
#navBurger { display: none; }

/* ============ 05 · 抽屉菜单(移动端) ============ */
.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 7, 13, .52);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.drawer-mask.open, body.drawer-open .drawer-mask { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  width: min(320px, 84vw);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--glass-solid);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-left: 1px solid var(--glass-brd);
  box-shadow: var(--shadow);
  overflow-y: auto;
  transform: translateX(calc(100% + 24px));
  visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.drawer.open, body.drawer-open .drawer { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.drawer-account { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--field); border: 1px solid var(--line); margin-bottom: 10px; }
.drawer-account img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--glass-brd); }
.drawer-account b { display: block; font-size: 15px; line-height: 1.4; }
.drawer-account span { display: block; font-size: 12.5px; color: var(--muted); }
.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateX(18px);
  transition: opacity .3s ease, transform .35s var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.drawer-link:last-of-type { border-bottom-color: transparent; }
.drawer-link:hover { background: var(--inv-bg); color: var(--inv-fg); }
.drawer-link .arr { margin-left: auto; color: var(--muted); font-size: 14px; opacity: 0; transform: translateX(-8px); transition: opacity .25s ease .12s, transform .3s var(--ease) .12s; }
.drawer.open .drawer-link, body.drawer-open .drawer-link { opacity: 1; transform: none; }
.drawer.open .drawer-link .arr, body.drawer-open .drawer-link .arr { opacity: 1; transform: none; }
.drawer.open .drawer-link:nth-child(2), body.drawer-open .drawer-link:nth-child(2) { transition-delay: .05s; }
.drawer.open .drawer-link:nth-child(3), body.drawer-open .drawer-link:nth-child(3) { transition-delay: .09s; }
.drawer.open .drawer-link:nth-child(4), body.drawer-open .drawer-link:nth-child(4) { transition-delay: .13s; }
.drawer.open .drawer-link:nth-child(5), body.drawer-open .drawer-link:nth-child(5) { transition-delay: .17s; }
.drawer.open .drawer-link:nth-child(6), body.drawer-open .drawer-link:nth-child(6) { transition-delay: .21s; }
.drawer.open .drawer-link:nth-child(7), body.drawer-open .drawer-link:nth-child(7) { transition-delay: .25s; }
.drawer-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.drawer-foot .btn { width: 100%; }
.drawer-settings { display: flex; align-items: center; justify-content: center; width: 40px; height: 38px; padding: 0; border-radius: 12px; border: 1px solid var(--line); font-size: 16px; color: var(--muted); transition: all var(--dur) var(--ease); }
.drawer-settings:hover { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-line); }

/* ============ 06 · 博主 Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  margin-bottom: 26px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* 单一强调色的一缕环境光, 极克制 */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 190px at 88% -30%, var(--accent-soft), transparent 70%); }
.hero-avatar { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 2px solid var(--glass-brd); box-shadow: var(--shadow-sm); flex: none; }
.hero-name { font-size: 22px; font-weight: 750; letter-spacing: -.02em; margin: 0; }
.hero-sign { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-links a { padding: 5px 13px; border-radius: 999px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); background: var(--field); transition: all var(--dur) var(--ease); }
.hero-links a:hover { color: var(--accent-ink); border-color: var(--ring); background: var(--accent-soft);  }

/* ============ 07 · 胶囊组件(公告/运行状态等) ============ */
.capsule-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.capsule:hover { color: var(--inv-fg); background: var(--inv-bg); border-color: var(--inv-line); }
.capsule b { color: var(--fg); font-weight: 600; }

/* ============ 08 · 文章卡片: 左 55% 图 / 右 45% 摘要 ============ */
.post-cards { display: grid; gap: 20px; }
.article-card {
  display: grid;
  grid-template-columns: 11fr 9fr; /* 55% / 45% */
  overflow: hidden;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.article-card:hover { border-color: var(--inv-line); box-shadow: 0 22px 48px rgba(2, 6, 16, .5); }
.article-card:hover .ac-summary { color: var(--muted); }
:root[data-theme="light"] .article-card:hover { box-shadow: 0 22px 48px rgba(31, 51, 89, .18); }
.ac-img { position: relative; min-height: 230px; overflow: hidden; background: var(--field); } /* overflow 裁切放大图 */
.ac-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article-card:hover .ac-img img { transform: scale(1.06); } /* 移开自动复位 */
.ac-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; }
.ac-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--fg);
  padding-bottom: 4px;
  background-image: linear-gradient(90deg, var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size .35s var(--ease), color var(--dur) var(--ease);
}
a.ac-title { color: var(--fg); }
.article-card:hover .ac-title { color: var(--accent-ink); background-size: 100% 2px; } /* 下划线左->右展开 */
.ac-summary { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ac-meta a { color: var(--muted); }
.ac-meta a:hover { color: var(--accent-ink); }

/* ============ 09 · 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.btn:hover { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-line); }
.btn-primary:hover { background: var(--inv-bg); color: var(--inv-fg); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); box-shadow: 0 8px 22px var(--ring); }
.btn-ghost { background: transparent; border-color: var(--glass-brd); color: var(--fg); }
.btn-ghost:hover { background: var(--field); }
.btn-danger { background: #c62f36; border-color: transparent; color: #ffffff; }
.btn-danger:hover { filter: brightness(1.1); box-shadow: 0 8px 22px rgba(198, 47, 54, .35); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--inv-fg); background: var(--inv-bg); border-color: var(--inv-line); }
.icon-btn:active { transform: scale(.98); }

/* ============ 10 · 表单与提示 ============ */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field > label { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: var(--fg);
  font-size: 14.5px;
  line-height: 1.6;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
textarea.input { resize: vertical; min-height: 96px; }
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); } /* 强调色 3px 柔光聚焦环 */
.input:focus-visible { outline: none; }
.input:disabled { opacity: .55; cursor: not-allowed; }
.msg { padding: 10px 14px; margin: 12px 0 0; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; line-height: 1.6; animation: rise .35s var(--ease) backwards; }
.msg-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.msg-err { color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, transparent); background: color-mix(in srgb, var(--err) 10%, transparent); }
/* 空状态/提示：灰字、居中、无边框（与"该分类下暂无文章"类提示一致） */
.msg-info { color: var(--muted); text-align: center; border: 0; background: transparent; padding: 16px 14px; }

/* ============ 11 · 分页 ============ */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 30px 0 6px; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  transition: all var(--dur) var(--ease);
}
.pagination a:hover { color: var(--inv-fg); background: var(--inv-bg); border-color: var(--inv-line); }
.pagination a.cur, .pagination span.cur { background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 700; }

/* ============ 12 · 评论 ============ */
.comments { margin-top: 8px; }
.comment-item {
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
}
.comment-item:last-child { border-bottom-color: transparent; }
.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comment-head img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--glass-brd);
}
.comment-head b { font-size: 14px; font-weight: 650; }
.comment-head time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.comment-body {
  margin: 8px 0 0 44px;
  font-size: 14.5px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.comment-actions {
  margin: 8px 0 0 44px;
  display: flex;
  gap: 16px;
}
.comment-actions button,
.comment-actions a {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.comment-actions button:hover,
.comment-actions a:hover { color: var(--accent-ink); }
.comment-children {
  margin: 6px 0 0 34px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}
.comment-children .comment-item { padding: 12px 0; }
.comment-children .comment-body,
.comment-children .comment-actions { margin-left: 0; }
.comment-form {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}
.comment-form textarea.input { min-height: 100px; }
.comment-form .btn { justify-self: end; }

/* ============ 13 · 隐藏内容 / AI 摘要 ============ */
.hidden-box { text-align: center; padding: 30px 22px; border: 1px dashed var(--ring); border-radius: var(--radius); background: var(--accent-soft); }
.hidden-tip { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.hidden-box .btn { min-width: 140px; }
.ai-summary { padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--field); color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ============ 14 · Markdown 正文 ============ */
.md-content { font-size: 15.5px; line-height: 1.85; overflow-wrap: break-word; }
.md-content > :first-child { margin-top: 0; }
.md-content > :last-child { margin-bottom: 0; }
.md-content h1, .md-content h2 { margin-top: 1.5em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.md-content h1 { font-size: 25px; }
.md-content h2 { font-size: 21.5px; }
.md-content h3 { font-size: 19px; margin-top: 1.35em; }
.md-content h4 { font-size: 17px; margin-top: 1.25em; }
.md-content h5 { font-size: 15.5px; margin-top: 1.2em; }
.md-content h6 { font-size: 14px; margin-top: 1.2em; color: var(--muted); }
.md-content p { margin: .9em 0; }
.md-content a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--ring); text-underline-offset: 3px; }
.md-content a:hover { text-decoration-color: var(--accent); }
.md-content ul, .md-content ol { padding-left: 1.5em; }
.md-content li { margin: .35em 0; }
.md-content li::marker { color: var(--accent); }
.md-content blockquote { margin: 1.1em 0; padding: 10px 16px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--field); color: var(--muted); }
.md-content blockquote p:last-child { margin-bottom: 0; }
.md-code, .md-content pre {
  margin: 1.1em 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1420; /* 两主题一致的深色代码底 */
  color: #d6e2f5;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  overflow-x: auto;
}
.md-content pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.md-inline-code, .md-content code { padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-mono); font-size: .88em; }
.md-img, .md-content img { display: block; max-width: 100%; height: auto; margin: 1.1em auto; border-radius: 12px; border: 1px solid var(--line); }
.md-table-wrap { margin: 1.1em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.md-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.md-table-wrap th, .md-table-wrap td { padding: 9px 13px; text-align: left; border-bottom: 1px solid var(--line); }
.md-table-wrap thead th { background: var(--field); font-weight: 650; white-space: nowrap; }
.md-table-wrap tbody tr:last-child td { border-bottom: 0; }
.md-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.1em 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000; /* 黑底占位, ArtPlayer 挂载 */
  box-shadow: var(--shadow-sm);
}
.md-video iframe, .md-video video, .md-video .artplayer-app { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* 加载前给视频占位一个可感知的播放标识, 避免纯黑块观感 */
.md-video::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(15, 22, 34, .55);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  pointer-events: none;
  z-index: 1;
}
.md-video::after {
  content: '';
  position: absolute;
  left: calc(50% + 3px);
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent rgba(255, 255, 255, .92);
  pointer-events: none;
  z-index: 2;
}
.md-video:has(.artplayer-app) ::before, .md-video:has(.artplayer-app) ::after,
.md-video:has(iframe), .md-video:has(video) { display: none; }
.md-video:has(iframe)::before, .md-video:has(iframe)::after,
.md-video:has(video)::before, .md-video:has(video)::after,
.md-video:has(.artplayer-app)::before, .md-video:has(.artplayer-app)::after { display: none; }

/* ============ 15 · 页脚 ============ */
.site-foot {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: var(--veil);
}
.foot-inner {
  margin: 0 20%;
  padding: 26px 0 36px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.foot-inner p { margin: 0; }
.foot-hitokoto { opacity: .92; }
.foot-inner a { color: var(--muted); }
.foot-inner a:hover { color: var(--accent-ink); }

/* ============ 16 · 友链(首页两栏: 左随机友链 / 右更新区) ============ */
.friend-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.friend-col { display: grid; gap: 12px; min-width: 0; }
.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--glass-brd);
  border-radius: 14px;
  color: var(--fg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.link-item:hover { color: var(--inv-fg); background: var(--inv-bg); border-color: var(--inv-line); }
.link-item img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; border: 1px solid var(--glass-brd); flex: none; }
.link-item b { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.45; }
.link-item p, .link-item span { display: block; margin: 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 17 · 登录页 ============ */
.auth-wrap {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}
.auth-card {
  width: min(420px, 100%);
  padding: 30px 28px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-brd);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  animation: rise .5s var(--ease) backwards;
}
.auth-card h1, .auth-card .page-title { font-size: 22px; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--line);
}
.auth-tabs a, .auth-tabs button {
  flex: 1;
  padding: 8px 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.auth-tabs a:hover, .auth-tabs button:hover { color: var(--fg); }
.auth-tabs a.active, .auth-tabs button.active { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 14px var(--ring); }
.auth-step { display: none; }
.auth-step.active, .auth-step.show { display: block; animation: rise .35s var(--ease) backwards; }
.auth-step .btn { width: 100%; margin-top: 4px; }
.auth-step .msg { margin-bottom: 12px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--accent-ink); }

/* ============ 18 · 用户悬停卡片 ============ */
.u-hover { color: var(--fg); border-bottom: 1px dashed var(--line); cursor: pointer; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.u-hover:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }
.u-pop {
  position: absolute;
  z-index: 70;
  width: 264px;
  padding: 14px 16px;
  background: var(--glass-solid);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--glass-brd);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(6px) scale(.98);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .25s var(--ease), visibility 0s linear .25s;
}
.u-pop.show, .u-pop.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .22s ease, transform .25s var(--ease); }
.u-pop img { float: left; width: 46px; height: 46px; margin: 2px 12px 6px 0; border-radius: 50%; object-fit: cover; border: 1px solid var(--glass-brd); }
.u-pop b, .u-pop strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.u-pop p { margin: 0; color: var(--muted); font-size: 12.5px; }
.u-pop::after { content: ""; display: block; clear: both; }

/* ============ 19 · 音乐播放器 ============ */
/* 右下毛玻璃胶囊 dock */
.music-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 86;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow);
}
.music-dock .music-cover {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--field);
  border: 1px solid var(--glass-brd);
}
.music-dock.playing .music-cover { animation: spin 14s linear infinite; }
.music-dock .music-btn { width: 30px; height: 30px; font-size: 13px; }
.music-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--field);
  color: var(--fg);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.music-btn:hover { color: var(--inv-fg); background: var(--inv-bg); border-color: var(--inv-line); }
.music-btn:active { transform: scale(.98); }
.music-btn.on { background: var(--accent); border-color: transparent; color: var(--on-accent); }
/* 面板: 两态均由 transform 驱动, 自右下平滑移至屏幕中央
   关闭态 = 锚在 dock 上方(右缘 18px / 底距 84px), 缩小隐藏
   .open  = 视口正中, 正常大小 */
.music-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 90;
  width: min(460px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--glass-solid);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow);
  transform: translate(calc(50vw - 50% - 18px), calc(50vh - 50% - 84px)) scale(.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .5s var(--ease), opacity .35s ease, visibility 0s linear .5s;
}
.music-panel.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .5s var(--ease), opacity .3s ease;
}
.music-close { position: absolute; top: 10px; right: 10px; }
.music-panel .music-cover,
.music-now .music-cover {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--field);
  border: 1px solid var(--glass-brd);
  flex: none;
}
.music-now {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.music-now b { display: block; font-size: 15px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-now span { display: block; font-size: 12.5px; color: var(--muted); }
.music-dock.playing .music-now .music-cover { animation: spin 20s linear infinite; }
.music-lyric {
  min-height: 42px;
  max-height: 64px;
  overflow: hidden;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  transition: opacity .3s ease;
}
.music-progress { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.music-progress .bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.music-progress .bar > * { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.music-vol { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
/* range 滑杆(进度/音量通用) */
.music-progress input[type="range"], .music-vol input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 2px; background: var(--line); outline: none; cursor: pointer; }
.music-vol input[type="range"] { flex: none; width: 88px; }
.music-progress input[type="range"]::-webkit-slider-thumb, .music-vol input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: none; box-shadow: 0 0 0 3px var(--ring); transition: transform var(--dur) var(--ease); }
.music-progress input[type="range"]::-webkit-slider-thumb:hover, .music-vol input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.music-progress input[type="range"]::-moz-range-thumb, .music-vol input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: none; box-shadow: 0 0 0 3px var(--ring); }
.music-list { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); max-height: 190px; overflow-y: auto; display: grid; gap: 2px; }
.music-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; font-size: 13px; color: var(--muted); cursor: pointer; transition: all var(--dur) var(--ease); }
.music-list li:hover { background: var(--field); color: var(--fg); }
.music-list li.cur { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.music-search { display: block; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--fg); font-size: 13px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.music-search::placeholder { color: var(--muted); opacity: .8; }
.music-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }

/* ============ 20 · 全局轻提示(DINO.toast) ============ */
#toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; justify-items: center; width: max-content; max-width: 92vw; pointer-events: none; }
.toast {
  pointer-events: auto;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--toast-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  color: var(--fg);
  font-size: 13.5px;
  animation: toast-in .35s var(--ease);
  transition: opacity .3s ease, transform .3s var(--ease);
}
.toast-ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.toast-err { border-color: color-mix(in srgb, var(--err) 45%, transparent); }
.toast-info { border-color: color-mix(in srgb, var(--info) 45%, transparent); }
.toast.hide, .toast.out { opacity: 0; transform: translateY(-8px); }

/* ============ 21 · 响应式(PE ≤ 900px 单列化) ============ */
@media (max-width: 900px) {
  .layout-wrap { margin: 0 7%; padding-top: 20px; }
  .topnav-inner { margin: 0 7%; gap: 10px; }
  .foot-inner { margin: 0 7%; }
  /* 导航: 链接隐藏, 汉堡出现 */
  .topnav-links { display: none; }
  #navBurger { display: inline-flex; }
  /* 文章卡片: 上下结构, 图上 16:9 */
  .article-card { grid-template-columns: 1fr; }
  .ac-img { min-height: 0; aspect-ratio: 16 / 9; }
  .ac-body { padding: 16px 18px 18px; }
  .ac-title { font-size: 17.5px; }
  /* 胶囊: 横向滚动 */
  .capsule-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-left: -2px;
    margin-right: -2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .capsule-row::-webkit-scrollbar { display: none; }
  .capsule { flex: 0 0 auto; }
  /* Hero 缩放 */
  .hero { gap: 16px; padding: 20px; margin-bottom: 20px; }
  .hero-avatar { width: 60px; height: 60px; }
  .hero-name { font-size: 19px; }
  .hero-sign { font-size: 13px; }
  .friend-grid { grid-template-columns: 1fr; }
  .pad { padding: 16px; }
  .page-center { padding: 24px 14px 12px; }
  .page-title { font-size: 22px; }
  .comment-children { margin-left: 16px; padding-left: 10px; }
  .comment-body, .comment-actions { margin-left: 0; }
  .md-content { font-size: 15px; }
  .auth-wrap { padding: 24px 14px; }
  .auth-card { padding: 24px 20px; }
  .music-dock { right: 10px; bottom: 10px; transform: scale(.88); transform-origin: bottom right; max-width: calc(100vw - 76px); }
  .music-panel.open { width: calc(100vw - 20px); max-width: 420px; }
  .u-pop { width: min(264px, calc(100vw - 28px)); }
  body { padding-bottom: 64px; } /* 给右下音乐悬浮条留出空间, 避免遮挡内容 */
}

/* ============ 22 · 降级与偏好 ============ */
/* 强调色派生升级(支持 color-mix 时按注入的 --accent 动态计算) */
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --accent-ink: color-mix(in srgb, var(--accent) 68%, var(--fg, #e9edf5));
    --accent-soft: color-mix(in srgb, var(--accent) 15%, transparent);
    --ring: color-mix(in srgb, var(--accent) 32%, transparent);
  }
}
/* 毛玻璃降级: 无 backdrop-filter 时用半透明实底 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topnav { background: var(--glass-solid); }
  .glass-card, .article-card, .hero, .capsule, .link-item, .drawer, .drawer-mask,
  .music-dock, .music-panel, .auth-card, .u-pop, .toast {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--glass-solid);
  }
  .drawer-mask { background: rgba(4, 7, 13, .7); }
}
/* 减少动效: 关闭入场/悬停/旋转等所有非必要动画 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layout-wrap > *, .auth-card, .auth-step.active, .auth-step.show, .msg, .toast, .empty { animation: none; }
  .btn, .icon-btn, .music-btn, .article-card, .ac-img img, .ac-title, .capsule, .link-item,
  .pagination a, .hero-links a, .tag, .pill, .input, .drawer, .drawer-mask, .drawer-link,
  .drawer-link .arr, .u-pop, .music-panel, .toast, .glass-card {
    transition-duration: 0s;
  }
  .music-dock.playing .music-cover, .music-dock.playing .music-now .music-cover { animation: none; }
}

/* ================================================================
   23 · 页面细节类补全(集成阶段补丁)
   覆盖各页面模块在契约 §7 之外使用的细节类, 全部沿用既有设计系统:
   同一套变量 / 圆角体系 / 动效基调 / 双主题。子分区:
   a 文章页头部  b AI摘要与主视频  c 隐藏内容  d 评论区  e 验证槽
   f 首页(hero内层/个人链接/友链区/胶囊/最新文章)  g 列表页
   h 状态页与关于页  i 友链页  j 用户中心  k 登录页  l 响应式与偏好
   ================================================================ */

/* ---- a · 文章页头部 ---- */
.post-head { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.post-title {
  font-size: 27px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
/* 置顶/草稿预览小徽章(标题内联) */
.ac-pin {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 3px;
  white-space: nowrap;
}
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-cat {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.post-cat:hover { color: var(--inv-fg); background: var(--inv-bg); border-color: var(--inv-line); }
.post-time, .post-views, .post-author { color: var(--muted); }

/* ---- b · AI 摘要徽标 与 主视频挂载点 ---- */
.ai-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.ai-text { margin: 8px 0 0; font-size: 14px; line-height: 1.75; }
/* core.js 对 #post-video 直接挂 ArtPlayer, 给予与 .md-video 相同的 16:9 黑底占位 */
#post-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.1em 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-sm);
}
#post-video iframe, #post-video video, #post-video .artplayer-app { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#post-video:not(:has(.artplayer-app)):not(:has(iframe)):not(:has(video))::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(15, 22, 34, .55);
  border: 1px solid rgba(255, 255, 255, .28);
  pointer-events: none;
  z-index: 1;
}
#post-video:not(:has(.artplayer-app)):not(:has(iframe)):not(:has(video))::after {
  content: '';
  position: absolute;
  left: calc(50% + 3px);
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent rgba(255, 255, 255, .92);
  pointer-events: none;
  z-index: 2;
}

/* ---- c · 隐藏内容(状态类 .unlocked = 已解锁) ---- */
.hidden-title { margin: 0 0 10px; font-size: 17px; }
.hidden-box.unlocked { border-style: solid; border-color: var(--line); background: var(--field); text-align: left; }
.hidden-content { margin-top: 4px; }
.hidden-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }

/* ---- d · 评论区 ---- */
.comments-list { margin-top: 4px; }
.comment-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--glass-brd); flex: none; }
.comment-user { font-size: 14px; font-weight: 650; }
.comment-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.comment-replyto { color: var(--accent-ink); }
.comment-reply { color: var(--muted); font-size: 12.5px; }
.comment-reply:hover { color: var(--accent-ink); }
.comment-form-box { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
/* 回复某条时的提示条(JS 移除内联 display:none 后生效) */
.comment-replying {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
}
.comment-replying a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.comment-form-actions { display: flex; justify-content: flex-end; margin: 0; }
.comments-empty { margin: 6px 0; }
.comments-more { text-align: center; margin: 14px 0 0; }

/* ---- e · 人机验证挂载槽(DINO.captcha 容器) ---- */
.captcha-slot { margin: 12px 0; }
.captcha-slot:empty { display: none; }

/* ---- f · 首页 ---- */
/* 分区标题(随机友链/更新区域/我在这里/最新文章/评论) */
.box-title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; }
/* hero 内层: 头像 + 信息列(hero 自身保留玻璃底) */
.hero-inner { display: flex; align-items: center; gap: 22px; min-width: 0; }
.hero-info { min-width: 0; }
.hero-theme-toggle { width: 30px; height: 30px; font-size: 14px; vertical-align: middle; margin-left: 6px; position: relative; top: -2px; }
/* 个人链接胶囊行 */
.personal-links { margin-bottom: 26px; }
.personal-links-row { display: flex; flex-wrap: wrap; gap: 10px; }
.personal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--fg);
  font-size: 13px;
  transition: all var(--dur) var(--ease);
}
.personal-link:hover { color: var(--inv-fg); background: var(--inv-bg); border-color: var(--inv-line); }
.pl-icon { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--glass-brd); flex: none; }
.pl-icon-text { display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.pl-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 友链区: 左随机 3 个 / 右更新区域 */
.friend-zone { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; margin-bottom: 26px; }
.friend-box { min-width: 0; }
.friend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.friend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--fg);
  transition: all var(--dur) var(--ease);
}
.friend-item:hover { color: var(--inv-fg); background: var(--inv-bg); border-color: var(--inv-line); }
.friend-icon { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; border: 1px solid var(--glass-brd); flex: none; }
.friend-name { font-size: 14px; font-weight: 650; white-space: nowrap; }
.friend-desc, .friend-time {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.friend-apply { margin: 14px 0 0; text-align: center; }
/* 胶囊内部: 标签弱化 / 值强调, 长公告省略 */
.capsule-row .capsule { max-width: min(420px, 88vw); }
.capsule-label { color: var(--muted); font-size: 12px; flex: none; }
.capsule-value { color: var(--fg); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.capsule-notice-link { color: var(--fg); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.capsule-notice-link:hover { color: var(--accent-ink); }
/* 最新文章 */
.home-posts { margin-bottom: 10px; }
.home-more { text-align: center; margin: 22px 0 0; }

/* ---- g · 列表页(全部文章) ---- */
.page-head { margin: 0 0 20px; }
.muted { color: var(--muted); font-weight: 400; font-size: 13px; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.cat-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: 13px;
  transition: all var(--dur) var(--ease);
}
.cat-item:hover { color: var(--inv-fg); background: var(--inv-bg); border-color: var(--inv-line); }
.cat-item.cur { background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 600; }

/* ---- h · 状态页 / 关于页(page-center 窄栏页统一标题层级) ---- */
.page-center h1 { font-size: 26px; font-weight: 750; letter-spacing: -.02em; margin: 0 0 20px; }
.page-center > * { animation: rise .55s var(--ease) backwards; }
.page-center > *:nth-child(2) { animation-delay: .07s; }
.page-center > *:nth-child(3) { animation-delay: .14s; }
.page-center > *:nth-child(4) { animation-delay: .21s; }
.status-page { padding-bottom: 40px; }
.status-card { margin-bottom: 14px; }
.status-card h2 { font-size: 16.5px; margin: 0 0 10px; }
.about-page .glass-card, .uc-page .glass-card { margin-bottom: 16px; }
.about-blogger h2 { font-size: 20px; }

/* ---- i · 友链页 ---- */
.links-page h1 { font-size: 26px; font-weight: 750; letter-spacing: -.02em; margin: 0 0 18px; }
.links-page .friend-grid { margin-bottom: 4px; }
.links-form-card { margin-top: 18px; }
.li-icon { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; border: 1px solid var(--glass-brd); flex: none; }
.li-body { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.li-name { font-size: 14.5px; font-weight: 650; line-height: 1.45; }
.li-desc { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- j · 用户中心 ---- */
.tabs,
.uc-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  overflow-x: auto;
}
.tab {
  flex: 1;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.tab:hover { color: var(--fg); }
.tab.cur { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 14px var(--ring); }
.uc-section { min-width: 0; }
.uc-section > h2 { font-size: 17px; margin: 0 0 12px; }
/* 处罚生效横幅(msg-err 的强化态) */
.uc-ban-banner { margin: 0 0 18px; padding: 14px 16px; border-left: 3px solid var(--err); }
.uc-pun-item { margin-bottom: 14px; }
.uc-pun-item:last-child { margin-bottom: 0; }
.uc-pun-active { border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.uc-pun-mark { margin-left: 8px; color: var(--err); font-size: 13px; }
.uc-appeal-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.uc-appeal-item:last-child { padding-bottom: 0; border-bottom: 0; }
.uc-appeal-item p { margin: 0 0 8px; }
.uc-appeal-item p:last-child { margin-bottom: 0; }

/* ---- k · 登录页(异地验证码步骤) ---- */
.auth-mail { color: var(--fg); font-weight: 600; word-break: break-all; }
.auth-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13px; }
.auth-actions-row a { color: var(--accent-ink); }
.auth-actions-row a[aria-disabled="true"] { color: var(--muted); pointer-events: none; }

/* ---- l · 响应式与偏好(补全段的追加规则) ---- */
@media (max-width: 900px) {
  .friend-zone { grid-template-columns: 1fr; }
  .hero-inner { gap: 16px; }
  .post-title { font-size: 22px; }
  .tabs { scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 1 0 auto; }
  .capsule-row .capsule { max-width: 78vw; }
  .uc-ban-banner { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-center > *, .personal-link, .friend-item, .cat-item, .tab { animation: none; transition-duration: 0s; }
}

/* hidden 属性兜底(置于末尾以覆盖同特异性的 display 规则) */
[hidden] { display: none; }

/* ================================================================
   24 · 悬浮窗（公告/详情）与拟真唱片
   ================================================================ */
/* ---- a · 悬浮窗（DINO.modal，替代原生 alert） ---- */
.dino-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 7, 13, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: dinoModalIn .22s var(--ease);
}
.dino-modal-mask.out { animation: dinoModalOut .22s ease forwards; }
.dino-modal {
  width: min(560px, 100%);
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--glass-solid);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(2, 6, 16, .45);
  overflow: hidden;
}
.dino-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.dino-modal-title { margin: 0; font-size: 17px; flex: 1; min-width: 0; }
.dino-modal-x {
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.dino-modal-x:hover { color: var(--inv-fg); background: var(--inv-bg); border-color: var(--inv-line); }
.dino-modal-body {
  padding: 18px 20px 20px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--fg);
}
.dino-modal-body.plain { white-space: pre-line; }
@keyframes dinoModalIn { from { opacity: 0; } }
@keyframes dinoModalOut { to { opacity: 0; } }

/* ---- b · 拟真唱片（黑胶：细密纹路 + 中心曲目标签 + 轴孔） ----
   结构：<span class="music-vinyl"><img class="music-cover-img"></span> */
.music-vinyl {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      #262b36 0 17%,
      #14171f 17.5% 18.5%,
      #1b1f29 19% 30%,
      #12151d 30.5% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    inset 0 0 22px rgba(0, 0, 0, .55),
    0 6px 18px rgba(0, 0, 0, .45);
}
.music-vinyl::before {
  content: '';
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%,
    rgba(255, 255, 255, .055) 0 1px,
    rgba(255, 255, 255, 0) 1px 4px);
  pointer-events: none;
}
.music-vinyl .music-cover-img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 46%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 0 0 6px rgba(0, 0, 0, .35);
}
.music-vinyl::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7%;
  height: 7%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bg, #0a0e16);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8);
  z-index: 2;
}
.music-vinyl.spinning { animation: dinoSpin 6s linear infinite; }
.music-vinyl.spinning.paused { animation-play-state: paused; }
@keyframes dinoSpin { to { transform: rotate(360deg); } }
.music-vinyl:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 0 22px rgba(0, 0, 0, .5), 0 6px 22px rgba(0, 0, 0, .5); }

@media (prefers-reduced-motion: reduce) {
  .music-vinyl.spinning { animation: none; }
}

/* ---- 唱片与 music.js 整合：尺寸适配 + 留声机式旋转（播放转、暂停停） ---- */
.music-dock .music-vinyl { width: 45px; height: 45px; flex: none; }
.music-dock.min .music-vinyl { width: 50px; height: 50px; }
.music-dock.min .music-vinyl .music-cover-img { width: 52%; height: 52%; }
.music-vinyl-lg { width: 64px; height: 64px; flex: none; }
#music-root .music-vinyl { animation: dinoSpin 6s linear infinite; animation-play-state: paused; }
#music-root:has(.music-dock.playing) .music-vinyl { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
  #music-root .music-vinyl { animation: none; }
}

/* ---- c · 行内隐私块（:::hidden 标记） ---- */
.hidden-box.hidden-box-inline { margin: 1.2em 0; }
.md-hidden-open {
  margin: 1.2em 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--field);
}
.md-hidden-open-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 700;
}
.md-hidden-open .md-content, .md-hidden-open p, .md-hidden-open ul, .md-hidden-open ol { margin: 0 0 .5em; color: var(--fg); }
