/**
 * AKSRT Main v5 — 博客/个人站完整前端
 */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== 阅读进度条（单篇文章顶 fixed）========== */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transition: width 0.1s ease-out;
}

/* ========== 站点外壳 ========== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 32px;
  }
}

/* ========== 导航栏 ========== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* WordPress Admin Bar 存在时导航下移 */
body.admin-bar .site-nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-nav { top: 46px; }
}

.site-nav--hero-blend {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-bottom-color: transparent;
  background: transparent;
  color: #fff;
}

/* Hero blend 模式下 Admin Bar 偏移 */
body.admin-bar .site-nav--hero-blend {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-nav--hero-blend { top: 46px; }
}

.site-nav--hero-blend .site-brand,
.site-nav--hero-blend ul.nav-desktop a,
.site-nav--hero-blend .nav-desktop--fallback a {
  color: rgba(255, 255, 255, 0.92);
}

.site-nav--hero-blend ul.nav-desktop a:hover,
.site-nav--hero-blend .nav-desktop--fallback a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-nav--hero-blend .icon-btn {
  color: rgba(255, 255, 255, 0.9);
}

.site-nav--hero-blend .icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-nav--hero-blend .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.site-nav--hero-blend .btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.site-nav--hero-blend .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.site-nav--hero-blend .btn-primary:hover {
  opacity: 0.92;
  color: var(--color-primary-dark);
}

.site-nav--hero-blend .site-brand__logo:not(.custom-logo-link) {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.site-nav__inner {
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 768px) {
  .site-nav__inner {
    padding: 0 24px;
  }
}

.site-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.site-brand:hover {
  color: var(--color-text);
}

.site-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  font-family: var(--font-heading);
  overflow: hidden;
}

.site-brand__logo.custom-logo-link,
.site-brand__logo .custom-logo-link {
  background: none;
  padding: 0;
  display: block;
  width: 40px;
  height: 40px;
}

.site-brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.site-brand__name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

ul.nav-desktop {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 4px;
}

.nav-desktop--fallback {
  display: none;
  align-items: center;
  gap: 8px;
}

ul.nav-desktop a,
.nav-desktop--fallback a {
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  transition: color 0.2s, background 0.2s;
}

ul.nav-desktop a:hover,
.nav-desktop--fallback a:hover {
  color: var(--color-primary);
  background: var(--color-primary-50);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: background 0.2s, color 0.2s, transform 0.5s ease;
}

.icon-btn:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text);
}

.icon-btn:active {
  transform: scale(0.96);
}

.icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.theme-toggle.is-animating svg {
  transform: rotate(360deg);
}

.nav-auth {
  display: none;
  align-items: center;
  gap: 8px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:active {
  transform: translateY(1px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
}

.btn-sm {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-lg {
  height: 48px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-danger {
  background: var(--color-error);
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(0.95);
  color: #fff;
}

.nav-toggle {
  display: flex;
}

@media (min-width: 768px) {
  ul.nav-desktop,
  .nav-desktop--fallback {
    display: flex;
  }

  .nav-auth {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* 用户头像与下拉 */
.nav-user {
  position: relative;
}

.nav-user__toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-avatar);
  padding: 0;
  border: 2px solid var(--color-border);
  cursor: pointer;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.nav-user__toggle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-nav--hero-blend .nav-user__toggle {
  border-color: rgba(255, 255, 255, 0.5);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  max-width: calc(100vw - 32px);
  padding: 16px 0;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.user-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown__profile {
  text-align: center;
  padding: 0 16px 12px;
}

.user-dropdown__profile img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  margin-bottom: 8px;
}

.user-dropdown__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
}

.user-dropdown__email {
  font-size: 12px;
  color: var(--color-text-muted);
  word-break: break-all;
}

.user-dropdown__sep {
  height: 1px;
  background: var(--color-border);
  margin: 8px 0;
}

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 16px;
  height: 40px;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--color-text);
  font-family: var(--font-heading);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: var(--color-bg-tertiary);
}

.user-dropdown__logout {
  color: var(--color-error) !important;
}

.user-dropdown .badge-dot {
  margin-left: auto;
  min-width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-error);
}

/* 导航内搜索（展开） */
.nav-search-panel {
  display: none;
  padding: 12px 0 16px;
  border-top: 1px solid var(--color-border);
}

.nav-search-panel.is-open {
  display: block;
}

.nav-search {
  position: relative;
}

.nav-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.nav-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  background: var(--color-bg-tertiary);
  color: var(--color-text);
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  font-family: var(--font-heading);
}

.nav-search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-50);
}

.nav-search input::placeholder {
  color: var(--color-text-muted);
}

/* 移动端抽屉 */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.nav-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100vw, 360px);
  height: 100vh;
  max-height: 100dvh;
  background: var(--color-bg);
  z-index: 1210;
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  transition: transform 0.32s ease;
  display: flex;
  flex-direction: column;
  overflow: auto;
  pointer-events: none;
  visibility: hidden;
}

.nav-drawer.is-open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-weight: 700;
}

.nav-drawer__menu {
  flex: 1;
  padding: 16px 20px 32px;
}

.nav-drawer__menu a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
}

.nav-drawer__menu a:hover {
  color: var(--color-primary);
}

.nav-drawer__menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-drawer__auth {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--color-border);
}

.nav-drawer__auth .btn-outline,
.nav-drawer__auth .btn-primary {
  width: 100%;
}

/* ========== Hero ========== */
.hero-spacer {
  padding-top: var(--nav-height);
}

.hero {
  position: relative;
  min-height: clamp(420px, 58vh, 620px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.hero--gradient {
  background: linear-gradient(135deg, #88ABDA 0%, #6690c4 100%);
}

.hero--gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(0, 0, 0, 0.2), transparent);
  pointer-events: none;
}

.hero--image {
  background: #111;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 100%);
}

.hero--video .hero__video-wrap {
  position: absolute;
  inset: 0;
}

.hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--video .hero__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 16px 120px;
}

