/**
 * Article typography v3 — Soft Editorial
 * ui-ux-pro-max: Soft UI Evolution + Content First
 * Base 14px · soft depth · marker accents · no left bars / full-width gradients
 *
 *   h1  24px  ·  h2  20px  ·  h3  18px
 *   h4  16px  ·  h5  15px  ·  h6  14px  ·  p  14px
 */

 .post-content {
  --ri-body-font-weight: 400;
  --article-fs-base: 0.875rem;   /* 14px */
  --article-fs-h6: 0.875rem;     /* 14px */
  --article-fs-h5: 0.9375rem;    /* 15px */
  --article-fs-h4: 1rem;         /* 16px */
  --article-fs-h3: 1.125rem;     /* 18px */
  --article-fs-h2: 1.25rem;      /* 20px */
  --article-fs-h1: 1.5rem;       /* 24px */
  --article-radius: 0.625rem;    /* ~10px Soft UI */
  --article-shadow: 0 1px 2px rgba(15, 17, 23, 0.04),
                    0 4px 12px rgba(15, 17, 23, 0.05);
  --article-accent: var(--ri-primary, #3b6ff5);
  --article-accent-rgb: var(--ri-primary-rgb, 59, 111, 245);

  font-size: var(--article-fs-base);
  font-weight: var(--ri-body-font-weight);
  line-height: 1.75;
  color: var(--ri-gray-800, #1a1c23);
}

.post-content p {
  margin: 0 0 1.15em;
  font-size: var(--article-fs-base);
  font-weight: var(--ri-body-font-weight);
  line-height: 1.75;
}

.post-content :is(li, td, th, figcaption, dd) {
  font-size: var(--article-fs-base);
  line-height: 1.75;
}

.post-content :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
  position: relative;
  color: var(--ri-gray-900, #0f1117);
  font-family: inherit;
  font-feature-settings: "kern" 1, "liga" 1;
  text-wrap: balance;
  border: 0 !important;
  border-image: none !important;
  outline: 0;
}

/* —— H1 · Soft panel —— */
.post-content :is(h1, .h1) {
  margin: 2em 0 0.85em;
  padding: 0.7em 1em;
  font-size: var(--article-fs-h1);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.022em;
  border-radius: var(--article-radius);
  background: var(--ri-gray-100, #f8f9fb);
  box-shadow: var(--article-shadow);
}

.post-content :is(h1, .h1)::before,
.post-content :is(h1, .h1)::after {
  content: none !important;
  display: none !important;
}

/* —— H2 · Soft track + accent pill —— */
.post-content :is(h2, .h2) {
  margin: 2.1em 0 0.75em;
  padding: 0 0 0.7em;
  font-size: var(--article-fs-h2);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.016em;
  background: none;
  box-shadow: none;
}

.post-content :is(h2, .h2)::before {
  content: none !important;
  display: none !important;
}

.post-content :is(h2, .h2)::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 12rem;
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--article-accent) 0,
      var(--article-accent) 2.25rem,
      rgba(var(--article-accent-rgb), 0.12) 2.25rem,
      rgba(var(--article-accent-rgb), 0.12) 100%
    );
}

/* —— H3 · Marker highlight（荧光笔） —— */
.post-content :is(h3, .h3) {
  display: inline-block;
  max-width: 100%;
  margin: 1.85em 0 0.65em;
  padding: 0.12em 0.28em;
  font-size: var(--article-fs-h3);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  border-radius: 0.15em;
  background: linear-gradient(
    transparent 58%,
    rgba(var(--article-accent-rgb), 0.16) 58%
  );
  box-shadow: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.post-content :is(h3, .h3)::before,
.post-content :is(h3, .h3)::after {
  content: none !important;
  display: none !important;
}

/* —— H4 · Soft accent wordmark —— */
.post-content :is(h4, .h4) {
  display: block;
  margin: 1.65em 0 0.55em;
  padding: 0;
  font-size: var(--article-fs-h4);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--article-accent);
  background: none;
  box-shadow: none;
}

