/* ==========================================================================
   VPN-LG · 博客系统样式(列表页 + 文章页)
   母题:线路日程本 —— 错位色块、日程刻度、六边节点
   所有颜色 / 圆角 / 字体一律引用 :root 设计令牌
   ========================================================================== */

/* ---------- 1. 阅读列与共用容器 ---------- */

.blog-list,
.article-page {
  --reading-col: 54rem;
  --list-col: 68rem;
  --blog-pad: 1.5rem;
}

.blog-col,
.article-hero-inner,
.reading-wrap,
.wrap.reading-wrap,
.breadcrumb {
  width: 100%;
  max-width: calc(var(--reading-col, 54rem) + 2 * var(--blog-pad, 1.5rem));
  margin-inline: auto;
  padding-inline: var(--blog-pad, 1.5rem);
}

.blog-list .blog-hero-inner,
.blog-list .blog-index-inner {
  width: 100%;
  max-width: calc(var(--list-col, 68rem) + 2 * var(--blog-pad, 1.5rem));
  margin-inline: auto;
  padding-inline: var(--blog-pad, 1.5rem);
}

/* 中文标题防断词:桌面锁词,窄屏放开 */
.no-break {
  white-space: nowrap;
}

/* ---------- 2. 列表页 hero(错位色块 + 年份垫底) ---------- */

.blog-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.75rem, 4vw, 2.5rem);
  background-image:
    radial-gradient(120% 90% at 50% -20%, var(--accent-10), transparent 62%),
    linear-gradient(180deg, var(--accent-06), transparent 70%);
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.blog-hero-inner {
  position: relative;
}

.blog-hero-slab {
  position: absolute;
  left: 0;
  top: clamp(1rem, 3vw, 1.75rem);
  width: min(30rem, 64%);
  height: clamp(4.5rem, 9vw, 6.5rem);
  border-radius: var(--r-lg);
  background-image: linear-gradient(120deg, var(--accent-14), var(--accent-06));
  z-index: 0;
  pointer-events: none;
}

.blog-hero-year {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-10);
  pointer-events: none;
  user-select: none;
}

.blog-hero-copy {
  position: relative;
  z-index: 1;
}

.blog-hero-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}

.blog-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: pretty;
}

.blog-hero-lede {
  margin: 1rem 0 0;
  max-width: 44rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}

/* ---------- 3. 标签筛选 ---------- */

.blog-index {
  padding-block: clamp(1.75rem, 4vw, 2.5rem) clamp(3rem, 7vw, 4.5rem);
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.tag-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

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

.tag-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.blog-count {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------- 4. 文章卡片网格 ---------- */

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

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background-image: linear-gradient(90deg, var(--accent), var(--honey));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-float);
}

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

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.post-meta .badge {
  font-family: var(--font-body);
}

.post-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}

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

.post-summary {
  flex: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.post-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  align-self: flex-start;
  color: var(--accent-dark);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.post-more:hover {
  color: var(--text);
}

.post-more .arr,
.float-cta .arr,
.promo-block .arr {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-empty {
  margin: 0;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-panel2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r);
}

/* ---------- 5. 面包屑 ---------- */

.breadcrumb {
  margin-top: 1.5rem;
  padding-block: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb ol,
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--border-strong);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-dark);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* ---------- 6. 文章 hero(错位色块 + 六边节点) ---------- */

.article-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 2.5rem);
  background-image:
    radial-gradient(110% 80% at 40% -30%, var(--accent-10), transparent 60%),
    linear-gradient(180deg, var(--accent-07), transparent 75%);
  background-color: var(--bg);
}

.article-hero-inner {
  position: relative;
}

.article-hero-slab {
  position: absolute;
  left: 0;
  top: clamp(1.25rem, 3vw, 2rem);
  width: min(34rem, 70%);
  height: clamp(6rem, 12vw, 8.5rem);
  border-radius: var(--r-lg);
  background-image: linear-gradient(135deg, var(--accent-14), var(--accent-06));
  z-index: 0;
  pointer-events: none;
}

.article-hero-hex {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(5.5rem, 14vw, 9rem);
  height: clamp(5.5rem, 14vw, 9rem);
  background: var(--accent-10);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  z-index: 0;
  pointer-events: none;
}

.article-hero-copy {
  position: relative;
  z-index: 1;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-meta time,
.article-meta .meta-read {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--text-muted);
}

.article-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: pretty;
}

.article-lede {
  margin: 1.1rem 0 0;
  max-width: 46rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}

@media (min-width: 768px) {
  .blog-hero-lede,
  .article-lede,
  .article-meta {
    padding-inline-start: 1.75rem;
  }
}

/* ---------- 7. 正文排版 ---------- */

