/* VPNWing 博客样式:列表页(blog/index.html)与文章页(blog/articles/*.html)
   颜色、圆角、阴影一律引用 :root 设计令牌,组件内不写死色值。 */

:root {
  --blog-column: 56rem;
  --blog-pad: clamp(1.25rem, 4vw, 2.5rem);
  --blog-inset: 1.5rem;
  --blog-on-accent: var(--bg-panel);
  --blog-on-ink: var(--bg);
  --blog-tint-accent: color-mix(in srgb, var(--accent) 8%, var(--bg-panel));
  --blog-tint-soft: color-mix(in srgb, var(--bg-panel-2) 62%, var(--bg-panel));
  --blog-line-soft: color-mix(in srgb, var(--border) 70%, transparent);
}

/* ---------- 阅读列:面包屑 / hero / 正文 / 文末推广共用 ---------- */

.reading-wrap {
  width: 100%;
  max-width: calc(var(--blog-column) + 2 * var(--blog-pad));
  margin-inline: auto;
  padding-inline: var(--blog-pad);
}

.reading-wrap .prose {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

/* ---------- 面包屑 ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 1.5rem 0 0.9rem;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.crumbs li + li::before {
  content: "/";
  font-family: var(--font-mono);
  color: var(--blog-line-soft);
}

.crumbs a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.crumbs a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

/* ---------- 窗口栏母题(列表页 hero 与文章页 hero 共用) ---------- */

.blog-winbar,
.article-hero-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-panel-2) 0%, var(--bg-panel) 100%);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.blog-winbar::before,
.article-hero-bar::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--error);
  box-shadow: 14px 0 0 0 var(--warn), 28px 0 0 0 var(--success);
  margin-inline-end: 28px;
}

.blog-winbar-file,
.article-hero-file {
  margin-inline-start: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- 列表页 hero ---------- */

.blog-hero-section {
  padding-block: 0.3rem 0;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--hi-light);
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(158deg, color-mix(in srgb, var(--accent) 7%, transparent) 0%, transparent 52%);
  pointer-events: none;
}

.blog-hero-body {
  position: relative;
  z-index: 1;
  padding: 1.6rem clamp(1.5rem, 4vw, 2.6rem) 2rem;
}

.blog-title {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.018em;
  text-wrap: pretty;
  color: var(--text);
}

.blog-lead {
  margin: 0.85rem 0 0;
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ---------- 标签筛选 ---------- */

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 0;
}

.filter-btn {
  appearance: none;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.44rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn:hover {
  color: var(--accent-dark);
  border-color: var(--blog-line-soft);
  background: var(--blog-tint-accent);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--blog-on-accent);
  box-shadow: var(--shadow-accent-soft);
}

/* ---------- 文章卡片 ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.3rem 1.35rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--hi-light);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 45%, transparent 100%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: var(--shadow-accent-soft);
}

.post-card:hover::before {
  opacity: 1;
}

.post-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  padding: 0.22rem 0.62rem;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.post-title {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  color: var(--text);
}

.post-summary {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-more {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s ease;
}

.post-card:hover .post-more {
  color: var(--accent-dark);
}

.blog-empty {
  grid-column: 1 / -1;
  margin: 1.4rem 0 0;
  padding: 1.4rem 1.3rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

/* ---------- 文章页 hero(window-chrome 版式) ---------- */

.article-hero {
  position: relative;
  margin: 0;
  padding-inline: var(--blog-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--hi-light);
  overflow: hidden;
}

.article-hero-bar {
  margin-inline: calc(-1 * var(--blog-inset));
  padding-inline: var(--blog-inset);
}

.article-hero-body {
  padding-block: 1.5rem 1.85rem;
}

@media (min-width: 900px) {
  .article-hero {
    margin-inline: calc(-1 * var(--blog-inset));
  }
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.68rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--blog-on-accent);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.article-date,
.article-readtime {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.62rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
}

.article-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.article-readtime {
  font-size: 0.78rem;
}

.article-title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: pretty;
  color: var(--text);
}