.post-content :is(h4, .h4)::before {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-right: 0.45em;
  margin-bottom: 0.08em;
  vertical-align: middle;
  border-radius: 0.12em;
  background: rgba(var(--article-accent-rgb), 0.2);
  box-shadow: inset 0 0 0 1.5px var(--article-accent);
}

.post-content :is(h4, .h4)::after {
  content: none !important;
  display: none !important;
}

/* —— H5 · Soft chip —— */
.post-content :is(h5, .h5) {
  display: inline-block;
  margin: 1.5em 0 0.45em;
  padding: 0.28em 0.7em;
  font-size: var(--article-fs-h5);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ri-gray-700, #2d3039);
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(15, 17, 23, 0.06),
    var(--article-shadow);
}

.post-content :is(h5, .h5)::before,
.post-content :is(h5, .h5)::after {
  content: none !important;
  display: none !important;
}

/* —— H6 · Quiet label —— */
.post-content :is(h6, .h6) {
  display: block;
  margin: 1.4em 0 0.4em;
  padding: 0;
  font-size: var(--article-fs-h6);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: var(--ri-gray-500, #9499a5);
  background: none;
  box-shadow: none;
}

.post-content :is(h6, .h6)::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1px;
  margin-right: 0.5em;
  margin-bottom: 0.28em;
  vertical-align: middle;
  background: var(--ri-gray-400, #c5cad4);
}

.post-content :is(h6, .h6)::after {
  content: none !important;
  display: none !important;
}

/* 首个标题 / 连排 */
.post-content > :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6):first-child {
  margin-top: 0;
}

.post-content :is(h1, h2, h3, h4, h5, h6) + :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 1.2em;
}

/* —— Dark mode —— */
[data-bs-theme="dark"] .post-content {
  --article-shadow: 0 1px 2px rgba(0, 0, 0, 0.2),
                    0 6px 16px rgba(0, 0, 0, 0.25);
  color: var(--ri-gray-300, #dde1e8);
}

[data-bs-theme="dark"] .post-content :is(h1, h2, .h1, .h2) {
  color: var(--ri-gray-100, #f8f9fb);
}

[data-bs-theme="dark"] .post-content :is(h1, .h1) {
  background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .post-content :is(h2, .h2)::after {
  background:
    linear-gradient(
      90deg,
      var(--article-accent) 0,
      var(--article-accent) 2.25rem,
      rgba(var(--article-accent-rgb), 0.22) 2.25rem,
      rgba(var(--article-accent-rgb), 0.22) 100%
    );
}

[data-bs-theme="dark"] .post-content :is(h3, .h3) {
  color: var(--ri-gray-100, #f8f9fb);
  background: linear-gradient(
    transparent 58%,
    rgba(var(--article-accent-rgb), 0.28) 58%
  );
}

[data-bs-theme="dark"] .post-content :is(h4, .h4) {
  color: #8aa4ff;
}

[data-bs-theme="dark"] .post-content :is(h4, .h4)::before {
  background: rgba(var(--article-accent-rgb), 0.25);
  box-shadow: inset 0 0 0 1.5px #8aa4ff;
}

[data-bs-theme="dark"] .post-content :is(h5, .h5) {
  color: var(--ri-gray-200, #eef0f5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .post-content :is(h6, .h6) {
  color: var(--ri-gray-400, #c5cad4);
}

[data-bs-theme="dark"] .post-content :is(h6, .h6)::before {
  background: var(--ri-gray-500, #9499a5);
}

@media (max-width: 575.98px) {
  .post-content {
    --article-fs-h1: 1.375rem; /* 22px */
  }

  .post-content :is(h1, .h1) {
    padding: 0.65em 0.85em;
  }

  .post-content :is(h2, .h2)::after {
    max-width: 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-content :is(h1, h2, h3, h4, h5, h6) {
    transition: none;
  }
}

/* 去掉左侧色条 */
.post-content blockquote {
  border-left: 0;
}

.entry-copyright {
  border-left: 0;
}

[data-bs-theme="dark"] .entry-copyright {
  border-left: 0;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
 padding:0;
}
.card{
  border-radius: 0;
}