.reading-wrap {
  padding-block: clamp(1.75rem, 3.5vw, 2.25rem) clamp(1.25rem, 3vw, 1.75rem);
}

.article-body,
.prose {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
  counter-reset: h2c;
}

.article-body > :first-child,
.prose > :first-child {
  margin-top: 0;
}

.article-body p,
.prose p {
  margin: 0 0 1.25rem;
}

.article-body a,
.prose a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent-30);
  text-underline-offset: 0.2em;
}

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

.article-body h2,
.prose h2 {
  margin: 2.5rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: pretty;
  counter-increment: h2c;
}

.article-body h2::before,
.prose h2::before {
  content: counter(h2c, decimal-leading-zero);
  display: inline-block;
  margin-right: 0.55rem;
  padding: 0.12rem 0.45rem;
  background: var(--accent-12);
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  vertical-align: 0.12em;
}

.article-body h3,
.prose h3 {
  margin: 1.9rem 0 0.75rem;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: pretty;
}

.article-body ul,
.article-body ol,
.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.4rem;
}

.article-body li,
.prose li {
  margin-bottom: 0.5rem;
}

.article-body li:last-child,
.prose li:last-child {
  margin-bottom: 0;
}

.article-body img,
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
}

.article-body hr,
.prose hr {
  margin: 2.25rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.article-body blockquote,
.prose blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-panel2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--text-muted);
}

.article-body blockquote p:last-child,
.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* ---------- 8. 富文本组件 ---------- */

.article-body code,
.prose code {
  padding: 0.1rem 0.35rem;
  background: var(--bg-panel2);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent-dark);
}

.article-body pre,
.prose pre {
  position: relative;
  margin: 1.75rem 0;
  padding: 3.25rem 1.25rem 1.25rem;
  background: var(--text);
  color: var(--bg-panel);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  overflow-x: auto;
}

.article-body pre::before,
.prose pre::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2.25rem;
  background-color: color-mix(in srgb, var(--bg-panel) 8%, transparent);
  background-image:
    radial-gradient(circle 4px at 1.15rem 50%, var(--mac-red) 98%, transparent 100%),
    radial-gradient(circle 4px at 2.35rem 50%, var(--mac-yellow) 98%, transparent 100%),
    radial-gradient(circle 4px at 3.55rem 50%, var(--mac-green) 98%, transparent 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--bg-panel) 14%, transparent);
  border-radius: var(--r) var(--r) 0 0;
}

.article-body pre code,
.prose pre code {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

.article-body table,
.prose table {
  width: 100%;
  margin: 1.75rem 0;
  border: 1px solid var(--border);
  border-collapse: collapse;
  border-radius: var(--r);
  background: var(--bg-panel);
  font-size: 0.9375rem;
  overflow: hidden;
}

.article-body thead th,
.prose thead th {
  padding: 0.7rem 0.9rem;
  background: var(--text);
  color: var(--bg-panel);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.article-body tbody td,
.prose tbody td {
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.article-body tbody tr:nth-child(even),
.prose tbody tr:nth-child(even) {
  background: var(--bg-panel2);
}

.article-body tbody tr:hover,
.prose tbody tr:hover {
  background: var(--accent-07);
}

.table-scroll {
  margin: 1.75rem 0;
  overflow-x: auto;
}

.table-scroll table {
  margin: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.875rem;
  margin: 1.75rem 0;
}

.stat-card {
  --tone: var(--accent);
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.15rem 1rem;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--tone) 10%, var(--bg-panel)), var(--bg-panel) 72%);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
}

.stat-card:nth-child(3n + 2) {
  --tone: var(--honey);
}

.stat-card:nth-child(3n) {
  --tone: var(--success);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--tone);
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* 勾叉语义由文章 li 文本开头携带,这里只做行卡装饰 */
.check-list {
  display: grid;
  gap: 0.625rem;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  margin: 0;
  padding: 0.8rem 1rem 0.8rem 1.1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
  font-size: 0.9688rem;
  line-height: 1.8;
}

.check-list li:nth-child(even) {
  background: var(--bg-panel2);
  border-left-color: var(--accent-dark);
}

.verdict {
  margin: 2rem 0;
  padding: 1.1rem 1.25rem 1.1rem 1.35rem;
  background-image: linear-gradient(180deg, var(--accent-07), var(--bg-panel));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
}

.verdict p:last-child,
.verdict > :last-child {
  margin-bottom: 0;
}

.verdict > strong:first-child,
.verdict > b:first-child,
.verdict p:first-child strong:first-child {
  color: var(--accent-dark);
}

.article-body .callout,
.prose .callout {
  position: relative;
  margin: 1.75rem 0;
  padding: 1.05rem 1.25rem 1.05rem 3.4rem;
  background: var(--bg-panel2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r);
  color: var(--text);
  font-size: 0.9688rem;
  line-height: 1.8;
}