.hero__content--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin: 0 auto 16px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin: 0 auto 32px;
  max-width: 560px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 1px 6px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero__cta:hover {
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-search {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.hero-search--pill input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 48px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  box-sizing: border-box;
  outline: none;
  font-family: var(--font-heading);
}

.hero-search--pill input::placeholder {
  color: var(--color-text-muted);
}

.hero-search--pill .hero-search__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.hero-scroll {
  position: absolute;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0.65;
  animation: hero-bounce 2.2s infinite;
}

@keyframes hero-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* Hero 轮播 */
.hero--slider {
  min-height: clamp(420px, 58vh, 620px);
  color: #fff;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.hero__slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero__slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide-bg-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.hero__slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
}

.hero__content--slide {
  position: absolute;
  bottom: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: calc(100% - 32px);
  max-width: 720px;
  text-align: center;
}

.hero__controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-avatar);
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.hero__btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.hero__dots {
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-avatar);
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
}

.hero__dot[aria-selected="true"] {
  background: #fff;
  transform: scale(1.25);
}

.hero-search--floating {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: calc(100% - 32px);
  max-width: 520px;
}

@media (max-width: 767px) {
  .hero__content--slide {
    top: 42%;
    transform: translate(-50%, -50%);
  }

  .hero-search--floating {
    bottom: 100px;
  }
}

