.article { margin-bottom: 16px; }

/* article-header 已移除，标题和 meta 直接平铺 */
.article-title {
  font-size: 26px; font-weight: 800; color: var(--text);
  line-height: 1.45; margin-top: 8px; margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-meta-item {
  font-size: 12px; color: var(--text-light);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.article-meta-item i { font-size: 11px; opacity: 0.7; }

.article-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px; margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.article-tags a {
  display: inline-block; padding: 4px 14px; font-size: 12px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--radius-pill); text-decoration: none; transition: all .15s;
}
.article-tags a:hover { background: var(--accent); color: #fff; box-shadow: 0 2px 8px var(--accent-glow); }

/* ── 文章页作者栏 ── */
.article-author-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.article-author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.article-author-name {
  font-size: 14px; font-weight: 600; color: var(--text);
}

.article-content {
  font-size: 16px; line-height: 1.9; color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  letter-spacing: 0.01em;
  padding-top: 4px;
}
.article-content p { margin-bottom: 16px; }
.article-content .photo-grid p { margin: 0; }
.article-content > img, .article-content p img {
  max-width: 100%; border-radius: var(--radius-sm); margin: 20px 0; cursor: pointer;
  display: block;
}

/* ═══ 标题层级 ═══ */
.article-content h2 {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin: 28px 0 12px; padding: 0;
  position: relative; line-height: 1.45;
  letter-spacing: -0.01em;
  display: inline-block;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat;
  background-size: 100% 2px;
  background-position: bottom;
  padding-bottom: 6px;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 18px; font-weight: 600; color: var(--text);
  margin: 24px 0 10px; padding: 6px 0 6px 16px;
  position: relative; line-height: 1.5;
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 100%);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.article-content h3::before {
  content: '';
  position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 2px;
  background: var(--accent);
}
.article-content h4 {
  font-size: 16px; font-weight: 600; color: var(--text-secondary);
  margin: 20px 0 8px;
}
/* 代码块 */
.article-content pre {
  background: var(--accent-soft);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0; margin: 16px 0;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.article-content pre::before {
  content: ''; display: block;
  height: 38px;
  background: rgba(0,0,0,0.03);
  border-bottom: 1px solid var(--glass-border);
  background-image: radial-gradient(circle, #ef4444 5px, transparent 5px),
                    radial-gradient(circle, #eab308 5px, transparent 5px),
                    radial-gradient(circle, #22c55e 5px, transparent 5px);
  background-size: 12px 12px;
  background-position: 16px center, 32px center, 48px center;
  background-repeat: no-repeat;
}
html.dark .article-content pre::before {
  background-color: rgba(255,255,255,0.04);
  border-bottom-color: rgba(255,255,255,0.06);
}
.article-content pre code {
  display: block; padding: 18px 22px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.75;
  color: var(--text-secondary);
}
.article-content pre code .hljs-keyword,
.article-content pre code .hljs-attr,
.article-content pre code .hljs-tag { color: var(--accent); }
.article-content pre code .hljs-string,
.article-content pre code .hljs-value { color: #059669; }
html.dark .article-content pre {
  background: var(--accent-soft);
  border-color: var(--glass-border);
}
.article-content code { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 13.5px; }
.article-content :not(pre) > code {
  background: var(--accent-soft); color: var(--accent);
  padding: 2px 7px; border-radius: var(--radius-xs); font-size: 0.88em;
  font-weight: 500;
  border: 1px solid rgba(99,102,241,0.12);
}
/* 引用块 */
.article-content blockquote {
  border-left: none; padding: 18px 20px 18px 40px;
  margin: 16px 0;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  position: relative; overflow: hidden;
  border: 1px solid var(--glass-border);
  font-size: 15px; line-height: 1.8;
}
.article-content blockquote::before {
  content: '\201C';
  position: absolute; top: 4px; left: 10px;
  font-size: 42px; font-family: Georgia, serif;
  color: var(--accent); opacity: 0.3;
  line-height: 1;
}
.article-content blockquote p { margin-bottom: 8px; }
.article-content blockquote p:last-child { margin-bottom: 0; }

/* 列表 */
.article-content ul, .article-content ol { padding-left: 28px; margin-bottom: 16px; }
.article-content ul { list-style: none; }
.article-content ul > li { position: relative; padding-left: 4px; margin-bottom: 8px; line-height: 1.8; }
.article-content ul > li::before {
  content: ''; position: absolute; left: -20px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: 0.6;
}
.article-content ol { list-style: none; counter-reset: list-counter; }
.article-content ol > li { position: relative; padding-left: 4px; margin-bottom: 8px; counter-increment: list-counter; }
.article-content ol > li::before {
  content: counter(list-counter);
  position: absolute; left: -26px;
  top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 600;
  text-align: center; line-height: 18px;
}
.article-content li { margin-bottom: 8px; line-height: 1.8; }
.article-content li ul, .article-content li ol { margin-top: 8px; margin-bottom: 4px; }
.article-content a {
  color: var(--accent); text-decoration: none;
  background: linear-gradient(to right, var(--accent), var(--accent)) no-repeat;
  background-size: 0% 1.5px;
  background-position: left bottom;
  transition: background-size .3s ease, color .2s;
  padding-bottom: 2px;
  font-weight: 500;
}
.article-content a:hover {
  background-size: 100% 1.5px;
  color: var(--accent-hover);
}
/* 表格 */
.article-content .table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.article-content .table-wrap::-webkit-scrollbar { height: 4px; }
.article-content .table-wrap::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 2px; }
.article-content .table-wrap::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); }
/* 表格可横向滚动时的边缘渐隐提示 */
.article-content .table-wrap.fade-right {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
.article-content .table-wrap.fade-left {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 28px);
  mask-image: linear-gradient(to right, transparent, #000 28px);
}
.article-content .table-wrap.fade-left.fade-right {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.article-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-content th, .article-content td { padding: 11px 16px; border: 1px solid var(--border); text-align: left; }
.article-content th {
  background: linear-gradient(135deg, var(--accent-soft), var(--glass-bg));
  font-weight: 600; color: var(--accent);
  font-size: 13px; letter-spacing: 0.3px;
}
.article-content tr:nth-child(even) { background: rgba(0,0,0,0.015); }
html.dark .article-content tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.article-content tr:hover { background: var(--accent-soft); }

/* 分割线 */
.article-content hr {
  border: none; margin: 24px auto;
  width: 60%; height: 1px;
  background: linear-gradient(to right, transparent, var(--border), var(--accent-soft), var(--border), transparent);
}

.photo-grid {
  display: grid !important; gap: 4px; border-radius: var(--radius-sm);
  overflow: hidden; margin: 20px 0; padding: 0;
}
.photo-grid.g1 { grid-template-columns: 1fr; max-width: 500px; }
.photo-grid.g2 { grid-template-columns: 1fr 1fr; }
.photo-grid.g3 { grid-template-columns: 1fr 1fr 1fr; }
.photo-grid.g4 { grid-template-columns: 1fr 1fr; }
.photo-grid.g5, .photo-grid.g6 { grid-template-columns: 1fr 1fr 1fr; }
.photo-grid.g7, .photo-grid.g8, .photo-grid.g9 { grid-template-columns: 1fr 1fr 1fr; }
.photo-item {
  aspect-ratio: 1 !important; overflow: hidden; cursor: pointer;
  background: rgba(0,0,0,0.03); position: relative;
  margin: 0 !important; padding: 0;
  opacity: 0; transform: translateY(16px);
}
.photo-item.card-visible {
  animation: cardFadeIn 0.4s ease both;
}
.photo-item img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; display: block;
  margin: 0 !important; border-radius: 0 !important;
  transition: transform .3s;
}
.photo-single { margin: 20px 0; cursor: pointer; }
.photo-single img { width: 100%; border-radius: var(--radius-sm); margin: 0; }

/* ── 代码块复制按钮 ── */
.code-copy-btn {
  position: absolute; top: 7px; right: 10px;
  width: 24px; height: 24px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-xs); color: var(--text-light);
  cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s, transform .3s var(--spring); z-index: 2; opacity: 0;
}
.article-content pre:hover .code-copy-btn { opacity: 1; }
.code-copy-btn:hover { background: var(--glass-bg-strong); color: var(--text); }
.code-copy-btn.copied { background: rgba(34,197,94,0.12); color: #22c55e; border-color: rgba(34,197,94,0.25); }
.article-content pre { position: relative; }

/* ── 图片悬停背景 ── */
.img-cell:hover, .photo-item:hover, .album-cover:hover {
  background: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.06));
}
/* 图片悬停轻微缩放（仅鼠标设备，避免触屏粘滞） */
@media (hover: hover) and (pointer: fine) {
  .img-grid .img-cell:hover img,
  .photo-item:hover img { transform: scale(1.03); }
}
html.dark .img-cell, html.dark .photo-item, html.dark .album-cover {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.06));
}

/* ── 404 页面 ── */
.error-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; text-align: center; padding: 40px 20px;
}
.error-code {
  font-size: 120px; font-weight: 800; color: var(--accent); opacity: 0.15;
  line-height: 1; margin-bottom: -20px; letter-spacing: -4px;
}
.error-title {
  font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 10px;
}
.error-desc {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; max-width: 360px; line-height: 1.7;
}
.error-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff; font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all .2s, transform .3s var(--spring);
  box-shadow: 0 2px 12px var(--accent-glow);
}
.error-btn:hover { box-shadow: 0 4px 20px var(--accent-glow); }