.article-lead {
  margin: 0.85rem 0 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ---------- 正文排版 ---------- */

.prose {
  counter-reset: blog-section;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  overflow-wrap: break-word;
}

.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose blockquote,
.prose table,
.prose pre,
.prose figure,
.prose .callout,
.prose .stat-grid,
.prose .check-list,
.prose .verdict {
  margin-block: 1.15rem;
}

.prose > :first-child {
  margin-block-start: 0;
}

.prose > :last-child {
  margin-block-end: 0;
}

.prose h2 {
  counter-increment: blog-section;
  margin-block: 2.6rem 1rem;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.008em;
  text-wrap: pretty;
  color: var(--text);
}

.prose h2::before {
  content: counter(blog-section, decimal-leading-zero);
  display: inline-block;
  margin-inline-end: 0.55rem;
  padding: 0.08rem 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 0.14em;
}

.prose h3 {
  margin-block: 1.9rem 0.7rem;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  color: var(--text);
}

.prose h4 {
  margin-block: 1.5rem 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  text-wrap: pretty;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.35rem;
}

.prose li + li {
  margin-block-start: 0.4rem;
}

.prose li > ul,
.prose li > ol {
  margin-block: 0.4rem;
}

.prose a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 0.18em;
}

.prose a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.prose strong {
  font-weight: 700;
  color: var(--text);
}

.prose blockquote {
  margin-inline: 0;
  padding: 0.9rem 1.15rem;
  border-inline-start: 3px solid var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--blog-tint-soft);
  color: var(--text-muted);
}

.prose blockquote > :first-child {
  margin-block-start: 0;
}

.prose blockquote > :last-child {
  margin-block-end: 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.prose hr {
  margin-block: 2rem;
  border: 0;
  border-top: 1px solid var(--border);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.34em;
  border-radius: var(--radius-sm);
  background: var(--blog-tint-soft);
  color: var(--accent-dark);
  overflow-wrap: anywhere;
}

.prose pre {
  position: relative;
  margin-block: 1.4rem;
  padding: 1.75rem 1.1rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--panel-ink) 75%, var(--border));
  border-radius: var(--radius-md);
  background: linear-gradient(158deg, var(--panel-a) 0%, var(--panel-b) 100%);
  color: var(--blog-on-ink);
  font-size: 0.86rem;
  line-height: 1.72;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 var(--hi-white);
}

.prose pre::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 1.1rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--error);
  box-shadow: 12px 0 0 0 var(--warn), 24px 0 0 0 var(--success);
}

.prose pre code {
  display: block;
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}

/* ---------- 正文表格 ---------- */

.prose .table-scroll {
  max-width: 100%;
  margin-block: 1.4rem;
  overflow-x: auto;
}

.prose table {
  width: 100%;
  min-width: 32rem;
  border: 1px solid var(--border);
  border-collapse: collapse;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.94rem;
  line-height: 1.6;
}

.prose caption {
  padding-block-end: 0.6rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: left;
}

.prose thead th {
  padding: 0.7rem 0.8rem;
  background: var(--panel-ink);
  color: var(--blog-on-ink);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.prose tbody th,
.prose tbody td {
  padding: 0.65rem 0.8rem;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--bg-panel-2) 55%, transparent);
}

.prose tbody tr:hover {
  background: var(--accent-tint);
}

.prose td.num,
.prose th.num {
  font-family: var(--font-mono);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .prose table {
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* ---------- callout ---------- */

.prose .callout {
  position: relative;
  padding: 1rem 1.15rem 1rem 3.05rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-inline-start: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--blog-tint-accent);
  font-size: 0.96rem;
  line-height: 1.78;
}

.prose .callout::before {
  content: "i";
  position: absolute;
  inset-block-start: 1.05rem;
  inset-inline-start: 1rem;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--blog-on-accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.prose .callout > :first-child {
  margin-block-start: 0;
}

.prose .callout > :last-child {
  margin-block-end: 0;
}

.prose .callout--warn {
  border-color: color-mix(in srgb, var(--warn) 28%, var(--border));
  border-inline-start-color: var(--warn);
  background: color-mix(in srgb, var(--warn) 9%, var(--bg-panel));
}

.prose .callout--warn::before {
  content: "!";
  background: color-mix(in srgb, var(--warn) 82%, var(--panel-ink));
  color: var(--blog-on-accent);
}

.prose .callout--success {
  border-color: color-mix(in srgb, var(--success) 28%, var(--border));
  border-inline-start-color: var(--success);
  background: color-mix(in srgb, var(--success) 9%, var(--bg-panel));
}

.prose .callout--success::before {
  content: "✓";
  background: var(--success);
  color: var(--blog-on-accent);
}

/* ---------- 数据卡网格 ---------- */

.prose .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: 0.85rem;
}

.prose .stat-card {
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  box-shadow: inset 0 1px 0 var(--hi-light);
}

.prose .stat-card:nth-child(even) {
  border-top-color: var(--accent-soft);
  background: color-mix(in srgb, var(--bg-panel-2) 55%, var(--bg-panel));
}

.prose .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--accent-dark);
}

