/* components.css — 可复用组件：导航、按钮、卡片、表格、页脚 */

/* ---------- 基础可访问性 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  transition: top 0.16s ease;
}
.skip-link:focus-visible { top: 12px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(100deg, #6b4bff, #8f6bff);
  color: var(--on-accent);
  box-shadow: 0 6px 18px rgba(107, 75, 255, 0.28);
}
.btn-primary:hover { background: linear-gradient(100deg, #7d5eff, #a184ff); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(14, 23, 48, 0.6);
}
.btn-ghost:hover { border-color: var(--accent-soft); color: #fff; }
.btn-light { background: #fff; color: #2a1d63; }
.btn-light:hover { background: #f1edff; }
.btn-outline { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(5, 10, 27, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #cfc4ff;
  background: linear-gradient(150deg, #2a2160, #141a3c);
  border: 1px solid var(--line-strong);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.brand-text small { font-size: 10px; color: var(--dim); letter-spacing: 0.06em; margin-top: 2px; }
.site-logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.site-footer .site-logo-text { color: #fff; }

.main-nav { margin-left: auto; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.main-nav a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--ink); background: rgba(123, 92, 255, 0.12); }
.main-nav a[aria-current="page"] { color: #d9d0ff; background: rgba(123, 92, 255, 0.16); }

/* ---------- 导航下拉 ---------- */
.main-nav .dropdown { position: relative; }
.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: var(--z-menu);
  min-width: 190px;
  max-height: 360px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(7, 13, 31, 0.98);
  box-shadow: var(--shadow-1);
}
.main-nav .dropdown:hover > .dropdown-menu { display: block; }
.main-nav .dropdown-menu a {
  display: block;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main-nav .dropdown-menu a:hover { background: rgba(123, 92, 255, 0.14); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-note {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
}
.nav-note:hover { color: var(--ink); border-bottom-color: var(--accent-soft); }

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.6px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ---------- 区块标题 ---------- */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}
.sec-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.sec-icon { color: var(--accent-soft); display: inline-flex; }
.sec-head p {
  font-size: var(--fs-small);
  color: var(--dim);
}

/* ---------- 分类卡 ---------- */
.cat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 9px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 31, 62, 0.9), rgba(11, 18, 38, 0.9));
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.cat-card:hover,
.cat-card:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(28, 40, 78, 0.95), rgba(13, 21, 44, 0.95));
}
.cat-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  background: #0a1126;
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-name { margin-top: 9px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em; }
.cat-desc {
  margin-top: 5px;
  font-size: var(--fs-xs);
  line-height: 1.56;
  color: var(--muted);
}
.cat-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 8px; }
.cat-tags em {
  font-style: normal;
  font-size: 10.5px;
  color: #c9bfff;
  background: rgba(123, 92, 255, 0.14);
  border: 1px solid rgba(123, 92, 255, 0.22);
  border-radius: 4px;
  padding: 2px 5px;
}

/* ---------- 条目卡（横排） ---------- */
.entry-card {
  display: flex;
  gap: 12px;
  height: 100%;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(22, 33, 66, 0.92), rgba(10, 17, 37, 0.92));
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.entry-card:hover,
.entry-card:focus-visible { border-color: var(--line-strong); transform: translateY(-2px); }
.entry-thumb {
  flex: 0 0 86px;
  width: 86px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #0a1126;
}
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entry-body { display: flex; flex-direction: column; min-width: 0; }
.entry-cat { font-size: 10.5px; color: var(--accent-soft); letter-spacing: 0.08em; }
.entry-title { margin-top: 5px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.entry-desc {
  margin-top: 5px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-meta { margin-top: auto; padding-top: 7px; font-size: 11px; color: var(--dim); display: flex; gap: 6px; }

/* ---------- 面板 / 表格 ---------- */
.panel {
  padding: 12px 14px 11px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 27, 55, 0.92), rgba(9, 16, 35, 0.92));
}
.panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.panel-head h2 { font-size: 16px; font-weight: 800; }
.panel-head p { font-size: 11.5px; color: var(--dim); }

.table-scroll { overflow-x: auto; max-width: 100%; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 6px 8px 5px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table thead th {
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  padding-top: 2px;
  padding-bottom: 6px;
}
.spec-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.spec-table td { color: var(--muted); }
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 0; }
.table-note { margin-top: 8px; font-size: 10.5px; color: var(--dim); line-height: 1.6; }

