/* ==========================================================================
   VPNEM · 博客样式包(列表页 / 文章页)
   所有颜色、圆角、字体均取自 base.css 的 :root 设计令牌。
   文章页结构约定:
   main > .crumbs(.reading-wrap) + .article-hero + .article-body(.reading-wrap)
        + .post-promo + #post-nav + #related-posts
   其中 .article-hero 需作为 main 的直接子元素,色带才能横向通栏。
   ========================================================================== */

:root {
  --read-col: 54rem;
  --read-gutter: clamp(1.5rem, 4vw, 2.5rem);
  --blog-list-col: 64rem;
}

/* --------------------------------------------------------------------------
   1. 通用:阅读列 / 屏幕阅读器文本 / 面包屑
   -------------------------------------------------------------------------- */

.reading-wrap,
:root .reading-wrap,
.article-body,
.article-body.prose,
.post-promo,
#related-posts,
#post-nav {
  width: 100%;
  max-width: calc(var(--read-col) + var(--read-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--read-gutter);
}

.article-body .prose {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.crumbs {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li {
  min-width: 0;
}

.crumbs li:not(:first-child)::before {
  content: "/";
  margin-inline: 0.5rem;
  color: color-mix(in srgb, var(--muted) 50%, transparent);
}

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

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

.crumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.meta-sep {
  color: color-mix(in srgb, var(--muted) 55%, transparent);
}

.post-tag {
  font-weight: 600;
  color: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   2. 列表页:hero / 筛选 / 文章卡
   -------------------------------------------------------------------------- */

.blog-col {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--blog-list-col) + var(--read-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--read-gutter);
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 3.5vw, 2.25rem);
}

.blog-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -11rem;
  right: -9rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 58%, color-mix(in srgb, var(--accent-2) 32%, transparent), transparent 66%);
  opacity: 0.55;
  pointer-events: none;
}

.blog-hero h1 {
  margin: 0.7rem 0 0.85rem;
  max-width: 46rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  color: var(--text);
}

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

.blog-index {
  padding-block: 0 clamp(3rem, 7vw, 5rem);
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.tag-btn {
  min-height: 2.25rem;
  padding: 0.5rem 1.05rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.tag-btn:hover {
  color: var(--accent-dark);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

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

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.1rem;
}

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

.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.18s ease;
}

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

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

.post-card.is-hidden {
  display: none;
}

.post-card .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.post-card .post-meta time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.post-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

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

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

.post-card .post-summary {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--muted);
}

.post-card .link-more {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 0.12rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.post-card .link-more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.post-empty {
  margin: 1.5rem 0 0;
  padding: 1.6rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
  background: var(--bg-panel);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
}

/* --------------------------------------------------------------------------
   3. 文章页 hero:通栏色带(full-bleed-band)
   -------------------------------------------------------------------------- */

.article-hero {
  position: relative;
  overflow: hidden;
  margin-top: 1.25rem;
  padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(2rem, 4.5vw, 3rem);
  padding-inline: max(var(--read-gutter), calc(50% - var(--read-col) / 2));
  background: linear-gradient(180deg, var(--bg-panel) 0%, color-mix(in srgb, var(--bg-panel) 55%, var(--bg)) 100%);
  border-block: 1px solid var(--border);
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--relay) 24%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}

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

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.article-meta time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

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

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

/* --------------------------------------------------------------------------
   4. 文章正文富样式
   -------------------------------------------------------------------------- */

.article-body {
  counter-reset: blog-sec;
  padding-block: clamp(2rem, 4.5vw, 3rem) 0;
}

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

.article-body p {
  margin: 0 0 1.35em;
}

.article-body 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.2em;
}

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

.article-body ul,
.article-body ol {
  margin: 0 0 1.45em;
  padding-left: 1.35em;
}

.article-body li {
  margin-bottom: 0.55em;
}

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

.article-body ul li::marker {
  color: var(--accent);
}

.article-body ol li::marker {
  color: var(--accent-dark);
  font-family: var(--font-mono);
}

.article-body h2 {
  counter-increment: blog-sec;
  margin: 2.7em 0 0.95em;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2.2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  color: var(--text);
}

.article-body h2::before {
  content: counter(blog-sec, decimal-leading-zero);
  margin-right: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent);
}

.article-body h2::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.article-body h3 {
  margin: 2em 0 0.7em;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  color: var(--text);
}

.article-body blockquote {
  margin: 1.8em 0;
  padding: 0.95rem 1.25rem;
  font-size: 0.9688rem;
  line-height: 1.85;
  color: var(--muted);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-panel));
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

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

.article-body hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--border);
}

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

.article-body code {
  padding: 0.14em 0.42em;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: color-mix(in srgb, var(--text) 88%, var(--relay));
  background: color-mix(in srgb, var(--relay) 12%, var(--bg-panel));
  border-radius: var(--r-xs);
}

.article-body pre {
  position: relative;
  margin: 1.8em 0;
  padding: 2.15rem 1.25rem 1.15rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--white) 90%, var(--bg-panel2));
  background: var(--text);
  border-radius: var(--r-md);
  -webkit-overflow-scrolling: touch;
}

.article-body pre::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--error);
  box-shadow: 1.05rem 0 0 var(--warn), 2.1rem 0 0 var(--success);
}

