/* ===== 文章内容样式（Notion 风格） ===== */
.single__body.prose {
  line-height: 1.7;
  color: #37352f;
  font-size: 16px;
  max-width: 900px;
  margin: 0 auto;
  overflow-wrap: break-word;
  word-break: break-word;
}
.single__body.prose p {
  text-indent: 2em;
  margin-bottom: 0.5em;
}

/* 页面框架 - 去掉卡片阴影和毛玻璃，纯白背景 */
.sidebar {
  background: #fff !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* 侧边栏导航菜单项 - Notion 风格边框 */
.sidebar__link {
  border-bottom: 1px solid #e9e9e9 !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.sidebar__link:last-child {
  border-bottom: none !important;
}

.single {
  background: #fff !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

.content {
  padding: 28px 28px 40px;
}

/* 文章内图片居中 */
.single__body.prose p img,
.single__body.prose img {
  display: block;
  margin: 2em auto;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* H2 - Notion 风格：无装饰线 */
.single__body.prose h2 {
  font-size: 1.5em !important;
  font-weight: 600 !important;
  margin: 1.8em 0 0.5em !important;
  padding: 0 0 0.3em 0 !important;
  border-left: none !important;
  border-bottom: 1px solid #e9e9e9 !important;
  color: #1d1d1f !important;
  letter-spacing: -0.01em;
}

/* H3 - Notion 风格：浅灰色左竖线 */
.single__body.prose h3 {
  font-size: 1.2em !important;
  font-weight: 600 !important;
  margin: 1.4em 0 0.4em !important;
  padding: 0 0 0 0.6em !important;
  border-left: 3px solid #d1d5db !important;
  color: #1d1d1f !important;
}

/* H4 */
.single__body.prose h4 {
  font-size: 1.05em !important;
  font-weight: 600 !important;
  margin: 1.2em 0 0.4em !important;
  color: #37352f !important;
}

/* 段落 - Notion 间距更宽松 */
.single__body.prose p {
  margin: 0.6em 0;
  line-height: 1.7;
}

/* 链接 - 高辨识度蓝色（正文对比明显） */
.single__body.prose a {
  color: #2563eb !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(37, 99, 235, 0.45);
  text-decoration-thickness: 1px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.single__body.prose a:hover {
  color: #1d4ed8 !important;
  text-decoration-color: #1d4ed8;
  text-decoration-thickness: 2px;
}

/* 平台链接图标 - 简化（与链接同色，排除卡片链接） */
.single__body.prose a:not(.sw-card)[href*="github.com"]::before {
  content: "GH ";
  display: inline;
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  vertical-align: baseline;
}
.single__body.prose a:not(.sw-card)[href*="windows"]::before,
.single__body.prose a:not(.sw-card)[href$=".exe"]::before {
  content: "WIN ";
  display: inline;
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  vertical-align: baseline;
}
.single__body.prose a:not(.sw-card)[href*="macos"]::before,
.single__body.prose a:not(.sw-card)[href$=".dmg"]::before {
  content: "MAC ";
  display: inline;
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  vertical-align: baseline;
}
.single__body.prose a:not(.sw-card)[href*="android"]::before,
.single__body.prose a:not(.sw-card)[href$=".apk"]::before {
  content: "DROID ";
  display: inline;
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  vertical-align: baseline;
}

/* 外部链接图标 - Notion 风格的小箭头（与链接同色，排除卡片链接） */
.single__body.prose a:not(.sw-card)[href^="http"]:not([href*="31.57.218.108"]):not([href*="github.com"])::after {
  content: " ↗";
  display: inline;
  font-size: 12px;
  color: #2563eb;
}

/* 表格 - 干净简约 */
.single__body.prose table {
  display: block;
  max-width: 100%;
  width: max-content;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  font-size: 14px;
  border-spacing: 0;
  margin: 1.2em 0;
  border-radius: 6px;
  border: 1px solid #e9e9e9;
}

.single__body.prose thead {
  background: #f5f5f7;
}

.single__body.prose th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #1d1d1f;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  background: #f5f5f7 !important;
  font-size: 0.9em;
}

.single__body.prose td {
  padding: 9px 14px;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  color: #37352f;
  word-break: keep-all;
}

.single__body.prose tbody tr:last-child td {
  border-bottom: none;
}

.single__body.prose tbody tr {
  background: transparent;
}
.single__body.prose tbody tr:nth-child(2n) {
  background: #fafafa;
}

/* 代码 - 行内 */
.single__body.prose code {
  background: rgba(135,131,120,0.08);
  color: #eb5757;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
  font-family: "SF Mono", "Fira Code", monospace;
}

/* 代码块 - Notion 风格 */
.single__body.prose pre {
  background: #f7f6f3;
  color: #37352f;
  padding: 1.2em 1.4em;
  border-radius: 4px;
  border: none;
  overflow-x: auto;
  margin: 1em 0;
  font-size: 0.88em;
  line-height: 1.5;
}

.single__body.prose pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* 引用 - Notion 风格：左边框 + 灰色背景 */
.single__body.prose blockquote {
  border-left: 3px solid #d1d5db;
  background: rgba(55,53,47,0.03);
  margin: 1em 0;
  padding: 0.8em 1.2em;
  color: #6b7280;
  font-size: 0.95em;
  line-height: 1.6;
}

.single__body.prose blockquote p {
  margin: 0.3em 0;
  color: #6b7280;
}

/* 列表 */
.single__body.prose ul,
.single__body.prose ol {
  padding-left: 1.8em;
  margin: 0.5em 0;
}

.single__body.prose li {
  margin: 0.2em 0;
  line-height: 1.6;
}

/* 强调文本 - Notion 风格使用黄色高亮 */
.single__body.prose strong {
  font-weight: 600;
  color: #1d1d1f;
}

/* 暗色模式 */
[data-theme="dark"] .single__body.prose {
  color: #d1d5db;
}
[data-theme="dark"] .single__body.prose h2 {
  color: #f3f4f6 !important;
  border-bottom-color: #374151 !important;
}
[data-theme="dark"] .single__body.prose h3 {
  color: #f3f4f6 !important;
}
[data-theme="dark"] .single__body.prose h4 {
  color: #d1d5db !important;
}
[data-theme="dark"] .single__body.prose a {
  color: #60a5fa !important;
  text-decoration-color: rgba(96, 165, 250, 0.5);
}
[data-theme="dark"] .single__body.prose a:hover {
  color: #93c5fd !important;
  text-decoration-color: #93c5fd;
}
[data-theme="dark"] .single__body.prose a[href*="github.com"]::before,
[data-theme="dark"] .single__body.prose a[href*="windows"]::before,
[data-theme="dark"] .single__body.prose a[href*="macos"]::before,
[data-theme="dark"] .single__body.prose a[href*="android"]::before,
[data-theme="dark"] .single__body.prose a[href^="http"]:not([href*="31.57.218.108"]):not([href*="github.com"])::after {
  color: #60a5fa;
}
[data-theme="dark"] .single__body.prose code {
  background: rgba(255,255,255,0.08);
  color: #fca5a5;
}
[data-theme="dark"] .single__body.prose pre {
  background: #1f2937;
  color: #d1d5db;
}
[data-theme="dark"] .single__body.prose th {
  color: #d1d5db;
  border-bottom-color: #374151;
}
[data-theme="dark"] .single__body.prose td {
  border-bottom-color: #374151;
  color: #d1d5db;
}
[data-theme="dark"] .single__body.prose tbody tr {
  background: transparent;
}
[data-theme="dark"] .single__body.prose blockquote {
  background: rgba(255,255,255,0.02);
  color: #9ca3af;
}
[data-theme="dark"] .single__body.prose strong {
  color: #f3f4f6;
}

/* ===== 文章布局：正文 + 右侧 TOC ===== */
.single__layout {
  display: flex;
  gap: 2rem;
  position: relative;
}

.single__body.prose {
  flex: 1;
  min-width: 0;
  max-width: 900px;
}

/* ===== TOC 导航栏 ===== */
.single__toc {
  display: none;
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 0.5em 0 0.5em 0.8em;
  border-left: 1px solid #e9e9e9;
  font-size: 13px;
  line-height: 1.7;
}

.single__toc .toc-title {
  font-weight: 500;
  color: #999;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.6em;
  padding-left: 0.3em;
}

.single__toc a {
  display: block;
  color: #888;
  text-decoration: none;
  padding: 0.15em 0.3em;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
  word-break: break-word;
}

.single__toc a:hover,
.single__toc a.active {
  color: #37352f;
  background: rgba(55,53,47,0.04);
}

.single__toc .toc-h2 {
  font-weight: 500;
  padding-left: 0.3em;
}

.single__toc .toc-h3 {
  padding-left: 1.5em;
  font-size: 12px;
}

/* 手机端隐藏 TOC */
@media (max-width: 1024px) {
  .single__toc {
    display: none !important;
  }
  .single__layout {
    display: block;
  }
}

/* 桌面端显示 TOC */
@media (min-width: 1025px) {
  .single__toc {
    display: block;
  }
}

/* TOC 滚动条美化 */
.single__toc::-webkit-scrollbar {
  width: 3px;
}
.single__toc::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

/* 暗色模式 TOC */
[data-theme="dark"] .single__toc {
  border-left-color: #374151;
}
[data-theme="dark"] .single__toc a {
  color: #777;
}
[data-theme="dark"] .single__toc a:hover,
[data-theme="dark"] .single__toc a.active {
  color: #f3f4f6;
  background: rgba(255,255,255,0.04);
}
[data-theme="dark"] .single__toc .toc-title {
  color: #666;
}

/* ===== 软件卡片总览（6 平台模块 × 3 列） ===== */
.sw-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* 模块：彩色标题栏 + 卡片组，视觉一体 */
.sw-module {
  margin-bottom: 2.2em;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  background: #fff;
}

.sw-module__title {
  font-size: 1.02em !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  border: none !important;
  color: #fff !important;
  text-align: left;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 各平台标题栏配色（与徽章同色系，更深一档） */
.sw-module__title--windows { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.sw-module__title--macos   { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.sw-module__title--android { background: linear-gradient(135deg, #16a34a, #22c55e); }
.sw-module__title--ios     { background: linear-gradient(135deg, #0e7490, #06b6d4); }
.sw-module__title--linux   { background: linear-gradient(135deg, #d97706, #f59e0b); }
.sw-module__title--router  { background: linear-gradient(135deg, #0f766e, #14b8a6); }

.sw-module__title .sw-count {
  font-size: 0.75em;
  font-weight: 600;
  opacity: 0.85;
  margin-left: auto;
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 20px;
}

.sw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px;
}

/* 平板：2 列 */
@media (max-width: 1024px) {
  .sw-grid { grid-template-columns: repeat(2, 1fr); }
}
/* 手机：1 列 */
@media (max-width: 640px) {
  .sw-grid { grid-template-columns: 1fr; }
}

.sw-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 14px 14px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none !important;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.25s ease;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 4px 12px rgba(0,0,0,0.08),
    0 8px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

.sw-card:hover {
  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    0 12px 32px rgba(0,0,0,0.14),
    0 20px 48px rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.06);
}

.sw-card__head {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sw-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 4px;
}

.sw-card__name {
  font-size: 0.92em !important;
  font-weight: 650 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  color: #1d1d1f !important;
  line-height: 1.3 !important;
  text-align: center;
  width: 100%;
}

.sw-card__badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.sw-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.sw-badge-windows { background: #dbeafe; color: #1d4ed8; }
.sw-badge-macos   { background: #ede9fe; color: #6d28d9; }
.sw-badge-linux   { background: #fef3c7; color: #b45309; }
.sw-badge-ios     { background: #cffafe; color: #0e7490; }
.sw-badge-android { background: #dcfce7; color: #15803d; }
.sw-badge-router  { background: #ccfbf1; color: #0f766e; }

.sw-card__desc {
  font-size: 0.82em !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #666 !important;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 暗色模式 */
[data-theme="dark"] .sw-module {
  background: #1f2937;
  border-color: #374151;
}
[data-theme="dark"] .sw-module__title {
  color: #fff !important;
}
[data-theme="dark"] .sw-card {
  background: #111827;
  border-color: #374151;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.4),
    0 4px 12px rgba(0,0,0,0.3),
    0 8px 24px rgba(0,0,0,0.25);
}
[data-theme="dark"] .sw-card:hover {
  border-color: #4b5563;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.5),
    0 12px 32px rgba(0,0,0,0.45),
    0 20px 48px rgba(0,0,0,0.35);
}
[data-theme="dark"] .sw-card__name {
  color: #f3f4f6 !important;
}
[data-theme="dark"] .sw-card__desc {
  color: #9ca3af !important;
}
[data-theme="dark"] .sw-card__icon {
  background: #1f2937;
}

/* ===== Callout / Alert 提醒框 ===== */
.callout {
    margin: 1.2em 0;
    padding: 0.8em 1em 0.8em 1.2em;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 0.95em;
    line-height: 1.6;
    color: #37352f;
}

.callout__title {
    font-weight: 600;
    margin-bottom: 0.2em;
    font-size: 0.95em;
}

.callout p {
    margin: 0.2em 0;
}

.callout--note {
    background: #f7f6f3;
    border-left-color: #a0a0a0;
}
.callout--note .callout__title { color: #666; }

.callout--tip {
    background: #e8f5e9;
    border-left-color: #4caf50;
}
.callout--tip .callout__title { color: #2e7d32; }

.callout--warning {
    background: #fff8e1;
    border-left-color: #ff9800;
}
.callout--warning .callout__title { color: #e65100; }

.callout--danger {
    background: #ffebee;
    border-left-color: #f44336;
}
.callout--danger .callout__title { color: #c62828; }

.callout--recommend {
    background: #e3f2fd;
    border-left-color: #2196f3;
}
.callout--recommend .callout__title { color: #1565c0; }

[data-theme="dark"] .callout {
    color: #d1d5db;
}
[data-theme="dark"] .callout--note { background: #1f2937; border-left-color: #6b7280; }
[data-theme="dark"] .callout--note .callout__title { color: #9ca3af; }
[data-theme="dark"] .callout--tip { background: #0a2e1a; border-left-color: #4caf50; }
[data-theme="dark"] .callout--tip .callout__title { color: #81c784; }
[data-theme="dark"] .callout--warning { background: #2e1f0a; border-left-color: #ff9800; }
[data-theme="dark"] .callout--warning .callout__title { color: #ffb74d; }
[data-theme="dark"] .callout--danger { background: #2e0a0a; border-left-color: #f44336; }
[data-theme="dark"] .callout--danger .callout__title { color: #ef9a9a; }
[data-theme="dark"] .callout--recommend { background: #0a1a2e; border-left-color: #2196f3; }
[data-theme="dark"] .callout--recommend .callout__title { color: #64b5f6; }
/* ===== 修复手机端滚动闪烁 ===== */
.card {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.feed {
  -webkit-overflow-scrolling: touch;
}

/* ===== 手机端 hero 区域溢出修复 ===== */
@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }
  .featured-carousel {
    overflow-x: hidden;
    margin-inline: 0;
  }
}

/* ===== 首页卡片 - 手机端留边距 & UI 美化 ===== */
.section--feed {
  padding: 0 3px;
}
@media (min-width: 768px) {
  .section--feed {
    padding: 0 28px;
  }
}
.feed .card {
  border-radius: 14px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feed .card:hover,
.feed .card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
[data-theme="dark"] .feed .card {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.feed .card__title {
  font-size: 1.18rem;
  line-height: 1.4;
  margin: 8px 0 10px;
}

/* 置顶轮播卡片标题（Stack 主题无显式字号，继承 h3 偏小，显式调大） */
.feature-card__title {
  font-size: 1.3rem;
  line-height: 1.35;
}

/* ===== 分页导航 ===== */
.pagination-nav {
  margin: 2.5rem 0 1rem;
  text-align: center;
}
.pagination-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  color: #64748b;
  background: #f1f5f9;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.pagination-nav__btn:hover {
  background: #e2e8f0;
  color: #334155;
}
.pagination-nav__btn--active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.pagination-nav__btn--active:hover {
  background: #1d4ed8;
  color: #fff;
}
.pagination-nav__btn--prev,
.pagination-nav__btn--next {
  gap: 4px;
  font-weight: 500;
}
[data-theme="dark"] .pagination-nav__btn {
  background: #1e293b;
  color: #94a3b8;
}
[data-theme="dark"] .pagination-nav__btn:hover {
  background: #334155;
  color: #e2e8f0;
}
[data-theme="dark"] .pagination-nav__btn--active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.35);
}

/* ===== 折叠面板（Handsome 风格 collapse）===== */
.collapse-panel {
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  margin: 12px 0;
  background: #fff;
  overflow: hidden;
}
.collapse-panel summary {
  cursor: pointer;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95em;
  background: #f6f6f8;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}
.collapse-panel summary:hover { background: #efeff3; }
.collapse-panel summary::-webkit-details-marker { display: none; }
.collapse-arrow {
  display: inline-block;
  transition: transform 0.2s;
  margin-right: 8px;
  color: #999;
  font-size: 0.85em;
}
.collapse-panel[open] summary .collapse-arrow { transform: rotate(90deg); }
.collapse-body {
  padding: 8px 16px 14px;
  border-top: 1px solid #eee;
  line-height: 1.7;
}

/* ===== 文章图片：边框+间距（2026-08-12）===== */
.single__body.prose img {
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  padding: 4px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin: 1.4em auto 0.5em;
}
/* 图注：小字居中 */
.img-caption {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  font-weight: 500;
  margin: 0.3em auto 1.6em;
}

/* ===== 左上角品牌图标：白底+均匀蓝色边框（2026-08-12 覆盖主题渐变蓝底）===== */
.brand-mark {
  background: #ffffff !important;
  background-image: none !important;
  border: 2px solid var(--accent) !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  padding: 2px;
}
.brand-mark img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 8px;
}
@media (max-width: 767px) {
  .brand-mark {
    border-radius: 10px !important;
  }
}

/* ===== 阅读体验（2026-08-12 对齐 meowvps 行距；宽度已按用户要求回退）===== */
.single__body.prose {
  line-height: 1.7;
}

/* ===== 术语卡片（2026-08-12 meowvps 关键词标注同款）===== */
.term {
  position: relative;
  border-bottom: 1.5px dashed var(--accent);
  cursor: help;
  white-space: nowrap;
}
.term--plain {
  border-bottom: none;
  cursor: default;
}
.term-popover {
  display: none;
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  max-width: 70vw;
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  box-shadow: 0 6px 20px rgba(30, 58, 95, .14);
  z-index: 60;
  white-space: normal;
  text-align: left;
}
.term-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #d8dee8;
}
.term:hover .term-popover,
.term:focus .term-popover,
.term:active .term-popover {
  display: block;
}
/* 移动端：点击时也显示（:active 短暂）——用 focus 保持 */
@media (hover: none) {
  .term-popover { display: none; }
  .term:focus .term-popover,
  .term:active .term-popover { display: block; }
}

/* ===== 软件信息块 vendor（2026-08-13 meowvps 商家块同款）===== */
.vendor-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 1.2em 0;
  box-shadow: 0 2px 8px rgba(30, 58, 95, .06);
}
.vendor-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  margin-left: 4px;
}
.vendor-logo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
}
.vendor-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-height: 64px;
  flex: 1;
}
.vendor-name {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text, #222);
  text-decoration: none;
}
.vendor-name:hover { color: var(--accent); }
.vendor-desc {
  margin: 0;
  font-size: .92rem;
  color: #666;
  line-height: 1.55;
}

/* ===== 动效无障碍（Emil 标准 #8）：reduced-motion 温和化 ===== */
/* 卡片/按钮 hover 保留颜色变化，去掉位移和阴影放大 */
@media (prefers-reduced-motion: reduce) {
  .sw-card,
  .sw-card:hover,
  .pagination-nav__btn,
  .pagination-nav__btn:hover {
    transition: none !important;
    transform: none !important;
  }
  .feed .card,
  .feed .card:hover {
    transition: none !important;
    transform: none !important;
  }
}

/* hover 位移只在支持 hover 的精确指针设备上生效（触屏不触发假 hover） */
@media (hover: hover) and (pointer: fine) {
  .sw-card:hover {
    transform: translateY(-4px);
  }
}


/* 置顶卡片 banner 背景：visual 装饰层透明（不遮挡 article 的背景图） */
.feature-card--banner .feature-card__visual {
  background: transparent !important;
}
.feature-card--banner .feature-card__visual::after {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.10));
}
/* Generated using: hugo gen chromastyles --style=github */

/* Background */ .bg { background-color:#fff; }
/* PreWrapper */ .chroma { background-color:#fff; }
/* Other */ .chroma .x {  }
/* Error */ .chroma .err { color:#f6f8fa;background-color:#82071e }
/* CodeLine */ .chroma .cl {  }
/* LineLink */ .chroma .lnlinks { outline:none;text-decoration:none;color:inherit }
/* LineTableTD */ .chroma .lntd { vertical-align:top;padding:0;margin:0;border:0; }
/* LineTable */ .chroma .lntable { border-spacing:0;padding:0;margin:0;border:0; }
/* LineHighlight */ .chroma .hl { background-color:#e5e5e5 }
/* LineNumbersTable */ .chroma .lnt { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f }
/* LineNumbers */ .chroma .ln { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f }
/* Line */ .chroma .line { display:flex; }
/* Keyword */ .chroma .k { color:#cf222e }
/* KeywordConstant */ .chroma .kc { color:#cf222e }
/* KeywordDeclaration */ .chroma .kd { color:#cf222e }
/* KeywordNamespace */ .chroma .kn { color:#cf222e }
/* KeywordPseudo */ .chroma .kp { color:#cf222e }
/* KeywordReserved */ .chroma .kr { color:#cf222e }
/* KeywordType */ .chroma .kt { color:#cf222e }
/* Name */ .chroma .n {  }
/* NameAttribute */ .chroma .na { color:#1f2328 }
/* NameBuiltin */ .chroma .nb { color:#6639ba }
/* NameBuiltinPseudo */ .chroma .bp { color:#6a737d }
/* NameClass */ .chroma .nc { color:#1f2328 }
/* NameConstant */ .chroma .no { color:#0550ae }
/* NameDecorator */ .chroma .nd { color:#0550ae }
/* NameEntity */ .chroma .ni { color:#6639ba }
/* NameException */ .chroma .ne {  }
/* NameFunction */ .chroma .nf { color:#6639ba }
/* NameFunctionMagic */ .chroma .fm {  }
/* NameLabel */ .chroma .nl { color:#900;font-weight:bold }
/* NameNamespace */ .chroma .nn { color:#24292e }
/* NameOther */ .chroma .nx { color:#1f2328 }
/* NameProperty */ .chroma .py {  }
/* NameTag */ .chroma .nt { color:#0550ae }
/* NameVariable */ .chroma .nv { color:#953800 }
/* NameVariableClass */ .chroma .vc { color:#953800 }
/* NameVariableGlobal */ .chroma .vg { color:#953800 }
/* NameVariableInstance */ .chroma .vi { color:#953800 }
/* NameVariableMagic */ .chroma .vm {  }
/* Literal */ .chroma .l {  }
/* LiteralDate */ .chroma .ld {  }
/* LiteralString */ .chroma .s { color:#0a3069 }
/* LiteralStringAffix */ .chroma .sa { color:#0a3069 }
/* LiteralStringBacktick */ .chroma .sb { color:#0a3069 }
/* LiteralStringChar */ .chroma .sc { color:#0a3069 }
/* LiteralStringDelimiter */ .chroma .dl { color:#0a3069 }
/* LiteralStringDoc */ .chroma .sd { color:#0a3069 }
/* LiteralStringDouble */ .chroma .s2 { color:#0a3069 }
/* LiteralStringEscape */ .chroma .se { color:#0a3069 }
/* LiteralStringHeredoc */ .chroma .sh { color:#0a3069 }
/* LiteralStringInterpol */ .chroma .si { color:#0a3069 }
/* LiteralStringOther */ .chroma .sx { color:#0a3069 }
/* LiteralStringRegex */ .chroma .sr { color:#0a3069 }
/* LiteralStringSingle */ .chroma .s1 { color:#0a3069 }
/* LiteralStringSymbol */ .chroma .ss { color:#032f62 }
/* LiteralNumber */ .chroma .m { color:#0550ae }
/* LiteralNumberBin */ .chroma .mb { color:#0550ae }
/* LiteralNumberFloat */ .chroma .mf { color:#0550ae }
/* LiteralNumberHex */ .chroma .mh { color:#0550ae }
/* LiteralNumberInteger */ .chroma .mi { color:#0550ae }
/* LiteralNumberIntegerLong */ .chroma .il { color:#0550ae }
/* LiteralNumberOct */ .chroma .mo { color:#0550ae }
/* Operator */ .chroma .o { color:#0550ae }
/* OperatorWord */ .chroma .ow { color:#0550ae }
/* Punctuation */ .chroma .p { color:#1f2328 }
/* Comment */ .chroma .c { color:#57606a }
/* CommentHashbang */ .chroma .ch { color:#57606a }
/* CommentMultiline */ .chroma .cm { color:#57606a }
/* CommentSingle */ .chroma .c1 { color:#57606a }
/* CommentSpecial */ .chroma .cs { color:#57606a }
/* CommentPreproc */ .chroma .cp { color:#57606a }
/* CommentPreprocFile */ .chroma .cpf { color:#57606a }
/* Generic */ .chroma .g {  }
/* GenericDeleted */ .chroma .gd { color:#82071e;background-color:#ffebe9 }
/* GenericEmph */ .chroma .ge { color:#1f2328 }
/* GenericError */ .chroma .gr {  }
/* GenericHeading */ .chroma .gh {  }
/* GenericInserted */ .chroma .gi { color:#116329;background-color:#dafbe1 }
/* GenericOutput */ .chroma .go { color:#1f2328 }
/* GenericPrompt */ .chroma .gp {  }
/* GenericStrong */ .chroma .gs {  }
/* GenericSubheading */ .chroma .gu {  }
/* GenericTraceback */ .chroma .gt {  }
/* GenericUnderline */ .chroma .gl { text-decoration:underline }
/* TextWhitespace */ .chroma .w { color:#fff }

/* ===== 代码高亮深色模式适配（github 风格白底 → 深色反色）===== */
[data-theme="dark"] .chroma {
  background-color: #0d1117;
  color: #c9d1d9;
}
[data-theme="dark"] .chroma .k, [data-theme="dark"] .chroma .kc, [data-theme="dark"] .chroma .kd,
[data-theme="dark"] .chroma .kn, [data-theme="dark"] .chroma .kp, [data-theme="dark"] .chroma .kr,
[data-theme="dark"] .chroma .kt { color: #ff7b72; }
[data-theme="dark"] .chroma .na, [data-theme="dark"] .chroma .nb { color: #79c0ff; }
[data-theme="dark"] .chroma .s, [data-theme="dark"] .chroma .s1, [data-theme="dark"] .chroma .s2,
[data-theme="dark"] .chroma .sb, [data-theme="dark"] .chroma .sc { color: #a5d6ff; }
[data-theme="dark"] .chroma .c, [data-theme="dark"] .chroma .c1, [data-theme="dark"] .chroma .cm { color: #8b949e; }
[data-theme="dark"] .chroma .o, [data-theme="dark"] .chroma .p { color: #c9d1d9; }
[data-theme="dark"] .chroma .mi, [data-theme="dark"] .chroma .mf { color: #79c0ff; }