/* ---------- 配列列表 ---------- */
.layout-list { list-style: none; display: grid; gap: 0; }
.layout-list li {
  display: grid;
  grid-template-columns: 40px 60px 58px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
  padding: 5px 0 4px;
  border-bottom: 1px solid var(--line);
}
.layout-list li:first-child { padding-top: 1px; }
.layout-list li:last-child { border-bottom: 0; }
.ll-name { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.ll-keys { font-size: 11.5px; color: var(--muted); }
.ll-width { font-size: 11px; color: var(--dim); }
.ll-note { font-size: 10.5px; color: var(--dim); line-height: 1.4; text-align: right; }

/* ---------- CTA band ---------- */
.cta-band {
  margin-top: 8px;
  background:
    radial-gradient(600px 220px at 12% 50%, rgba(53, 208, 255, 0.22), transparent 65%),
    linear-gradient(100deg, #2c1a74 0%, #5a3cf0 46%, #7b5cff 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.cta-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 96px;
  padding: 14px 0;
}
.cta-thumb {
  flex: 0 0 86px;
  width: 86px;
  height: 62px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.cta-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-copy { flex: 1 1 auto; }
.cta-copy h2 { font-size: 24px; font-weight: 800; letter-spacing: 0.01em; }
.cta-copy p { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, 0.82); }
.cta-actions { display: flex; gap: 10px; flex: 0 0 auto; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  background: #040816;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1.25fr 0.8fr 1.1fr;
  gap: 22px;
  padding: 18px 0 14px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0 14px;
}
.footer-row > * { flex: 1 1 180px; min-width: 170px; }
.footer-row .footer-brand { flex: 1.4 1 220px; }
.footer-row .footer-note { flex: 1.1 1 200px; }
.footer-brand p { margin-top: 10px; font-size: 11.5px; line-height: 1.7; color: var(--dim); max-width: 260px; }
.footer-col h2 { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 7px; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; }
.footer-col a { font-size: 11.5px; color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 11.5px; line-height: 1.75; color: var(--dim); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0 12px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--dim);
}

/* ---------- 文字链 ---------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #c9bfff;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 191, 255, 0.35);
  padding-bottom: 2px;
}
.text-link:hover { color: #fff; border-bottom-color: #fff; }

/* 装饰箭头：用 CSS 伪元素而不是 DOM 文本，避免污染文案顺序 */
.btn-primary::after,
.btn-light::after,
.entry-meta::after,
.text-link::after { content: "→"; margin-left: 3px; }

/* ============================================================
   内页组件：面包屑 / 分类页头 / 筛选 / 分类说明 / 正文 / 目录
   ============================================================ */

/* ---------- 面包屑 ---------- */
.crumb { font-size: 11.5px; color: var(--dim); }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; list-style: none; }
.crumb li { display: inline-flex; align-items: center; gap: 7px; }
.crumb li + li::before { content: "/"; color: var(--line-strong); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb [aria-current="page"] { color: var(--accent-soft); }

/* ---------- 分类页头 ---------- */
.page-hero {
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(680px 260px at 88% -30%, rgba(123, 92, 255, 0.22), transparent 70%),
    radial-gradient(420px 220px at 6% 40%, rgba(53, 208, 255, 0.07), transparent 70%);
}
.page-hero .crumb { margin-bottom: 14px; }
.page-hero-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.page-hero h1 {
  margin-top: 8px;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.2;
}
.page-hero .lede { margin-top: 10px; max-width: 660px; font-size: 13.5px; }
.page-hero .text-link { margin-top: 12px; }
.page-facts { display: flex; gap: 26px; padding-bottom: 3px; }
.page-facts li { display: flex; flex-direction: column; gap: 2px; }
.page-facts strong { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 22px; line-height: 1.1; color: #d8cdff; }
.page-facts span { font-size: 11px; color: var(--dim); }

/* ---------- 筛选条 ---------- */
.filter-bar { display: grid; gap: 8px; padding: 12px 14px; }
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}
.filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-label { font-size: 11px; color: var(--dim); letter-spacing: 0.04em; margin-right: 2px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] {
  border-color: rgba(123, 92, 255, 0.7);
  background: rgba(123, 92, 255, 0.18);
  color: #e4dcff;
}
.filter-sort { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.filter-sort label { font-size: 11px; color: var(--dim); cursor: pointer; }
.filter-sort select {
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--ink);
  font-size: 11.5px;
  cursor: pointer;
}
.result-count { font-size: 11px; color: var(--dim); }
.result-count strong { color: var(--accent-soft); font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-weight: 600; }
.empty-state {
  padding: 34px 16px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- 列表网格 ---------- */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* ---------- 分类说明 ---------- */
.guide {
  margin-top: 4px;
  padding: 22px 0 6px;
  border-top: 1px solid var(--line);
}
.guide-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.guide-head h2 { font-size: var(--fs-h2); font-weight: 800; }
.guide-head p { font-size: 12px; color: var(--dim); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.guide-body { max-width: 720px; }
.guide-body h3 { font-size: 15px; font-weight: 700; color: #d8cdff; }
.guide-body p { margin-top: 9px; font-size: 13.5px; line-height: 1.95; color: var(--muted); }
.guide-body p:first-of-type { margin-top: 0; }
.guide-aside { padding: 14px 16px; }
.guide-aside h3 { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: 0.05em; }
.guide-aside ul { margin-top: 7px; display: grid; gap: 5px; list-style: none; }
.guide-aside li { position: relative; padding-left: 12px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.guide-aside li::before { content: ""; position: absolute; left: 0; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-soft); }
.guide-aside .is-no li::before { background: var(--dim); }
.guide-aside section + section { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }

/* ---------- 相邻分类 ---------- */
.related { padding-top: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.related-grid .cat-card { padding: 9px 10px; }
.related-grid .cat-name { margin-top: 0; font-size: 13px; }
.related-grid .cat-desc { font-size: 10.5px; }

/* ---------- 详情页头 ---------- */
.article-head { padding: 20px 0 14px; }
.article-head .crumb { margin-bottom: 13px; }
.article-cat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(123, 92, 255, 0.4);
  background: rgba(123, 92, 255, 0.14);
  color: #d8cdff;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.article-head h1 {
  margin-top: 10px;
  max-width: 860px;
  font-size: clamp(27px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.3;
}
.article-dek { margin-top: 10px; max-width: 760px; font-size: 13.5px; line-height: 1.85; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 13px; font-size: 11px; color: var(--dim); }
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- 详情页布局 ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 240px;
  gap: 44px;
  justify-content: space-between;
  padding-top: 8px;
}
.toc {
  position: sticky;
  top: 78px;
  align-self: start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 23, 49, 0.72);
}
.toc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.toc h2 { font-size: 11.5px; font-weight: 700; color: #d8cdff; letter-spacing: 0.06em; }
.toc-toggle {
  display: none;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
}
.toc ol { margin-top: 8px; display: grid; gap: 1px; list-style: none; counter-reset: toc; }
.toc a {
  display: block;
  padding: 5px 6px;
  border-left: 1px solid transparent;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover { color: var(--ink); background: rgba(123, 92, 255, 0.1); }
.toc a.is-active {
  color: #e4dcff;
  border-left-color: var(--accent);
  background: rgba(123, 92, 255, 0.14);
}

.article { min-width: 0; }
.article-body { font-size: 14px; line-height: 1.95; color: #cfd6ea; }
.article-body > h2 {
  margin: 24px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  scroll-margin-top: 82px;
}
.article-body > h2:first-of-type { margin-top: 4px; padding-top: 0; border-top: 0; }
.article-body > p { margin-top: 9px; }
.article-body > p strong { color: #e4dcff; font-weight: 600; }

.article-figure {
  margin: 14px 0 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a1126;
}
.article-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.prev-next__item {
  display: block;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 23, 49, 0.72);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.prev-next__item:hover { border-color: var(--line-strong); background: rgba(20, 31, 62, 0.9); }
.prev-next__item.is-next { text-align: right; }
.prev-next__label { display: block; font-size: 10.5px; color: var(--dim); letter-spacing: 0.08em; }
.prev-next__title {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-summary {
  margin: 6px 0 14px;
  padding: 13px 15px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(123, 92, 255, 0.09);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}
.article-summary strong { color: #e4dcff; }

.param-note {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 23, 49, 0.72);
  font-size: 12px;
  color: var(--muted);
}
.param-note h3 { font-size: 12px; color: #d8cdff; letter-spacing: 0.05em; }
.param-note ul { margin-top: 6px; display: grid; gap: 4px; list-style: none; }
.param-note li { position: relative; padding-left: 12px; line-height: 1.65; }
.param-note li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-soft); }

/* ---------- 同分类条目 ---------- */
.related-entries { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.related-entries h2 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.related-entries ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* 列表页卡片：article 承载数据属性，a 承载点击与视觉 */
.list-grid .entry-card { display: block; padding: 0; height: 100%; }
.list-grid .entry-link {
  display: flex;
  gap: 12px;
  height: 100%;
  padding: 10px;
  color: inherit;
  text-decoration: none;
}
.list-grid .entry-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.list-grid .entry-link:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: -2px; border-radius: var(--radius); }