.banner-slider {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.banner-slider--hero {
  min-height: clamp(320px, 52vw, 520px);
}

.banner-slider--inline {
  min-height: clamp(220px, 32vw, 340px);
  margin-bottom: 28px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

.banner-slider--content-top {
  min-height: clamp(260px, 30vw, 380px);
  margin-bottom: 28px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

.banner-slider--content-top .hero__slides,
.banner-slider--inline .hero__slides,
.banner-slider--content-top .hero__slide,
.banner-slider--inline .hero__slide,
.banner-slider--content-top .hero__slide-bg,
.banner-slider--inline .hero__slide-bg,
.banner-slider--content-top .hero__slide-overlay,
.banner-slider--inline .hero__slide-overlay {
  border-radius: inherit;
}

.banner-slider__content {
  bottom: 56px;
  max-width: 840px;
}

.banner-slider--inline .banner-slider__content {
  bottom: 54px;
  width: calc(100% - 40px);
}

.banner-slider--content-top .banner-slider__content {
  bottom: 54px;
  width: calc(100% - 40px);
  max-width: 920px;
}

.banner-slider--content-top .hero__title,
.banner-slider--inline .hero__title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.banner-slider--content-top .hero__subtitle,
.banner-slider--inline .hero__subtitle {
  margin-bottom: 0;
  max-width: 680px;
}

@media (max-width: 767px) {
  .hero,
  .hero--slider {
    min-height: clamp(460px, 74vh, 560px);
  }

  .banner-slider--hero {
    min-height: 240px;
  }

  .banner-slider--content-top,
  .banner-slider--inline {
    min-height: 280px;
    margin-bottom: 24px;
  }

  .banner-slider__content,
  .banner-slider--content-top .banner-slider__content,
  .banner-slider--inline .banner-slider__content {
    bottom: 48px;
    width: calc(100% - 24px);
  }
}

/* ========== 面包屑 ========== */
.breadcrumbs {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.breadcrumbs a {
  color: var(--color-text-secondary);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs__sep {
  margin: 0 8px;
  opacity: 0.6;
}

/* ========== 主布局 ========== */
.content-shell {
  width: 100%;
  margin: 0 auto;
  padding: 32px 16px 48px;
  max-width: var(--content-max, var(--container-max));
}

@media (min-width: 768px) {
  .content-shell {
    padding: 40px 24px 56px;
  }
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1360px) {
  .content-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, var(--sidebar-width));
    gap: 24px;
  }
}

.content-layout__primary {
  min-width: 0;
}

.content-layout__aside {
  min-width: 0;
}

.content-layout--no-sidebar {
  grid-template-columns: 1fr;
}

.content-layout--no-sidebar .content-layout__primary {
  width: 100%;
  max-width: var(--content-no-sidebar-max, 1480px);
  margin: 0 auto;
}

@media (min-width: 1360px) {
  .aksrt-layout-narrow .content-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, var(--sidebar-width));
    gap: 20px;
  }
}

/* ========== 文章卡片 ========== */
/* ========== 文章布局系统 ========== */

/* --- 基础网格 --- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1vw, 18px);
  align-items: start;
}

.aksrt-layout-narrow .post-grid {
  gap: clamp(10px, 0.8vw, 14px);
}

/* ========== 卡片式布局（默认） ========== */
.post-grid--card {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .post-grid--card {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .post-grid--card {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== 列表式布局 ========== */
.post-grid--list {
  grid-template-columns: 1fr;
  gap: 18px;
}

.aksrt-layout-narrow .post-grid--list {
  gap: 16px;
}

/* ========== 瀑布流/卡片通用 ========== */
.post-grid--masonry,
.post-grid--masonry .post-card {
  /* 瀑布流使用 JS 或 columns 方案，此处保留基础样式 */
}

/* ========== 卡片基础 ========== */
@media (min-width: 768px) {
  .post-grid--masonry {
    grid-template-columns: repeat(3, 1fr);
  }

  .aksrt-layout-narrow .post-grid--card,
  .aksrt-layout-narrow .post-grid--masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1180px) {
  .aksrt-layout-narrow .post-grid--card,
  .aksrt-layout-narrow .post-grid--masonry {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .post-grid--masonry {
    grid-template-columns: repeat(4, 1fr);
  }
}

.post-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ========== 特色图区域（卡片式/瀑布流） ========== */
.post-card__thumb {
  position: relative;
  display: block;
  /* width:height = 16:9, 更紧凑 */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: inherit;
  flex-shrink: 0;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.55s ease;
}

/* 悬浮时图片生动缩放 + 轻微亮度提升 */


@media (max-width: 767px) {
  .post-card__thumb {
    aspect-ratio: 3 / 2;
  }
}

/* ========== 卡片内容区 ========== */
.post-card__body {
  padding: 14px 14px 16px;
}

.post-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--color-text);
  line-height: 1.36;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.post-card__title a {
  color: inherit;
}

.post-card:hover .post-card__title a {
  color: var(--color-primary);
}

.post-card__excerpt {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0 0 10px;
  line-height: 1.54;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  font-size: 11.5px;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
}

.post-card__meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ========== 列表式布局专用样式（图右文左） ========== */
.post-card--list {
  border-radius: 12px;
  padding: 0;
  display: block;
}

.post-card__list-inner {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.post-card--list .post-card__title {
  font-size: 19px;
  margin-bottom: 10px;
  -webkit-line-clamp: 2;
}

.post-card--list .post-card__excerpt {
  -webkit-line-clamp: 2;
  margin-bottom: 14px;
  font-size: 14px;
}

.post-card--list .post-card__meta {
  border-top: none;
  padding-top: 0;
  gap: 16px 20px;
}


/* 列表式右侧特色图 */

/* 列表式标签区 */

/* 响应式：列表式在小屏幕上改为上下结构 */
@media (max-width: 768px) {
  .post-card--list .post-card__title {
    font-size: 17px;
  }
}

/* Post card layout refresh */
.post-card {
  transition: box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover,
.post-card--list:hover {
  transform: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.04);
  border-color: color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
}

/* ========== 标签/分类区域（卡片内部，excerpt 与 meta 之间） ========== */
.post-card__taxonomy-wrap {
  margin: 10px 0 12px;
}

.post-card__taxonomy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* 隐藏滚动条但保持横向可滑 */
  -webkit-overflow-scrolling: touch;
}

.post-card__taxonomy-row::-webkit-scrollbar {
  display: none;
}

.post-card__taxonomy-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 4px 11px;
  border-radius: var(--radius-pill, 999px);
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* 分类 chip（带文件夹图标） */
.post-card__taxonomy-chip--category {
  color: #fff;
  background: linear-gradient(135deg, #18a058 0%, #0d9448 100%);
}

/* 标签 chip */
.post-card__taxonomy-chip--tag {
  color: var(--color-text-secondary, #666);
  background: var(--color-bg-secondary, #f5f5f7);
  border: 1px solid var(--color-border, #e5e5ea);
}

.post-card__taxonomy-chip--tag:hover {
  color: #fff;
  background: linear-gradient(135deg, #18a058 0%, #0d9448 100%);
  border-color: transparent;
}

.post-card__folder-icon {
  font-size: 13px;
  line-height: 1;
  margin-right: 2px;
}

.post-card__taxonomy-text {
  line-height: 1;
}

.post-card__body--list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 22px 18px 20px;
}

.post-card__meta {
  flex-wrap: nowrap;
  gap: 10px 14px;
  overflow: hidden;
}

.post-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}

.post-card__meta-value {
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card__meta-label {
  opacity: 0.86;
}

.post-card__thumb--list {
  flex: 0 0 250px;
  max-width: 250px;
  min-height: 100%;
  aspect-ratio: auto;
  border-radius: 12px 0 0 12px;
}

.aksrt-layout-narrow .post-card__thumb--list {
  flex-basis: 220px;
  max-width: 220px;
}

.post-card__thumb--list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__list-inner {
  gap: 0;
}

.post-card--list .post-card__meta {
  border-top: none;
  padding-top: 0;
  gap: 12px 16px;
}

.post-card--list .post-card__title {
  font-size: 19px;
}

.aksrt-layout-narrow .post-card--list .post-card__title {
  font-size: 18px;
}

.aksrt-layout-narrow .post-card__body--list {
  padding: 16px 18px 16px 18px;
}

.aksrt-layout-narrow .post-card--list .post-card__excerpt {
  font-size: 13.5px;
  -webkit-line-clamp: 2;
}

.post-card--list .post-card__thumb:hover img,
.post-card__thumb:hover img {
  transform: scale(1.08);
  filter: brightness(1.03);
}

@media (max-width: 767px) {
  .post-card__body {
    padding: 10px 10px 12px;
  }

  .post-card__title {
    font-size: 14px;
    margin-bottom: 6px;
    -webkit-line-clamp: 1;
    line-height: 1.34;
  }

  .post-card--card .post-card__excerpt,
  .post-card--masonry .post-card__excerpt,
  .post-card--list .post-card__excerpt {
    display: none;
  }

  /* 移动端：标签区适配 */
  .post-card__taxonomy-wrap {
    margin: 6px 0 8px;
  }

  .post-card__taxonomy-row {
    gap: 6px;
    padding: 0;
  }

  .post-card__taxonomy-chip {
    padding: 3px 9px;
    font-size: 10.5px;
  }

  .post-card__folder-icon {
    font-size: 11px;
  }

  .post-card__meta {
    justify-content: space-between;
    padding-top: 8px;
    font-size: 10.5px;
  }

  .post-card__meta-item--date {
    display: none;
  }

  .post-card__meta-label {
    display: none;
  }

  .post-card__list-inner {
    flex-direction: row;
    align-items: stretch;
  }

  .post-card__thumb--list {
    flex: 0 0 38%;
    max-width: 38%;
    min-width: 38%;
    border-radius: 12px 0 0 12px;
  }

  .post-card__body--list {
    padding: 12px 14px 12px 14px;
  }

  .post-card--list .post-card__title {
    font-size: 16px;
    margin-bottom: 6px;
  }
}

/* ========== 分页 ========== */
.pagination,
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 8px;
}

.pagination a,
.pagination span,
.navigation.pagination a,
.navigation.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination .current,
.navigation.pagination span.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pagination .dots,
.navigation.pagination .dots {
  border: none;
  color: var(--color-text-muted);
  min-width: auto;
  padding: 0 4px;
}

.pagination .prev,
.pagination .next,
.navigation.pagination a.prev,
.navigation.pagination a.next {
  min-width: 44px;
}

.pagination .disabled,
.navigation.pagination span.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ========== 页面标题区 ========== */
.page-header {
  margin-bottom: 28px;
}

.page-header .entry-title {
  margin-bottom: 8px;
}

.page-header p {
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 720px;
}

/* ========== 侧栏小工具 ========== */
.content-layout__aside .widget {
  margin-bottom: 24px;
}

.widget-card {
  border-radius: var(--radius-card);
  padding: 20px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary-50);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.author-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  border: none;
}

.author-card img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-avatar);
  border: 3px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 14px;
  object-fit: cover;
}

.author-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.125rem;
  font-family: var(--font-heading);
}

.author-card p {
  margin: 0 0 16px;
  font-size: 0.875rem;
  opacity: 0.92;
  line-height: 1.55;
}

.author-card .social-row,
.author-card .profile-social-links {
  justify-content: center;
}

.profile-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.profile-social-links a,
.social-icon-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-avatar);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
}
.profile-social-links a svg,
.social-icon-link svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}