.article-body .callout::before,
.prose .callout::before {
  content: "i";
  position: absolute;
  left: 1.05rem;
  top: 1.1rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent-dark);
  border-radius: 50%;
  color: var(--bg-panel);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.article-body .callout p:last-child,
.prose .callout p:last-child {
  margin-bottom: 0;
}

.article-body .callout-warn,
.prose .callout-warn {
  background: color-mix(in srgb, var(--warn) 12%, var(--bg-panel));
  border-left-color: var(--warn);
}

.article-body .callout-warn::before,
.prose .callout-warn::before {
  content: "!";
  background: var(--warn);
}

.article-body .callout-success,
.prose .callout-success {
  background: color-mix(in srgb, var(--success) 12%, var(--bg-panel));
  border-left-color: var(--success);
}

.article-body .callout-success::before,
.prose .callout-success::before {
  content: "✓";
  background: var(--success);
}

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

.promo-block {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  max-width: calc(var(--reading-col, 54rem) + 2 * var(--blog-pad, 1.5rem));
  margin: 2.5rem auto 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background-image: linear-gradient(125deg, var(--accent) 0%, var(--honey) 100%);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  color: var(--text);
}

.promo-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--text) 8%, transparent) 0 1px, transparent 1px 10px);
  border-radius: inherit;
  opacity: 0.55;
  pointer-events: none;
}

.promo-block .promo-text {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.promo-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: pretty;
}

.promo-block p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--text) 78%, transparent);
}

.promo-block .btn-primary {
  position: relative;
  z-index: 1;
  background: var(--bg-panel);
  background-image: none;
  color: var(--text);
  box-shadow: var(--shadow-btn);
}

.promo-block .btn-primary:hover {
  background: var(--bg-panel2);
  color: var(--text);
}

/* ---------- 10. 延伸阅读 / 上一篇下一篇 ---------- */

#related-posts {
  width: 100%;
  max-width: calc(var(--reading-col, 54rem) + 2 * var(--blog-pad, 1.5rem));
  margin-inline: auto;
  padding-inline: var(--blog-pad, 1.5rem);
  padding-top: 2.25rem;
}

#post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  width: 100%;
  max-width: calc(var(--reading-col, 54rem) + 2 * var(--blog-pad, 1.5rem));
  margin-inline: auto;
  padding-inline: var(--blog-pad, 1.5rem);
  padding-block: 0 2.25rem;
}

.reading-wrap #related-posts,
.reading-wrap #post-nav {
  max-width: none;
  padding-inline: 0;
}

#related-posts:empty {
  padding-top: 0;
}

#post-nav:empty {
  padding-block: 0;
}

.related-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}

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

.related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  padding: 1.1rem 1.1rem 1.15rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background-image: linear-gradient(90deg, var(--accent), var(--honey));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-float);
}

.related-card:hover::after {
  transform: scaleX(1);
}

.related-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.related-meta .badge {
  font-family: var(--font-body);
}

.related-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.related-card-title a {
  color: var(--text);
  text-decoration: none;
}

.related-card-title a:hover {
  color: var(--accent-dark);
}

.related-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.post-nav-link {
  position: relative;
  flex: 1 1 16rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.15rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-nav-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-float);
}

.post-nav-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
}

.post-nav-title {
  color: var(--text);
  font-size: 0.9688rem;
  font-weight: 600;
  line-height: 1.6;
}

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

.post-nav-next .post-nav-label {
  order: 2;
}

/* ---------- 11. 悬浮 CTA(仅文章页使用) ---------- */

.float-cta {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100vw - 2rem);
  padding: 0.7rem 1.15rem;
  background-image: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: var(--r-pill);
  color: var(--bg-panel);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow-float);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.float-cta:hover {
  transform: translateY(-2px);
}

/* ---------- 12. 响应式与降级 ---------- */

@media (max-width: 768px) {
  .blog-hero-slab,
  .article-hero-slab {
    width: 80%;
  }

  .blog-hero-year {
    font-size: clamp(4rem, 22vw, 6rem);
  }

  .article-hero-hex {
    width: 5rem;
    height: 5rem;
  }

  .post-card {
    padding: 1.35rem 1.25rem 1.2rem;
  }
}

@media (max-width: 640px) {
  .no-break {
    white-space: normal;
  }

  .float-cta {
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    padding: 0.6rem 0.95rem;
    font-size: 0.875rem;
  }

  .post-nav-next {
    text-align: left;
  }
}

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

  .article-body thead th,
  .prose thead th {
    white-space: nowrap;
  }
}

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

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

  .related-card::after {
    transition: none;
  }
}