.prose .stat-label {
  display: block;
  margin-block-start: 0.3rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- 勾叉清单:只做容器与行卡装饰,不注入任何符号 ---------- */

.prose .check-list {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.prose .check-list li {
  margin: 0;
  padding: 0.68rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  font-size: 0.96rem;
  line-height: 1.72;
}

/* ---------- 结论块 ---------- */

.prose .verdict {
  padding: 1rem 1.15rem 1rem 1.35rem;
  border-inline-start: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--blog-tint-accent);
  font-size: 0.98rem;
  line-height: 1.78;
}

.prose .verdict > :first-child {
  margin-block-start: 0;
}

.prose .verdict > :last-child {
  margin-block-end: 0;
}

/* ---------- 文末推广卡 ---------- */

.promo-block {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.55rem 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(132deg, var(--accent-dark) 0%, var(--accent) 72%, color-mix(in srgb, var(--accent) 70%, var(--accent-soft)) 100%);
  color: var(--blog-on-accent);
  box-shadow: var(--shadow-accent);
  overflow: hidden;
}

.promo-block::before {
  content: "";
  position: absolute;
  inset-block-end: -55%;
  inset-inline-end: -8%;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blog-on-accent) 16%, transparent) 0%, transparent 72%);
  pointer-events: none;
}

.promo-block > * {
  position: relative;
  z-index: 1;
}

.promo-copy {
  min-width: 0;
}

.promo-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.promo-text {
  margin: 0.4rem 0 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--blog-on-accent);
}

.promo-block .btn--primary {
  background: var(--bg-panel);
  border-color: var(--bg-panel);
  color: var(--accent-dark);
  box-shadow: var(--shadow-btn);
}

.promo-block .btn--primary:hover {
  background: var(--blog-on-accent);
  border-color: var(--blog-on-accent);
  color: var(--accent-dark);
}

.promo-block .btn--ghost {
  border-color: color-mix(in srgb, var(--blog-on-accent) 55%, transparent);
  color: var(--blog-on-accent);
}

@media (max-width: 720px) {
  .promo-block {
    padding: 1.35rem 1.25rem;
  }
}

/* ---------- 延伸阅读(related.js 渲染) ---------- */

#related-posts {
  padding-block: 2rem 1rem;
}

.related-heading {
  margin: 0 0 1.1rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 0.85rem;
}

.related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  box-shadow: inset 0 1px 0 var(--hi-light);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.related-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: var(--shadow-accent-soft);
}

.related-card:hover::before {
  opacity: 1;
}

.related-tag {
  align-self: flex-start;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 600;
}

.related-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.003em;
  text-wrap: pretty;
  color: var(--text);
}

.related-date {
  margin-block-start: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

/* ---------- 上一篇 / 下一篇(related.js 渲染) ---------- */

#post-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.85rem;
  padding-block: 1rem 2.4rem;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1.05rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.post-nav-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: var(--shadow-accent-soft);
}

.post-nav-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.post-nav-link--next {
  text-align: right;
}

.post-nav-title {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- 文章页右下角悬浮 CTA(仅文章页使用,列表页不出现) ---------- */

.float-cta {
  position: fixed;
  inset-block-end: clamp(0.9rem, 3vw, 1.6rem);
  inset-inline-end: clamp(0.9rem, 3vw, 1.6rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100vw - 2rem);
  padding: 0.68rem 1.05rem;
  border: 1px solid var(--hi-light);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--blog-on-accent);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: var(--shadow-accent);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.float-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.float-cta svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .float-cta {
    gap: 0.4rem;
    padding: 0.58rem 0.9rem;
    font-size: 0.82rem;
  }

  .float-cta svg {
    width: 14px;
    height: 14px;
  }
}

/* ---------- 动效降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  .crumbs a,
  .post-card,
  .post-card::before,
  .filter-btn,
  .related-card,
  .related-card::before,
  .post-nav-link,
  .float-cta {
    transition: none;
  }

  .post-card:hover,
  .related-card:hover,
  .post-nav-link:hover,
  .float-cta:hover {
    transform: none;
  }
}