.profile-social-links a:hover,
.social-icon-link:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.widget_search .search-form {
  display: flex;
  position: relative;
}

.widget_search label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.widget_search .search-field {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  background: var(--color-bg-tertiary);
  color: var(--color-text);
  font-size: 14px;
  font-family: var(--font-heading);
}

.widget_search .search-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-50);
}

.widget_search .search-submit {
  position: absolute;
  right: 4px;
  top: 4px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
}

.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
}

.widget-list li:last-child {
  border-bottom: none;
}

.widget-list li a {
  flex: 1;
  transition: color 0.2s, padding 0.2s;
}

.widget-list li a:hover {
  color: var(--color-primary);
  padding-left: 6px;
}

.widget-list li span {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.widget_recent_entries li,
.recent-posts-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.widget_recent_entries li:last-child,
.recent-posts-row:last-child {
  border-bottom: none;
}

.recent-posts-row img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-btn);
  object-fit: cover;
  flex-shrink: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tag-cloud a:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

/* ========== 单篇文章 ========== */
.single-layout {
  max-width: 980px;
  margin: 0 auto;
}

.entry-header {
  margin-bottom: 24px;
}

.entry-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
}

.entry-meta a {
  color: var(--color-text-secondary);
}

.entry-meta a:hover {
  color: var(--color-primary);
}

.entry-thumb {
  margin: 0 0 28px;
  border-radius: var(--radius-btn);
  overflow: hidden;
}

.entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p {
  margin: 0 0 1.5em;
}

.entry-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin: 2em 0 1em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-50);
}

.entry-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin: 1.5em 0 0.75em;
}

.entry-content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-tertiary);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

.entry-content img {
  border-radius: var(--radius-btn);
  margin: 1.5em auto;
  display: block;
}

.entry-content iframe,
.entry-content .wp-block-embed iframe,
.entry-content video {
  max-width: 100%;
  height: auto;
}

.entry-content .wp-block-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 1.5em 0;
}

.entry-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
  margin: 0 0 1.5em;
}

.entry-content ul li::marker {
  color: var(--color-primary);
}

.entry-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tags a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  font-size: 13px;
  font-family: var(--font-heading);
  color: var(--color-text-secondary);
}

.post-tags a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.related-posts {
  margin-top: 48px;
}

.related-posts__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .related-posts__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-bg-secondary);
  transition: box-shadow 0.2s, transform 0.2s;
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-card a {
  color: inherit;
}

.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.related-card h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  padding: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 代码块 GitHub 风格 ========== */
.code-block {
  border-radius: var(--radius-code);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin: 1.5em 0;
  background: var(--code-bg);
}

.code-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 12px;
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--color-text-secondary);
}

.code-block__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.code-block__copy:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.code-block__body {
  overflow-x: auto;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .code-block__body {
    font-size: 12px;
    padding: 12px 14px;
  }
}

.entry-content pre.wp-block-code,
.entry-content pre:not(.wp-block-preformatted) {
  border-radius: var(--radius-code);
  border: 1px solid var(--color-border);
  background: var(--code-bg);
  padding: 0;
  overflow: hidden;
}

.entry-content pre code {
  display: block;
  padding: 16px 20px;
  overflow-x: auto;
  background: transparent;
  font-size: 13.5px;
  line-height: 1.6;
}

/* 语法高亮类（可由插件或手动包裹） */
.gh-keyword {
  color: #cf222e;
}

html.dark .gh-keyword,
body.theme-dark .gh-keyword {
  color: #ff7b72;
}

.gh-string {
  color: #0a3069;
}

html.dark .gh-string,
body.theme-dark .gh-string {
  color: #a5d6ff;
}

.gh-comment {
  color: #6e7781;
  font-style: italic;
}

html.dark .gh-comment,
body.theme-dark .gh-comment {
  color: #8b949e;
}

.gh-function {
  color: #8250df;
}

html.dark .gh-function,
body.theme-dark .gh-function {
  color: #d2a8ff;
}

.gh-var {
  color: #0550ae;
}

html.dark .gh-var,
body.theme-dark .gh-var {
  color: #79c0ff;
}

.gh-op {
  color: #24292f;
}

html.dark .gh-op,
body.theme-dark .gh-op {
  color: #c9d1d9;
}

/* ========== 评论区 ========== */
.comments-area {
  max-width: 720px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .children {
  list-style: none;
  margin: 12px 0 0;
  padding-left: 0;
  border-left: 2px solid var(--color-primary);
  padding-left: 16px;
}

.comment-body.aksrt-depth-3 .children {
  display: none;
}

.comment-body {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.aksrt-comment {
  display: flex;
  gap: 14px;
}

.aksrt-comment__avatar img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
}

.aksrt-comment__body {
  flex: 1;
  min-width: 0;
}

.aksrt-comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
}

.aksrt-comment__author {
  font-weight: 700;
  color: var(--color-text);
}

.aksrt-comment__meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

.aksrt-comment__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.aksrt-comment__actions {
  display: flex;
  gap: 8px;
}

.aksrt-comment__btn {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: var(--font-heading);
}

.aksrt-comment__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-family: var(--font-heading);
}

.comment-reply-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.comment-respond {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.comment-reply-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin: 0 0 16px;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
  margin-bottom: 12px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  max-width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  font-family: var(--font-heading);
  box-sizing: border-box;
}

.comment-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
  font-family: var(--font-body);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-50);
}

.form-submit {
  display: flex;
  justify-content: flex-end;
}

.form-submit .submit {
  height: 40px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  margin-top: 12px;
}

.form-submit .submit:hover {
  background: var(--color-primary-dark);
}

/* 人机验证容器样式 */
.aksrt-captcha-wrap {
  margin: 0;
  clear: both;
}

.aksrt-captcha-box {
  display: none;
}

/* 确保表单元素不浮动 */
.comment-form .form-submit {
  clear: both;
  overflow: hidden;
}