.article-body pre code {
  display: block;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border-radius: 0;
}

.article-body table {
  width: 100%;
  margin: 1.8em 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.article-body thead th {
  padding: 0.7rem 0.85rem;
  text-align: left;
  font-weight: 700;
  color: var(--bg-panel);
  background: var(--text);
}

.article-body thead th:first-child {
  border-top-left-radius: var(--r-sm);
}

.article-body thead th:last-child {
  border-top-right-radius: var(--r-sm);
}

.article-body tbody td {
  padding: 0.68rem 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.article-body tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--bg-panel2) 42%, transparent);
}

.article-body tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

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

  .article-body table th:first-child,
  .article-body table td:first-child {
    white-space: nowrap;
  }
}

/* 数据卡网格 */

.article-body .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.85rem;
  margin: 1.9em 0;
  padding: 0;
  list-style: none;
}

.article-body .stat-card {
  padding: 1.05rem 1.1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-md);
}

.article-body .stat-card:nth-child(3n + 2) {
  background: color-mix(in srgb, var(--relay) 7%, var(--bg-panel));
  border-top-color: var(--relay);
}

.article-body .stat-card:nth-child(3n) {
  background: color-mix(in srgb, var(--accent-2) 13%, var(--bg-panel));
  border-top-color: var(--accent-2);
}

.article-body .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

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

/* 勾叉清单(勾叉符号由正文文本自带,样式不注入任何标记) */

.article-body .check-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.8em 0;
  padding: 0;
  list-style: none;
}

.article-body .check-list li {
  margin: 0;
  padding: 0.72rem 0.95rem;
  font-size: 0.9688rem;
  line-height: 1.75;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

/* 结论块 */

.article-body .verdict {
  margin: 1.9em 0;
  padding: 1.05rem 1.2rem 1.05rem 1.35rem;
  font-size: 0.9688rem;
  line-height: 1.85;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-panel));
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.article-body .verdict strong {
  color: var(--accent-dark);
}

.article-body .verdict p:last-child {
  margin-bottom: 0;
}

/* 提示块 */

.article-body .callout,
.article-body .callout-warn,
.article-body .callout-success {
  position: relative;
  margin: 1.9em 0;
  padding: 1.05rem 1.2rem 1.05rem 3.15rem;
  font-size: 0.9688rem;
  line-height: 1.8;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-panel));
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.article-body .callout::before,
.article-body .callout-warn::before,
.article-body .callout-success::before {
  position: absolute;
  left: 1.05rem;
  top: 1.1rem;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  border-radius: 50%;
}

.article-body .callout::before {
  content: "i";
  background: var(--accent);
}

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

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

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

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

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

.post-promo {
  margin-top: clamp(2rem, 4.5vw, 3rem);
}

.post-promo-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 2.35rem);
  color: var(--white);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 52%, var(--relay) 135%);
  border-radius: var(--r-lg);
}

.post-promo-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--white) 34%, transparent) 1px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
}

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

.post-promo-brand {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 78%, var(--accent-2));
}

.post-promo h2 {
  margin: 0.55rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  color: var(--white);
}

.post-promo p {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  font-size: 0.9688rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--white) 88%, var(--accent-2));
}

.post-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.post-promo .btn-primary {
  color: var(--accent-dark);
  background: var(--white);
  border-color: var(--white);
}

.post-promo .btn-primary:hover {
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--white) 88%, var(--accent-2));
  border-color: transparent;
}

.post-promo .btn-secondary {
  color: var(--white);
  background: transparent;
  border-color: color-mix(in srgb, var(--white) 62%, transparent);
}

.post-promo .btn-secondary:hover {
  color: var(--white);
  background: color-mix(in srgb, var(--white) 14%, transparent);
  border-color: var(--white);
}

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

#post-nav {
  padding-top: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

#related-posts {
  padding-top: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

#post-nav:empty,
#related-posts:empty {
  display: none;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.post-nav-link {
  display: block;
  padding: 1rem 1.15rem 1.1rem;
  color: var(--text);
  text-decoration: none;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--r-md);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.post-nav-link:hover {
  transform: translateY(-2px);
  border-top-color: var(--accent);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 12%, transparent);
}

.post-nav-dir {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
}

.post-nav-title {
  display: block;
  font-size: 0.9688rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
}

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

#related-posts h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.related-card {
  display: block;
  padding: 1.05rem 1.1rem 1.15rem;
  color: var(--text);
  text-decoration: none;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--relay) 13%, transparent);
}

.related-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.related-meta time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.related-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  color: var(--text);
}

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

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

/* --------------------------------------------------------------------------
   7. 悬浮 CTA(仅文章页使用;列表页不放)
   -------------------------------------------------------------------------- */

.float-cta {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.6rem);
  bottom: clamp(0.9rem, 3vw, 1.6rem);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--r-pill);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 32%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.float-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--accent) 38%, transparent);
}

.float-cta svg {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
}

/* --------------------------------------------------------------------------
   8. 响应式
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  }

  .blog-hero::before {
    right: -14rem;
    opacity: 0.4;
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

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

  .article-hero {
    margin-top: 1rem;
  }

  .float-cta {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   9. 动效降级
   -------------------------------------------------------------------------- */

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

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