/* ── 图片说明文字 ── */
.article-content figcaption {
  text-align: center; font-size: 13px; color: var(--text-light);
  margin-top: -12px; margin-bottom: 20px; padding: 0 8px;
}
.article-content figure { margin: 20px 0; }
.article-content figure img { margin: 0; }



/* ── 留言板分隔线 ── */
.pg-leaderboard + #comments {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── 搜索关键词高亮 ── */
.search-highlight { background: var(--accent-soft); color: var(--accent); padding: 1px 3px; border-radius: 3px; font-weight: 500; }



/* 翻页：胶囊轨道式 */
.pagination {
  display: flex; justify-content: center; align-items: center;
  padding: 28px 0 20px;
}
.pagination :is(ol, ul) {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  gap: 2px; row-gap: 4px;
  padding: 4px; margin: 0;
  list-style: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: var(--shadow-sm);
}
.pagination li { list-style: none; display: inline-flex; }
.pagination .prev, .pagination .next { display: none; }

.pagination a,
.pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 6px;
  border-radius: 50%; font-size: 13px; font-weight: 500; text-decoration: none;
  color: var(--text-secondary); user-select: none;
  transition: color .2s, background .2s, box-shadow .25s, transform .35s var(--spring);
}
/* 悬停只在鼠标设备生效，触屏避免 :hover 粘住 */
@media (hover: hover) and (pointer: fine) {
  .pagination a:hover {
    color: var(--accent); background: var(--accent-soft);
    transform: scale(1.03);
  }
}
.pagination a:active { transform: scale(0.95); }
/* 当前页（Typecho 输出为 li.current > span，同时兼容 class 在 a/span 上的情况） */
.pagination li.current span,
.pagination li.current a,
.pagination a.current,
.pagination span.current {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px var(--accent-glow);
  cursor: default;
}
/* 省略号不做成按钮 */
.pagination .dots,
.pagination li.dots span {
  color: var(--text-light); font-size: 12px;
  background: none;
  min-width: 16px; width: 16px; padding: 0;
  box-shadow: none;
}