@media (max-width: 767px) {
  .form-submit .submit {
    width: 100%;
  }
}

.comments-closed-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-card);
  border: 1px dashed var(--color-border);
  background: var(--color-bg-secondary);
}

.comments-closed-card .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

/* ========== 归档时间轴 ========== */
.archive-timeline__group {
  margin-bottom: 40px;
}

.archive-timeline__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.archive-timeline__badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
}

html.dark .archive-timeline__badge,
body.theme-dark .archive-timeline__badge {
  color: var(--color-primary-light);
}

/* ========== 页脚 ========== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  padding: 40px 0 24px;
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .site-footer__inner {
    padding: 0 24px;
  }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .site-footer__inner {
    max-width: var(--content-max);
    padding: 0 32px;
  }

  .site-footer__grid {
    grid-template-columns: minmax(320px, 1.6fr) repeat(3, minmax(180px, 1fr));
    gap: 42px;
  }
}

.site-footer h3 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  margin: 0 0 14px;
  font-weight: 700;
}

.site-footer p,
.site-footer li {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.site-footer h3 + p {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.7;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-avatar);
  background: var(--color-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: background 0.2s, color 0.2s;
}

.social-row a:hover {
  background: var(--color-primary);
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.site-footer__bottom p {
  margin: 0;
  width: 100%;
  text-align: center;
}

.site-footer__filings {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 10px;
  width: 100%;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--color-text-muted);
}

.site-footer__filings a {
  color: inherit;
  white-space: nowrap;
}

.site-footer__filings a:hover {
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .site-footer__filings {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
  }
}

/* ========== 回到顶部 ========== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-avatar);
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-bg-secondary) 80%, transparent);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .back-to-top {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 20px;
  }
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@supports not (background: color-mix(in srgb, white 50%, transparent)) {
  .back-to-top {
    background: var(--color-bg-secondary);
    opacity: 0.95;
  }
}

/* ========== 认证页 / 表单页 ========== */
.auth-page .site-nav__inner {
  max-width: 100%;
}

.auth-shell {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 64px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  box-shadow: var(--shadow-md);
}

.auth-card__logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
}

.auth-card__title {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 0 4px;
}

.auth-card__subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 14px;
  margin: 0 0 24px;
}

.form-field {
  margin-bottom: 16px;
  position: relative;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  color: var(--color-text-secondary);
}

.form-field .input-icon {
  position: absolute;
  left: 14px;
  bottom: 13px;
  font-size: 14px;
  opacity: 0.6;
  pointer-events: none;
}

.form-field input:not([type="checkbox"]) {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 40px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  box-sizing: border-box;
  font-family: var(--font-heading);
}

.form-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-50);
}

.form-field--pwd input {
  padding-right: 44px;
}

.toggle-pwd {
  position: absolute;
  right: 4px;
  bottom: 2px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-text-muted);
}

.form-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-family: var(--font-heading);
}

/* 社交登录分隔线 */
.social-login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0 16px;
  color: var(--color-text-secondary, #94a3b8);
  font-size: 13px;
}
.social-login-divider::before,
.social-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border, #e2e8f0);
}
.social-login-divider span {
  padding: 0 16px;
  white-space: nowrap;
}

.oauth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.oauth-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.oauth-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.oauth-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.auth-footer-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.auth-footer-link a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ========== 用户中心 Dashboard ========== */
.dashboard {
  max-width: 960px;
  margin: 0 auto;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  background: var(--color-bg);
  padding-top: 8px;
}

body.admin-bar .dashboard-tabs {
  top: calc(var(--nav-height) + 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .dashboard-tabs { top: calc(var(--nav-height) + 46px); }
}

.dashboard-tabs button {
  padding: 12px 16px;
  border: none;
  background: none;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.dashboard-tabs button:hover {
  color: var(--color-text);
}

.dashboard-tabs button.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

@media (max-width: 767px) {
  .dashboard-tabs button {
    padding: 10px 12px;
    font-size: 13px;
  }
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.is-active {
  display: block;
}

.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: var(--font-heading);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  background: var(--color-bg-tertiary);
  font-weight: 600;
}

.data-table tr:nth-child(even) {
  background: var(--color-bg-secondary);
}

html.dark .data-table tr:nth-child(even),
body.theme-dark .data-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.notif-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item--unread {
  border-left: 3px solid var(--color-info);
  padding-left: 15px;
}

.notif-item--unread .notif-title {
  font-weight: 700;
}

.notif-title {
  font-family: var(--font-heading);
  font-size: 14px;
  margin: 0 0 4px;
}

.notif-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ========== About / 友链 / 404 ========== */
.about-hero {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 24px 20px 40px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.about-avatar {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-avatar);
  object-fit: cover;
  margin-bottom: 16px;
  border: 4px solid var(--color-border);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.skill-tags span {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-size: 13px;
  font-family: var(--font-heading);
  color: var(--color-text-secondary);
}

.timeline {
  max-width: 560px;
  margin: 40px auto 0;
  padding-left: 20px;
  border-left: 2px solid var(--color-border);
}

.timeline__item {
  position: relative;
  padding: 0 0 24px 20px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-avatar);
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
}

.friends-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .friends-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.friend-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: 20px;
  text-align: center;
  background: var(--color-bg-secondary);
  transition: transform 0.25s, box-shadow 0.25s;
  color: inherit;
  text-decoration: none;
  display: block;
}

.friend-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.friend-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-btn);
  margin-bottom: 12px;
}

.friend-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  font-family: var(--font-heading);
}

.friend-card p {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.error-hero {
  text-align: center;
  padding: 80px 20px 100px;
}

.error-hero__code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--color-text-muted);
  line-height: 1;
  margin-bottom: 8px;
}

/* ========== 搜索页大框 ========== */
.search-hero-form {
  max-width: 560px;
  margin: 0 auto 28px;
  position: relative;
}

.search-hero-form input[type="search"] {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 48px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  font-size: 16px;
  background: var(--color-bg-secondary);
  color: var(--color-text);
  box-sizing: border-box;
}

.search-hero-form .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.search-hero-form .clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--color-bg-tertiary);
  cursor: pointer;
  color: var(--color-text-muted);
}

/* ========== 空状态 / 加载 ========== */
.no-results {
  padding: 48px 20px;
  text-align: center;
  color: var(--color-text-secondary);
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-tertiary) 25%,
    var(--color-bg-secondary) 50%,
    var(--color-bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ========== 文章导航 ========== */
.post-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .post-nav-links {
    gap: 16px;
    margin-top: 40px;
  }
}

.post-nav-links a {
  display: block;
  padding: 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  transition: border-color 0.2s;
}

.post-nav-links a:hover {
  border-color: var(--color-primary);
}

.post-nav-links .nav-subtitle {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  font-family: var(--font-heading);
}

.post-nav-links .nav-title {
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-text);
}

.post-navigation,
.navigation.post-navigation {
  margin-top: 40px;
}

.post-navigation .nav-links,
.navigation.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .post-navigation .nav-links,
  .navigation.post-navigation .nav-links {
    gap: 16px;
  }
}

.post-navigation a,
.navigation.post-navigation a {
  display: block;
  padding: 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  transition: border-color 0.2s;
}

.post-navigation a:hover,
.navigation.post-navigation a:hover {
  border-color: var(--color-primary);
}

/* ========== 移动端隐藏侧栏 ========== */
@media (max-width: 1359px) {
  .content-layout__aside {
    display: none;
  }
}

/* ============================================================
 * 单篇文章页 —— Zibll 风格卡片化架构
 * ============================================================ */

/* ========== 卡片基础容器 ========== */
.post-section-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  padding: 28px 30px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease;
}
.dark .post-section-card {
  background: var(--color-bg-secondary);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

/* ---------- Hero 头部（特色图背景 + 左下角标题/分类/面包屑） ---------- */
.post-hero {
  position: relative;
  width: 100%;
  min-height: 280px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  margin-bottom: 16px;
}
.post-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.12) 45%,
    rgba(0,0,0,0.65) 100%
  );
}
.post-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 28px 32px 24px;
}

/* 右上角 meta 统计 */
.post-hero__meta {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 2;
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #fff !important;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  line-height: 1.5;
}
.post-hero__meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-hero__meta span + span::before {
  content: '';
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  margin-right: 4px;
}

/* ====== 左下角内容 ====== */
.post-hero__bottom-left {
  position: absolute;
  bottom: 20px;
  left: 28px;
  right: 28px;
  text-align: left;
}
.post-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff !important;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.post-hero__meta-line {
  font-size: 13px;
  color: #fff !important;
  opacity: 0.88;
  margin: 0;
  line-height: 1.7;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.post-hero__meta-line a {
  color: #fff !important;
  text-decoration: none;
  transition: opacity .2s;
}
.post-hero__meta-line a:hover { opacity: .75; }
/* 分类与标签（底部互动区） */
.post-taxonomy-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
}
.taxonomy-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--color-primary-50);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.cat-pill:hover { background: var(--color-primary); color: #fff; }
.tax-sep { color: var(--color-text-lighter); opacity: .4; }

/* 无图 fallback */
.post-hero:not([style*="background-image"]) {
  background: linear-gradient(135deg, var(--color-primary) 0%, #5a7fb8 100%);
}
.post-hero:not([style*="background-image"]) .post-hero__overlay {
  background: none;
}

@media (max-width: 767px) {
  .post-hero { min-height: 220px; border-radius: 10px; }
  .post-hero__inner { min-height: 200px; padding: 22px 16px 18px; }
  .post-hero__meta { top: 10px; right: 12px; font-size: 11px; padding: 4px 10px; }
  .post-hero__title { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .post-hero__meta-line { font-size: 12px; }
}

/* ========== 正文卡片内标题（移动端显示） ========== */
.content-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--color-primary-50);
  padding-bottom: 12px;
  /* 桌面端也显示 */
  display: block;
}
@media (max-width: 767px) {
  .content-title { display: block; }
}

/* ========== 作者信息栏（正文卡片内） ========== */
.author-info-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.author-info-bar__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-tertiary);
}
.author-info-bar__body { flex: 1; min-width: 0; }
.author-info-bar__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.author-info-bar__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}
.author-info-bar__name:hover { color: var(--color-primary); }
.author-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff9a56, #ff6b35);
  padding: 1px 8px;
  border-radius: 999px;
  line-height: 1.6;
  white-space: nowrap;
}
.author-info-bar__sub {
  font-size: 12px;
  color: var(--color-text-muted);
}
.author-info-bar__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.author-info-bar .author-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.author-info-bar .author-action-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 6%, #fff);
}
.dark .author-info-bar { border-color: rgba(255,255,255,.08); }
.dark .author-info-bar .author-action-btn {
  background: var(--color-bg-secondary);
  border-color: rgba(255,255,255,.1);
  color: var(--color-text-secondary);
}

@media (max-width: 767px) {
  .author-info-bar { flex-wrap: wrap; gap: 10px; }
  .author-info-bar__actions { width: 100%; justify-content: flex-end; }
}

/* ---------- 特色图（Hero 内嵌，保留备用） ---------- */

/* ---------- 正文内容卡 ---------- */
.post-content-card {
  padding: 32px 34px;
}
.post-content-card .entry-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
}

/* ========== 底部互动操作区 ========== */
.post-interact-card {
  text-align: center;
}
.interact-slogan {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

/* 三大按钮：点赞 / 分享 / 收藏 */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
}
.action-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.action-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}
.action-btn__count {
  font-size: 13px;
  font-weight: 400;
}
.action-btn__label {
  font-size: 13px;
}
.action-btn__arrow {
  font-size: 10px !important;
  margin-left: 2px;
  transition: transform 0.25s;
}

/* 点赞激活态 */
.action-btn--like.is-active,
.action-btn--like:active {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
.action-btn--like.is-active i,
.action-btn--like:active i {
  animation: heartBeat 0.45s ease-in-out;
}
@keyframes heartBeat {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.35); }
  50%  { transform: scale(1); }
  75%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* 收藏激活态 */