.article-title-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.article-title-row .article-title { margin-bottom: 0; flex: 1; min-width: 0; }
.toc-inline-btn {
  flex-shrink: 0; width: 30px; height: 30px;
  border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--glass-bg); color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: all .2s, transform .3s var(--spring);
}
.toc-inline-btn:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}
.toc-inline-btn.active {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}
.toc-wrap {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  margin-bottom: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, padding .35s ease, margin .35s ease, opacity .25s ease;
}
.toc-wrap.open {
  max-height: 500px;
  padding: 10px 14px;
  margin-bottom: 16px;
  opacity: 1;
}
.toc-list {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 8px;
}
.toc-item {
  font-size: 12px; color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: color .15s, background .15s;
  line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 200px;
}
.toc-item:hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
}
html.dark .toc-item:hover {
  background: rgba(255,255,255,0.04);
}
.toc-item.active {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}
.toc-item.toc-h3 {
  font-size: 11px;
  opacity: 0.85;
}

/* ── 评论区 (v2) ── */
/* ══════════════════════════════════════
   评论区 - 全新紧凑设计
   ══════════════════════════════════════ */

.cmt-section { margin-top: 24px; }
.cmt-section-head { margin-bottom: 16px; }
.cmt-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.cmt-title i { color: var(--accent); font-size: 14px; }

.cmt-list { list-style: none; padding: 0; margin: 0; }
.cmt-item { list-style: none; }
.cmt-is-child { margin-left: 0; }

/* ── 主评论卡片 ── */
.cmt-card {
  display: flex; gap: 10px;
  padding: 12px 14px;
  align-items: flex-start;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  margin-bottom: 8px;
  transition: background .2s;
}
.cmt-card:hover { background: var(--glass-bg-strong); }
.cmt-list > .cmt-item:last-child > .cmt-children:last-child .cmt-card:last-child { margin-bottom: 0; }
.cmt-list > .cmt-item:last-child > .cmt-card:last-child { margin-bottom: 0; }

/* 子评论 - 紧凑内联 */
.cmt-is-child .cmt-card {
  padding: 8px 12px;
  border: none;
  background: transparent;
  margin-bottom: 4px;
  gap: 8px;
}
.cmt-is-child .cmt-card:hover { background: transparent; }

.cmt-avatar-col { flex-shrink: 0; }
.cmt-avatar {
  width: 32px; height: 32px;
  border-radius: 50%; object-fit: cover;
  display: block; background: var(--glass-bg);
}
.cmt-is-child .cmt-avatar { width: 22px; height: 22px; }

.cmt-body { flex: 1; min-width: 0; }

/* 头部：名字 + 标签 + 时间 一行 */
.cmt-header {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.cmt-user { display: inline-flex; align-items: center; gap: 5px; }
.cmt-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  line-height: 1.2;
}
.cmt-is-child .cmt-name { font-size: 12px; }
.cmt-is-child .cmt-name::before {
  content: '\f3e5';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 9px;
  color: var(--text-light);
  margin-right: 3px;
  opacity: 0.5;
}
.cmt-name a { color: var(--text); text-decoration: none; transition: color .15s; }
.cmt-name a:hover { color: var(--accent); }