.action-btn--favorite.is-active,
.action-btn--favorite:active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}
.action-btn--favorite.is-active i,
.action-btn--favorite:active i {
  animation: starPop 0.35s ease;
}
@keyframes starPop {
  0%   { transform: scale(1) rotate(0deg); }
  50%  { transform: scale(1.4) rotate(-15deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* 分享展开时箭头旋转 */
.action-btn--share[aria-expanded="true"] .action-btn__arrow {
  transform: rotate(180deg);
}

/* ---------- 分享下拉面板 ---------- */
.share-dropdown {
  display: none;
  padding: 20px 16px 4px;
  border-top: 1px dashed var(--color-border);
  margin-top: 0;
  animation: slideDown 0.3s ease;
}
.share-dropdown[aria-hidden="false"] {
  display: block;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0); max-height: 300px; }
}
.share-dropdown__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
  padding: 12px 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.share-item:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 6%, #fff);
  transform: translateY(-2px);
}
.share-item i {
  font-size: 22px;
}
.share-item span {
  font-size: 11px;
  font-weight: 500;
}
.share-item--wechat { position: relative; }
/* 微信 QR 容器 */
.share-qrcode-box {
  display: none;
  text-align: center;
  padding: 12px;
  background: color-mix(in srgb, var(--color-bg-tertiary), #fff);
  border-radius: 10px;
  animation: fadeIn 0.25s ease;
}
.share-qrcode-box.is-visible {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.share-qrcode-box canvas {
  display: block;
  margin: 0 auto 8px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}
.share-qrcode-box p {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
}

/* 版权声明 */
.interact-copyright {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
}
.interact-copyright i {
  font-size: 13px;
  color: var(--color-primary);
}
.interact-copyright strong {
  color: var(--color-text-secondary);
}
.interact-copyright a {
  color: var(--color-text-secondary);
}
.interact-copyright a:hover {
  color: var(--color-primary);
}

/* 标签云 */
.post-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.tag-pill {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-bg-tertiary);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.tag-pill:hover {
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  border-color: color-mix(in srgb, var(--color-primary) 20%, transparent);
}

/* ========== 文章导航（简洁版）========== */
.post-nav-card { padding: 0; overflow: hidden; }
.post-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
}
.post-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--color-bg-secondary);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.post-nav-link:hover {
  background: #fff;
  color: var(--color-primary);
}
.dark .post-nav-link:hover {
  background: var(--color-bg-tertiary);
}
.post-nav-link__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.25s;
}
.post-nav-link:hover .post-nav-link__icon {
  background: var(--color-primary);
  color: #fff;
}
.post-nav-link__text {
  min-width: 0;
}
.post-nav-link__label {
  font-size: 11px;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-nav-link__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.post-nav-link:hover .post-nav-link__title {
  color: var(--color-primary);
}
.post-nav-placeholder {
  background: var(--color-bg-tertiary);
  opacity: 0.3;
}

/* ========== 推荐文章 ========== */
.section-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-left: 14px;
}
.section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}
.section-heading i {
  color: var(--color-primary);
  font-size: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
  transition: all 0.28s ease;
}
.dark .related-item {
  background: var(--color-bg-secondary);
}
.related-item:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--color-primary) 20%, var(--color-border));
}
.related-item__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.related-item__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-tertiary);
}
.related-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.related-item:hover .related-item__thumb img {
  transform: scale(1.06);
}
.related-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 28px;
  opacity: 0.3;
}
.related-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.related-item:hover .related-item__overlay {
  opacity: 1;
}
.related-item__overlay span {
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.related-item__info {
  padding: 12px 14px;
}
.related-item__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.related-item__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.related-item:hover .related-item__title {
  color: var(--color-primary);
}
.related-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--color-text-muted);
}
.related-item__meta i {
  font-size: 10px;
  margin-right: 2px;
}

/* ========== 目录 TOC ========== */
.toc-widget {
  position: sticky;
  top: calc(var(--nav-height, 64px) + 24px);
  max-height: calc(100vh - var(--nav-height, 64px) - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  background: #fff;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.dark .toc-widget {
  background: var(--color-bg-secondary);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}
.toc-widget::-webkit-scrollbar { width: 4px; }
.toc-widget::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
.toc-widget__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.toc-widget__title i {
  color: var(--color-primary);
  font-size: 14px;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list li { margin: 0; }
.toc-list a {
  display: block;
  padding: 6px 12px 6px 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-left: 2px solid var(--color-border);
  transition: all 0.18s ease;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toc-list a:hover,
.toc-list a.is-active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
  border-radius: 0 5px 5px 0;
  font-weight: 600;
}
.toc-list .toc-h3 { padding-left: 14px; }
.toc-list .toc-h3 a { font-size: 12px; padding-left: 0; }
.toc-list .toc-h4 { padding-left: 26px; }
.toc-list .toc-h4 a { font-size: 11.5px; padding-left: 0; }

/* TOC 移动端浮动按钮 */
.toc-float-btn {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(136, 171, 218, 0.4);
  font-size: 18px;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.toc-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(136, 171, 218, 0.5);
}
.toc-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 195;
  opacity: 0;
  transition: opacity 0.25s;
}
.toc-drawer-overlay.is-open { opacity: 1; }
.toc-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--color-bg-primary);
  z-index: 196;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 24px 20px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}
.toc-drawer.is-open { transform: translateX(0); }
.toc-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.toc-drawer__title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
}
.toc-drawer__title i { color: var(--color-primary); }
.toc-drawer__close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-bg-secondary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: background 0.2s, color 0.2s;
}
.toc-drawer__close:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text);
}

/* ========== Lightbox 灯箱 ========== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  cursor: zoom-out;
}
.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.lightbox-overlay.is-open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  text-align: center;
  max-width: 80vw;
}

/* ========== Toast 提示 ========== */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #1a1a2e;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  animation: toastIn 0.3s ease forwards, toastOut 0.3s ease 1.8s forwards;
  pointer-events: auto;
}
.toast-msg--success { background: #10b981; }
.toast-msg--error { background: #ef4444; }
.toast-msg--info { background: var(--color-primary); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(0.95); }
}

/* ========== 正文排版增强 ========== */

/* 引用块 */
.entry-content > blockquote {
  position: relative;
  padding: 20px 24px !important;
  margin: 24px 0 !important;
  border-left: 4px solid var(--color-primary) !important;
  background: color-mix(in srgb, var(--color-primary) 4%, var(--color-bg-secondary));
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
}
.entry-content > blockquote::before {
  content: '\f10d';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 36px;
  color: var(--color-primary);
  opacity: 0.08;
  line-height: 1;
}

/* 列表 */
.entry-content ul, .entry-content ol { line-height: 1.75; }
.entry-content ul li, .entry-content ol li { margin-bottom: 4px; }
.entry-content ol {
  list-style: none;
  counter-reset: ol-counter;
  padding-left: 0;
}
.entry-content ol > li {
  counter-increment: ol-counter;
  position: relative;
  padding-left: 28px;
}
.entry-content ol > li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 图片 & figcaption */
.entry-content figure { margin: 24px 0; }
.entry-content figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 10px;
  line-height: 1.5;
}
.entry-content .frame-figure {
  display: inline-block;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: var(--color-bg-primary);
}
.entry-content .frame-figure img { border-radius: 2px; display: block; }

/* 表格 */
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  border-radius: var(--radius-btn); overflow: hidden;
  border: 1px solid var(--color-border); font-size: 14px;
}
.entry-content thead { background: var(--color-bg-tertiary); }
.entry-content th {
  padding: 12px 16px; font-weight: 600; text-align: left;
  color: var(--color-text); border-bottom: 1px solid var(--color-border);
}
.entry-content td {
  padding: 12px 16px; border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}
.entry-content tbody tr:nth-child(even) { background: color-mix(in srgb, var(--color-primary) 3%, transparent); }
.entry-content tbody tr:hover { background: color-mix(in srgb, var(--color-primary) 6%, transparent); }
.entry-content tbody tr:last-child td { border-bottom: none; }

/* 提示块 / Callout */
.callout {
  display: flex; gap: 12px; padding: 16px 20px;
  border-radius: var(--radius-btn); margin: 20px 0;
  border-left: 4px solid; line-height: 1.65; font-size: 14px;
}
.callout__icon { flex-shrink: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-top: 2px; }
.callout__content { flex: 1; min-width: 0; }
.callout-info { background: color-mix(in srgb, #3b82f6 6%, transparent); border-left-color: #3b82f6; }
.callout-info .callout__icon { color: #3b82f6; }
.callout-warn { background: color-mix(in srgb, #f59e0b 6%, transparent); border-left-color: #f59e0b; }
.callout-warn .callout__icon { color: #f59e0b; }
.callout-tip { background: color-mix(in srgb, #10b981 6%, transparent); border-left-color: #10b981; }
.callout-tip .callout__icon { color: #10b981; }
.callout-error { background: color-mix(in srgb, #ef4444 6%, transparent); border-left-color: #ef4444; }
.callout-error .callout__icon { color: #ef4444; }

/* ========== 评论增强 ========== */
.post-comments-card { padding: 28px 30px; }
.comments-area .comments-title {
  display: flex; align-items: center; gap: 8px;
  position: relative; padding-left: 14px;
  font-size: 17px; font-weight: 700;
}
.comments-area .comments-title::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary);
  margin-top: auto; margin-bottom: auto;
}
.comment-body .avatar {
  border: 2px solid var(--color-border); transition: border-width 0.2s;
}
.comment-body:hover .avatar { border-width: 3px; border-color: var(--color-primary); }
.reply .comment-reply-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border: 1px solid var(--color-border);
  border-radius: var(--radius-btn); font-size: 12px;
  color: var(--color-text-secondary); text-decoration: none; transition: all 0.2s;
}
.reply .comment-reply-link i { font-size: 11px; }
.reply .comment-reply-link:hover {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  border-color: var(--color-primary); color: var(--color-primary);
}
.children .comment { border-left: 2px solid var(--color-border); transition: border-color 0.2s; }
.children .comment:hover { border-left-color: var(--color-primary); }
.comment-form textarea {
  min-height: 140px; resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form textarea:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent) !important;
}
.comment-form .submit {
  position: relative; overflow: hidden; transition: opacity 0.2s;
}
.comment-form .submit.is-loading { opacity: 0.7; pointer-events: none; }
.comment-form .submit .btn-spinner {
  display: none; width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite; margin-right: 6px;
}
.comment-form .submit.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.comments-closed-card {
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg-secondary)) !important;
  border-radius: var(--radius-card) !important; position: relative; overflow: hidden;
}
.comments-closed-card::before {
  content: '\f023'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
  position: absolute; right: -10px; bottom: -20px;
  font-size: 100px; color: var(--color-primary); opacity: 0.06; line-height: 1;
}
.comments-closed-card p:last-child { margin-bottom: 0; }
.comments-closed-card a { transition: background 0.2s, color 0.2s; }
.comments-empty-state {
  text-align: center; padding: 48px 24px; color: var(--color-text-muted);
}
.comments-empty-state__icon { font-size: 52px; color: var(--color-border); margin-bottom: 14px; opacity: 0.55; }
.comments-empty-state__text { font-size: 15px; margin-bottom: 4px; }
.comments-empty-state__hint { font-size: 13px; opacity: 0.75; }

/* ============================================================
 * 响应式适配（单篇文章页 Zibll 风格）
 * ============================================================ */
@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .post-section-card { padding: 20px 18px; margin-bottom: 16px; border-radius: 10px; }

  /* 作者卡竖排 */
  .author-info-card { flex-direction: column; align-items: center; text-align: center; padding: 16px; }
  .author-info-card__top { flex-direction: column; }
  .author-info-card__actions { justify-content: center; }

  /* 特色图 */
  .post-featured-image { margin: 0 -18px; }

  /* 正文 */
  .post-content-card { padding: 22px 18px; }

  /* 互动栏堆叠 */
  .action-buttons { flex-wrap: wrap; }
  .action-btn { padding: 9px 18px; font-size: 13px; }
  .action-btn__label { display: none; }

  /* 导航单列 */
  .post-nav-inner { grid-template-columns: 1fr; }
  .post-nav-inner .post-nav-placeholder { display: none; }

  /* 推荐单列 */
  .related-grid { grid-template-columns: 1fr; }

  /* TOC 浮动按钮 */
  .toc-float-btn { display: inline-flex; }
  .toc-drawer-overlay, .toc-drawer { display: block; }
  .content-layout__aside .toc-widget { display: none; }
}