.cmt-tag {
  display: inline-block;
  padding: 0 5px; font-size: 10px; font-weight: 600;
  border-radius: 3px; line-height: 1.6;
}
.cmt-tag-admin { background: var(--accent-soft); color: var(--accent); }
.cmt-tag-friend { background: rgba(245,158,11,0.1); color: #D97706; }
html.dark .cmt-tag-friend { background: rgba(251,191,36,0.12); color: #FBBF24; }
.cmt-tag-lv { background: rgba(16,185,129,0.08); color: #059669; }

.cmt-time {
  font-size: 11px; color: var(--text-light);
  margin-left: auto;
  flex-shrink: 0;
}
.cmt-is-child .cmt-time { font-size: 10px; margin-left: 0; }

/* ── 评论正文 ── */
.cmt-text {
  font-size: 13px; line-height: 1.65;
  color: var(--text);
  margin-bottom: 4px;
  word-break: break-word; overflow-wrap: break-word;
}
.cmt-is-child .cmt-text {
  font-size: 13px; line-height: 1.65;
  margin-bottom: 4px;
  color: var(--text-secondary);
}
.cmt-text a { color: var(--accent); text-decoration: none; }
.cmt-text a:hover { text-decoration: underline; }
.cmt-text img { max-width: 100%; height: auto; border-radius: var(--radius-xs); margin: 4px 0; }
.cmt-text p { margin: 0 0 6px; }
.cmt-text p:last-child { margin-bottom: 0; }
.cmt-text code {
  background: rgba(99,102,241,0.06); padding: 1px 5px; border-radius: 3px;
  font-size: 12px; font-family: 'SF Mono', Monaco, Consolas, monospace;
}
html.dark .cmt-text code { background: rgba(129,140,248,0.1); }
.cmt-text pre {
  background: rgba(99,102,241,0.04); padding: 10px 12px; border-radius: var(--radius-xs);
  overflow-x: auto; margin: 6px 0; font-size: 12px;
  line-height: 1.6; font-family: 'SF Mono', Monaco, Consolas, monospace;
}
html.dark .cmt-text pre { background: rgba(129,140,248,0.08); }
.cmt-text pre code { background: none; padding: 0; }
.cmt-text blockquote {
  margin: 6px 0; padding: 6px 12px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  color: var(--text-secondary); font-size: 12px;
}

/* ── 操作栏 ── */
.cmt-actions {
  display: flex; align-items: center; gap: 8px;
}
.cmt-reply-btn {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; color: var(--text-light);
  padding: 1px 6px; border-radius: 3px;
  transition: all .2s; cursor: pointer;
  text-decoration: none;
}
.cmt-reply-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.cmt-reply-btn i { font-size: 10px; }
.cmt-device {
  font-size: 10px; color: var(--text-light); opacity: 0.4;
  display: inline-flex; align-items: center; gap: 3px;
}
.cmt-device i { font-size: 9px; }

.cmt-children {
  padding: 0 0 0 28px;
  margin: 4px 0 0 0;
  border: none;
  overflow: hidden;
}
.cmt-children .cmt-children {
  padding-left: 0;
}

.cmt-empty {
  text-align: center; padding: 40px 20px;
  color: var(--text-light);
}
.cmt-empty i { font-size: 32px; display: block; margin-bottom: 10px; opacity: .4; }
.cmt-empty p { font-size: 13px; }

/* ── 回复提示条 ── */
.cmt-reply-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  margin-bottom: 8px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 12px; color: var(--accent); font-weight: 500;
}
.cmt-reply-bar > i:first-child {
  font-size: 12px; opacity: .6;
  transform: scaleX(-1);
}
.cmt-reply-bar strong {
  color: var(--text);
  font-weight: 600;
}
.cmt-cancel-btn {
  margin-left: auto; background: none; border: none;
  color: var(--text-light); cursor: pointer;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 10px;
  transition: all .2s;
}
.cmt-cancel-btn:hover { background: rgba(0,0,0,0.08); color: var(--text); }
html.dark .cmt-cancel-btn:hover { background: rgba(255,255,255,0.1); }

/* ── 评论表单 - 全新设计 ── */
.cmt-form-area {
  margin-bottom: 20px;
  position: relative;
}
.cmt-form {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.cmt-form::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: var(--glass-highlight); z-index: 0;
}
.cmt-form > * { position: relative; z-index: 1; }

/* 已登录状态 */
.cmt-logged {
  padding: 10px 16px;
  font-size: 12px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.cmt-logged strong { color: var(--text); }
.cmt-logged a { color: var(--accent); margin-left: 6px; font-size: 11px; text-decoration: none; }
.cmt-logged a:hover { text-decoration: underline; }

/* 输入框区域 */
.cmt-fields {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
}
.cmt-fields input {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border: none; border-right: 1px solid var(--border);
  background: transparent; color: var(--text);
  font-size: 13px; outline: none;
  font-family: inherit;
  transition: background .2s;
}
.cmt-fields input:last-child { border-right: none; }
.cmt-fields input:focus { background: transparent; }
.cmt-fields input::placeholder { color: var(--text-light); }

/* 文本域 */
.cmt-textarea-wrap textarea {
  width: 100%; padding: 12px 16px;
  border: none; background: transparent;
  color: var(--text); font-size: 13px;
  outline: none; resize: vertical;
  min-height: 80px; line-height: 1.7;
  font-family: inherit;
  transition: background .2s;
}
.cmt-textarea-wrap textarea:focus { background: transparent; }
.cmt-textarea-wrap textarea::placeholder { color: var(--text-light); }

/* 底部操作栏 */
.cmt-form-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px;
  border-top: 1px solid var(--border);
  background: transparent;
}
.cmt-form-left {
  display: flex; align-items: center; gap: 2px;
}
.cmt-emoji-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  color: var(--text-light); font-size: 14px;
  border-radius: 50%; cursor: pointer;
  transition: all .2s, transform .3s var(--spring);
}
.cmt-emoji-btn:hover { color: var(--accent); background: var(--accent-soft); }
.cmt-hint { font-size: 10px; color: var(--text-light); opacity: 0.6; }
.cmt-submit {
  padding: 6px 18px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .2s, transform .3s var(--spring);
}
.cmt-submit:hover { background: var(--accent-hover); }
.cmt-submit:active { transform: scale(0.97); }
.cmt-submit:disabled { opacity: .6; cursor: not-allowed; }

.cmt-closed { text-align: center; color: var(--text-light); padding: 24px; font-size: 14px; }
.cmt-closed i { margin-right: 6px; }

/* ── Emoji 面板 ── */
.cmt-emoji-panel {
  display: none; flex-wrap: wrap; gap: 2px;
  padding: 10px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  max-width: 300px;
  position: absolute;
  bottom: 60px;
  left: 12px;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
html.dark .cmt-emoji-panel { box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.cmt-emoji-item {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; cursor: pointer; border-radius: var(--radius-xs);
  transition: all .12s, transform .3s var(--spring);
}
.cmt-emoji-item:hover {
  background: var(--accent-soft);
}

/* Toast */
.toast-notification {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  padding: 16px 28px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--text);
  z-index: 10000; opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.toast-notification::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: var(--glass-highlight); z-index: 0;
}
.toast-notification i, .toast-notification span { position: relative; z-index: 1; }
.toast-show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast-success i { color: #10b981; font-size: 18px; }
.toast-error i { color: #ef4444; font-size: 18px; }



@media (max-width: 920px) {
  .page { width: 100%; padding: 0; border-radius: 0; }
  .shell { border-radius: 0; }
  .content-inner { border-left: none; }
  .orb { filter: blur(40px); opacity: 0.15; }
  .bottom-bar { display: none; }

  /* iOS 26 风格底部悬浮导航栏 */
  .mobile-tabbar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    height: 52px;
    z-index: 180;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    box-shadow: var(--shadow-md);
    padding: 0 6px;
    animation: tabbarEnter .45s cubic-bezier(.4,0,.2,1) both;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .mobile-tabbar::-webkit-scrollbar { display: none; }
  .mobile-tabbar::before {
    content: ''; position: absolute; inset: 0;
    border-radius: inherit; pointer-events: none;
    background: var(--glass-highlight);
  }
  .mobile-tabbar > * { position: relative; z-index: 1; }
  @keyframes tabbarEnter {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  html.dark .mobile-tabbar {
    background: var(--glass-bg-strong);
    border-color: var(--glass-border);
    box-shadow: var(--shadow-md);
  }
  .mtab {
    flex: 1 0 auto;
    min-width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    padding: 4px 0;
    border-radius: 18px;
    transition: color .2s, background .2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .mtab i {
    font-size: 18px;
    line-height: 1;
    transition: transform .25s ease;
  }
  .mtab span {
    font-size: 10px;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
  }
  .mtab.active {
    color: var(--accent);
  }
  .mtab.active i {
    transform: translateY(-1px) scale(1.08);
  }
  .mtab:active { transform: scale(0.92); }

  .hamburger { display: none !important; }
  .topbar { justify-content: space-between; }
  .topbar-center { position: static; transform: none; max-width: none; flex: 1; justify-content: flex-start; }

  /* 移动端：顶栏信息按钮显示，圆圈描边样式与返回顶部一致 */
  .topbar-btn.info-btn {
    display: flex;
    border: 2.5px solid var(--border);
    box-sizing: border-box;
  }
  /* 内容区底部给 TabBar 留空间（见下方 .content-scroll padding 简写） */

  /* 移动端不再使用侧滑抽屉，导航收进底部 TabBar */
  .sidebar, .sidebar-overlay, .hamburger { display: none !important; }

  .sidebar-mobile-header {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 14px 18px;
    min-height: 48px; position: relative;
  }
  .sidebar-close {
    display: flex; position: relative; top: auto; right: auto;
    width: 32px; height: 32px; border: none; background: rgba(0,0,0,0.06);
    border-radius: 50%; cursor: pointer; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 14px; transition: all .15s;
  }
  .sidebar-close:hover { background: rgba(0,0,0,0.12); color: var(--text); }
  html.dark .sidebar-close { background: rgba(255,255,255,0.08); }
  html.dark .sidebar-close:hover { background: rgba(255,255,255,0.15); }

  .sidebar-footer {
    display: flex; align-items: center; gap: 8px;
    margin-top: auto; padding: 14px 20px;
    font-size: 11px; color: var(--text-light);
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
  }
  .sidebar-footer a { color: var(--text-secondary); text-decoration: none; }
  .sidebar-footer a:hover { color: var(--accent); }
  .sidebar-footer .dot {
    width: 3px; height: 3px; flex-shrink: 0;
    border-radius: 50%; background: var(--text-light);
  }

  .topbar { height: 56px; min-height: 56px; padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
  .topbar-center { display: flex; position: absolute; left: 50%; transform: translateX(-50%); align-items: center; gap: 8px; max-width: calc(100% - 200px); justify-content: center; }
  .topbar-center i, .topbar-search { display: none !important; }
  .topbar-center .m-brand-icon, .topbar-center .m-brand-name { display: flex !important; }
  .topbar-center .m-brand-logo-img { display: block !important; height: 28px; width: auto; border-radius: var(--radius-xs); }
  .topbar-center .m-brand-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius-sm);
    align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 700;
  }
  .topbar-center .m-brand-name { font-size: 15px; font-weight: 700; color: var(--text); }
  .hamburger { flex-shrink: 0; }
  .topbar-spacer { display: none; }
  .topbar-actions { flex-shrink: 0; margin-left: auto; }

  .mobile-search {
    display: flex; align-items: center; margin-bottom: 12px;
    position: relative; background: var(--glass-bg);
    border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
    padding: 0 14px; height: 38px; gap: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: all .25s;
  }
  .mobile-search:focus-within {
    border-color: var(--accent);
    background: rgba(255,255,255,0.7);
    box-shadow: 0 2px 12px var(--accent-glow);
  }
  html.dark .mobile-search {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
  }
  html.dark .mobile-search:focus-within {
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 2px 12px var(--accent-glow);
  }
  .mobile-search i {
    color: var(--text-light); font-size: 13px; flex-shrink: 0;
    pointer-events: none;
  }
  .mobile-search input {
    flex: 1; border: none; background: transparent;
    font-size: 13px; color: var(--text); outline: none;
    height: 100%;
  }
  .mobile-search input::placeholder { color: var(--text-secondary); }
  .topbar-brand .brand-name { display: none; }
  .topbar-brand .brand-icon { display: none; }
  .topbar-brand { display: none; }

  .content-scroll {
    padding: 4px max(14px, env(safe-area-inset-right)) calc(84px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    scrollbar-width: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* 输入框 ≥16px 防止 iOS 聚焦自动缩放 */
  .mobile-search input, .cmt-textarea-wrap textarea { font-size: 16px; }
  .content-scroll::-webkit-scrollbar { display: none; }
  .sidebar { scrollbar-width: none; }
  .sidebar::-webkit-scrollbar { display: none; }
  .content-tabs { display: flex; gap: 4px; margin-bottom: 12px; padding-bottom: 10px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .content-tabs::-webkit-scrollbar { display: none; }
  .content-tab { flex-shrink: 0; font-size: 13px; }

  .post-card { padding: 16px; margin-bottom: 10px; }
  .post-card-simple { padding: 16px; gap: 12px; margin-bottom: 10px; }
  .sticky-wrap { grid-template-columns: 1fr !important; }

  .pcs-title { font-size: 15px; }
  .pcs-excerpt { font-size: 12px; margin-bottom: 8px; }

  .post-avatar { width: 38px; height: 38px; }
  .post-nickname { font-size: 14px; }
  .post-content { font-size: 14px; line-height: 1.75; margin-bottom: 12px; }
  .post-actions { padding-top: 8px; gap: 4px; }
  .action-btn { font-size: 11px; gap: 4px; padding: 4px 8px; }
  .action-btn i { font-size: 12px; }
  .action-btn .action-count { font-size: 11px; }

  .img-grid.g1, .img-grid.g2, .img-grid.g4 { max-width: 100%; }
  .img-grid.g3 { max-width: 100%; grid-template-columns: 1fr 1fr 1fr; }
  .img-grid.g3 .img-cell:first-child { grid-column: auto; aspect-ratio: 1; }
  .img-grid.g5, .img-grid.g6, .img-grid.g7, .img-grid.g8, .img-grid.g9 { max-width: 100%; }

  .hitokoto-banner { padding: 12px 14px; margin-bottom: 12px; }
  .hitokoto-text { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

  .toast-notification { max-width: calc(100vw - 48px); padding: 12px 20px; font-size: 13px; box-sizing: border-box; }




  .bottom-bar { height: 36px; min-height: 36px; gap: 10px; font-size: 10px; }



  .friends-feed { grid-template-columns: 1fr; }

  .article-title { font-size: 21px; line-height: 1.45; }
  .article-meta { gap: 4px; flex-wrap: wrap; }
  .article-meta-item { font-size: 10px; white-space: nowrap; }
  .article-content { font-size: 15px; line-height: 1.9; }
  .article-content h2 { font-size: 19px; margin: 32px 0 14px; }
  .article-content h3 { font-size: 17px; margin: 26px 0 12px; }
  .article-content h4 { font-size: 15px; margin: 22px 0 10px; }
  .photo-grid.g3 { grid-template-columns: 1fr 1fr; }
  .photo-grid.g3 .photo-item:first-child { grid-column: 1 / -1; aspect-ratio: 2/1; }
  .photo-grid.g5, .photo-grid.g6 { grid-template-columns: 1fr 1fr; }

  .cmt-children { padding-left: 20px; margin-top: 4px; }
  .cmt-children .cmt-children { padding-left: 0; }

  html.dark .sidebar {
    background: rgba(17,18,23,0.92);
  }
}

/* ── 文章内容瀑布流动画 ── */
@keyframes waterfallIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.article-content > p,
.article-content > h2,
.article-content > h3,
.article-content > h4,
.article-content > blockquote,
.article-content > pre,
.article-content > ul,
.article-content > ol,
.article-content > figure,
.article-content > img,
.article-content > .table-wrap,
.article-content > hr {
  opacity: 0;
  animation: waterfallIn 0.45s ease forwards;
}
.article-content > *:nth-child(1)  { animation-delay: 0s; }
.article-content > *:nth-child(2)  { animation-delay: 0.04s; }
.article-content > *:nth-child(3)  { animation-delay: 0.08s; }
.article-content > *:nth-child(4)  { animation-delay: 0.12s; }
.article-content > *:nth-child(5)  { animation-delay: 0.16s; }
.article-content > *:nth-child(6)  { animation-delay: 0.20s; }
.article-content > *:nth-child(7)  { animation-delay: 0.24s; }
.article-content > *:nth-child(8)  { animation-delay: 0.28s; }
.article-content > *:nth-child(9)  { animation-delay: 0.32s; }
.article-content > *:nth-child(10) { animation-delay: 0.36s; }
.article-content > *:nth-child(11) { animation-delay: 0.40s; }
.article-content > *:nth-child(12) { animation-delay: 0.44s; }
.article-content > *:nth-child(n+13) { animation-delay: 0.48s; }

@media (max-width: 380px) {
  .topbar-center { margin: 0 4px; }
  .topbar-actions { gap: 2px; }
  .topbar-btn { width: 30px; height: 30px; font-size: 13px; }
  #themeToggle { width: 27px; height: 27px; }
  .scroll-progress-btn .scroll-progress-ring { width: 30px; height: 30px; }
  .scroll-progress-btn .scroll-progress-text { font-size: 8px; }
  .content-tabs { gap: 4px; }
  .article-meta-item { font-size: 9px; }
  .article-meta-item i { font-size: 9px; }
}

/* Article content: responsive tables */
.article-content .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.article-content .table-wrap table { margin: 0; border: none; min-width: auto; }
/* Article content: image max height */
.article-content > img, .article-content p img { max-height: none; object-fit: contain; }
/* Heading scroll margin */
.article-content h2[id], .article-content h3[id] { scroll-margin-top: 20px; }
/* Standalone page responsive images */
.standalone-page .article-content img { max-width: 100%; height: auto; }
/* Better mobile comments */
@media (max-width: 480px) {
  .cmt-textarea-wrap textarea { min-height: 70px; font-size: 16px; padding: 10px 12px; }
  .cmt-hint { display: none; }
  .cmt-submit { padding: 8px 16px; font-size: 13px; }
}
/* Like button */
.like-wrap { display: flex; justify-content: center; padding: 24px 0; margin: 8px 0; }
.like-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-radius: var(--radius-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  cursor: pointer; transition: all .3s;
  font-size: 14px; color: var(--text-secondary);
  position: relative; overflow: visible;
}
.like-btn i { font-size: 18px; transition: all .3s; }
.like-btn:hover { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); color: #ef4444; }
.like-btn:hover i { color: #ef4444; transform: scale(1.15); }
.like-btn.liked { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #ef4444; }
.like-btn.liked i { color: #ef4444; }
.like-count { font-size: 13px; color: var(--text-light); padding-left: 8px; border-left: 1px solid var(--border); }
.like-btn.animating i { animation: likeHeart 0.5s ease; }
.like-btn.animating .like-float-heart {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-size: 20px; color: #ef4444; pointer-events: none;
  animation: likeFloat 0.8s ease forwards;
}
@keyframes likeHeart { 0% { transform: scale(1); } 25% { transform: scale(1.3); } 50% { transform: scale(0.9); } 100% { transform: scale(1); } }
@keyframes likeFloat { 0% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(-40px); } }



/* ══════════════════════════════════════
   相册移动端（≤400px 单列）
   ══════════════════════════════════════ */
@media (max-width: 400px) {
  .album-grid { flex-direction: column; }
}

/* ══════════════════════════════════════
   404 搜索框 + 返回按钮
   ══════════════════════════════════════ */
.error-search {
  display: flex; align-items: center;
  max-width: 320px; width: 100%; margin: 16px auto 20px;
  position: relative; background: var(--glass-bg);
  border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
  padding: 0 16px; height: 40px; gap: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all .25s;
}
.error-search:focus-within {
  border-color: rgba(99,102,241,0.4);
  background: var(--glass-bg-strong);
  box-shadow: 0 2px 12px rgba(99,102,241,0.1);
}
.error-search i {
  color: var(--text-light); font-size: 13px; flex-shrink: 0;
}
.error-search input {
  flex: 1; border: none; background: transparent;
  font-size: 13px; color: var(--text); outline: none;
  height: 100%;
}
.error-search input::placeholder { color: var(--text-secondary); }
.error-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.error-btn-outline {
  background: var(--glass-bg) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--glass-border);
  box-shadow: none !important;
}
.error-btn-outline:hover {
  background: var(--glass-bg-strong) !important;
  color: var(--accent) !important;
  border-color: rgba(99,102,241,0.3);
}

/* ══════════════════════════════════════


/* ══════════════════════════════════════
   搜索结果提示
   ══════════════════════════════════════ */
.search-result-hint {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; margin-bottom: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-secondary);
  animation: cardFadeIn 0.3s ease both;
}
.search-result-hint i {
  color: var(--accent); font-size: 13px;
}
.search-result-hint strong {
  color: var(--accent);
}

/* ══════════════════════════════════════
   首页点赞按钮已赞状态
   ══════════════════════════════════════ */
.like-action.liked {
  color: var(--accent) !important;
}
.like-action.liked i {
  color: var(--accent);
}

/* ══════════════════════════════════════
   404 微动画
   ══════════════════════════════════════ */
.error-code {
  animation: errorFloat 3s ease-in-out infinite;
}
@keyframes errorFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.error-page {
  animation: cardFadeIn 0.5s ease both;
}
.error-search {
  animation: cardFadeIn 0.5s ease both;
  animation-delay: 0.15s;
}
.error-actions {
  animation: cardFadeIn 0.5s ease both;
  animation-delay: 0.25s;
}

/* ══════════════════════════════════════
   深色模式过渡（不影响 transform 动画）
   ══════════════════════════════════════ */
body,
.glass, .shell, .topbar, .bottom-bar,
.post-card, .post-card-simple, .hitokoto-banner,

.album-card, .friend-feed-card, .link-card,
.nav-item, .pg-leaderboard, .error-page,
.article-meta-item, .cmt-device {
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}

/* ══════════════════════════════════════
   按钮 Q弹（克制版）
   悬停放大仅鼠标设备生效，触屏只有按压回弹，避免 :hover 粘住
   ══════════════════════════════════════ */
.content-tab, .hamburger, .links-cat-tab,
.cmt-reply-btn, .cmt-cancel-btn, .sidebar-close, .like-btn {
  transition: all .2s, transform .3s var(--spring);
}
@media (hover: hover) and (pointer: fine) {
  .section-toggle-btn:hover,
  .action-btn:hover,
  .toc-inline-btn:hover,
  .code-copy-btn:hover,
  .cmt-emoji-btn:hover,
  .cmt-submit:hover,
  .content-tab:hover,
  .hamburger:hover,
  .links-cat-tab:hover,
  .cmt-reply-btn:hover,
  .cmt-cancel-btn:hover,
  .sidebar-close:hover,
  .like-btn:hover { transform: scale(1.03); }

  .cmt-emoji-item:hover { transform: scale(1.06); }
  .error-btn:hover { transform: translateY(-2px) scale(1.01); }
}

.section-toggle-btn:active,
.action-btn:active,
.toc-inline-btn:active,
.code-copy-btn:active,
.cmt-emoji-btn:active,
.cmt-emoji-item:active,
.content-tab:active,
.hamburger:active,
.links-cat-tab:active,
.cmt-reply-btn:active,
.cmt-cancel-btn:active,
.sidebar-close:active,
.like-btn:active { transform: scale(0.95); }

.error-btn:active { transform: scale(0.98); }
