/* 卡片主题：宽屏铺开、4×4、无顶栏 Logo。颜色交给 Aurora tokens。 */
:root {
  --hh-card-scale: 0.8;
  --hh-page-width: min(1344px, calc(100vw - 10rem));
  --hh-nav-gap: 0.5rem;
  --hh-nav-bar-h: 2.385rem;
}

.navbar-logo { display: none !important; }

.container,
main > .container,
.navbar.nav-pill .navbar-box,
.navbar.nav-ui-one .navbar-box,
.navbar.nav-ui-two .navbar-box {
  max-width: var(--hh-page-width) !important;
  width: 100%;
}

.navbar.nav-pill,
.navbar.nav-ui-one,
.navbar.nav-ui-two {
  left: 0;
  right: 0;
}

main > .container {
  min-height: 0 !important;
}

@media (min-width: 768px) {

  .post-main {
    min-height: 0 !important;
  }

  .post-list > .post-col-5 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    min-width: 0;
  }

  .post-list .post-item {
    width: 100%;
    max-width: none;
  }
}

.nav-inner .nav-item > .nav-a,
.nav-inner .nav-menu {
  font-size: var(--text-xs);
  font-weight: 700;
}

#navbar.navbar,
#navbar.navbar.nav-pill,
#navbar.navbar.nav-ui-one,
#navbar.navbar.nav-ui-two,
#navbar.navbar.nav-visible,
#navbar.navbar.nav-hidden,
#navbar.p-2 {
  padding: 0 !important;
}

#navbar .navbar-box,
#navbar .navbar-box.p-1,
#navbar .navbar-box.p-md-2,
.navbar.nav-pill .navbar-box,
.navbar.nav-ui-one .navbar-box,
.navbar.nav-ui-two .navbar-box {
  height: 2.34rem !important;
  min-height: 2.34rem !important;
  max-height: 2.34rem !important;
  padding: 0 0.8rem !important;
  align-items: center !important;
  overflow: hidden;
  box-sizing: border-box !important;
}

#navbar .nav-inner .nav-item > .nav-a,
.nav-inner .nav-item > .nav-a {
  min-height: 1.62rem !important;
  height: 1.62rem !important;
  padding: 0 0.6rem !important;
  font-size: var(--text-xs) !important;
}

.navbar-box .nav-inner {
  display: flex !important;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 8px;
}

.navbar-box .nav-inner .nav-menu {
  flex-wrap: nowrap;
  margin-bottom: 0;
}

.hh-nav-stat {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 31px;
  margin-left: 8px;
  padding: 0 12px;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  background: var(--color-paper-2);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.post-list .post-item .post-info .post-head > a {
  font-size: 0.7rem;
  -webkit-line-clamp: 2;
}

.post-list .post-item .post-info .post-description {
  font-size: 0.625rem;
}

.post-list .post-item.post-item-no-cover .post-info {
  flex: 1 1 auto;
}

.post-list .post-item.post-item-no-cover .post-head {
  flex: 1 1 auto;
  min-height: 0;
}

.post-list .post-item.post-item-no-cover .post-info .post-description {
  display: -webkit-box !important;
  -webkit-line-clamp: 5 !important;
  line-clamp: 5 !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .post-list .post-item.post-item-no-cover .post-info .post-description {
    -webkit-line-clamp: 6 !important;
    line-clamp: 6 !important;
  }
}

.post-list .post-item .post-info .top-tag {
  font-size: calc(var(--text-xs) * var(--hh-card-scale));
}

.post-meta-wrap .author-name,
.post-meta-wrap .post-meta {
  font-size: calc(var(--text-sm) * var(--hh-card-scale));
}

.post-list .post-item .post-cover::after {
  padding-top: 60%;
}

.post-list {
  opacity: 1 !important;
  animation: none !important;
}

.post-list > [class*="col-"] {
  z-index: 0;
  opacity: 0;
  animation: hh-card-in 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.045s * var(--hh-i, 1));
}

.post-list > [class*="col-"]:hover {
  z-index: 2;
}

.post-list .post-item {
  overflow: hidden !important;
  isolation: isolate;
  border-radius: 12px !important;
  box-shadow:
    0 8px 22px -12px rgba(40, 70, 120, 0.28),
    0 2px 8px -3px rgba(40, 70, 120, 0.14);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.4s ease;
}

.post-list .post-item:hover {
  transform: translateY(-7px) scale(1.025);
  box-shadow:
    0 18px 34px -14px rgba(55, 99, 170, 0.32),
    0 8px 16px -10px rgba(55, 99, 170, 0.16);
}

.post-list .post-item:active {
  transform: translateY(-3px) scale(1.01);
  transition-duration: 0.16s;
}

.post-list .post-item .post-cover,
.post-list .post-image-card .post-cover {
  overflow: hidden !important;
  border-radius: 12px 12px 0 0;
}

.post-list .post-item .post-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
  transform: translateX(-130%) skewX(-12deg);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-list .post-item:hover .post-cover::before {
  transform: translateX(130%) skewX(-12deg);
}

.post-list .post-item .post-cover img {
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-list .post-item:hover .post-cover img {
  transform: scale(1.08);
}

@keyframes hh-card-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-list > [class*="col-"],
  .post-list .post-item {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .post-list .post-item .post-cover::before,
  .post-list .post-item .post-cover img {
    transition: none;
  }
}

.navbar-icon {
  --hh-ctrl-h: 31px;
  align-items: center !important;
  gap: var(--space-sm);
}

.navbar-icon > * {
  display: flex;
  align-items: center;
}

#nav-backtop,
.hh-backtop {
  display: none !important;
}

.navbar-icon .hh-backtop {
  display: none !important;
}

.navbar-icon .hh-backtop.is-visible {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--hh-ctrl-h) !important;
  min-height: var(--hh-ctrl-h) !important;
  max-height: var(--hh-ctrl-h) !important;
  gap: 2px;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.navbar-icon .hh-backtop span {
  font-size: 11px;
  line-height: 1 !important;
}

.navbar-icon .hh-backtop__ico {
  width: 12px;
  height: 12px;
}

.navbar-icon .hh-layout-switch.visitor-theme-switch--pair,
.navbar-icon .nav-theme-toggle,
.navbar-icon .nav-login .nav-top-item,
.navbar-icon #search-btn,
.navbar-icon #menu-line,
.navbar-icon .hh-backtop,
#navbar .hh-layout-switch.visitor-theme-switch--pair {
  height: var(--hh-ctrl-h) !important;
  min-height: var(--hh-ctrl-h) !important;
  max-height: var(--hh-ctrl-h) !important;
  box-sizing: border-box !important;
}

#navbar .hh-layout-switch .visitor-theme-switch__item {
  height: var(--hh-ctrl-h) !important;
  min-height: var(--hh-ctrl-h) !important;
  max-height: var(--hh-ctrl-h) !important;
  line-height: var(--hh-ctrl-h) !important;
}

.navbar-icon #search-btn,
.navbar-icon #menu-line {
  width: var(--hh-ctrl-h);
}

.navbar-icon .nav-theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 3px !important;
}

.navbar-icon .nav-theme-toggle button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: calc(var(--hh-ctrl-h) - 8px) !important;
  height: calc(var(--hh-ctrl-h) - 8px) !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
}

.navbar-icon .nav-theme-toggle .hh-theme-ico {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.navbar-icon .nav-theme-toggle button[title="深色模式"] .hh-theme-ico {
  stroke-width: 1.4;
}

.navbar-icon .nav-login .nav-top-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 0 12px !important;
  line-height: 1 !important;
}

.navbar-icon .iconfont,
.navbar-icon .nav-theme-toggle .iconfont,
.navbar-icon .nav-login .iconfont {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin: 0 !important;
  font-size: 1.2rem;
  line-height: 1 !important;
  -webkit-text-stroke-width: 0;
}

.navbar-icon .iconfont::before,
.navbar-icon .nav-theme-toggle .iconfont::before,
.navbar-icon .nav-login .iconfont::before {
  display: block;
  line-height: 1;
}

.navbar-icon .nav-login .nav-top-item span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin: 0;
}

.footer,
.index-footer-widget,
.post-copyright,
.post-next-prev {
  display: none !important;
}

.navbar,
.navbar.nav-pill,
.navbar.nav-ui-one,
.navbar.nav-ui-two {
  position: fixed !important;
  top: var(--hh-nav-gap) !important;
}

main > .container,
main > .container.p-2 {
  min-height: auto;
  padding-top: 0 !important;
  padding-bottom: 0.15rem !important;
}

.nav-fixed {
  padding-top: calc(var(--hh-nav-gap) + var(--hh-nav-bar-h) + var(--hh-nav-gap)) !important;
}

@media (min-width: 768px) {
  .post-list > [class*="col-"] .post-item {
    margin-top: var(--space-xs);
  }

  .main-sidebar .hh-widget:first-child,
  .post-list > [class*="col-"]:nth-child(-n + 4) .post-item {
    margin-top: 0;
  }
}

.author-content .abp-widget {
  margin-bottom: var(--space-sm);
}

.newreply-widget,
.newreply-widget:hover {
  max-height: none !important;
  overflow: visible !important;
  -webkit-mask: none !important;
  mask: none !important;
}

.post-main > nav.mt-4 {
  margin-top: 0.75rem !important;
}

.pagination {
  flex-wrap: wrap;
  gap: 0.25rem !important;
  margin-bottom: 0 !important;
}

.pagination .page-item {
  width: auto !important;
  min-width: 1.6rem;
  height: 1.6rem !important;
}

.pagination .page-item .page-link {
  font-size: 0.7rem !important;
}

.pagination .page-item.prev .iconfont,
.pagination .page-item.next .iconfont {
  font-size: 0.7rem !important;
}

.hh-site-footer {
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0.15rem 0 0;
  text-align: center;
}

.hh-site-footer .container {
  max-width: 100% !important;
  width: 100%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.hh-site-footer p {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--font-color-main-light, #6c757d);
}

.hh-site-footer a {
  color: inherit;
  text-decoration: none;
}

.post-header .hh-share-poster-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-right: var(--space-sm);
  cursor: pointer;
  white-space: nowrap;
}

.post-header .hh-edit-post {
  display: inline-flex;
  align-items: center;
  margin-right: var(--space-sm);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-3);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.post-header .hh-edit-post:hover,
.post-header .hh-edit-post:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.post-header .hh-post-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1;
  color: var(--color-ink, #222);
}

.post-header .hh-post-stat .iconfont {
  font-size: 1.35rem;
  line-height: 1;
}

.joe_share_poster_mask {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  box-sizing: border-box;
  background: color-mix(in oklch, var(--color-paper) 38%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.joe_share_poster_mask.is-open {
  opacity: 1;
}

.joe_share_poster_mask.is-enter .joe_share_poster_dialog,
.joe_share_poster_mask:not(.is-open) .joe_share_poster_dialog {
  opacity: 0.4;
  transform: translate(var(--share-from-x, 0px), var(--share-from-y, 0px)) scale(0.16);
}

.joe_share_poster_mask.is-open .joe_share_poster_dialog {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.joe_share_poster_dialog {
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: var(--space-md);
}

.joe_share_poster_dialog.is-landscape {
  max-width: 640px;
}

.joe_share_poster_dialog h3 {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-md);
}

.joe_share_poster_dialog .preview {
  width: 100%;
  border-radius: var(--radius-input);
  display: block;
}

.joe_share_poster_dialog .actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.joe_share_poster_dialog .actions button,
.joe_share_poster_dialog .actions a {
  flex: 1;
  text-align: center;
  border: none;
  border-radius: var(--radius-input);
  padding: var(--space-sm) var(--space-sm);
  font-size: var(--text-sm);
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.joe_share_poster_dialog .status {
  font-size: var(--text-sm);
  margin: var(--space-xs) 0 0;
  color: var(--color-ink-2);
}

.hh-share-toast {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 100000;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-input);
  font-size: var(--text-sm);
  line-height: 1.4;
  pointer-events: none;
  max-width: 80vw;
}

.hh-share-toast.is-hide {
  opacity: 0;
  transition: opacity var(--dur-short) var(--ease-out);
}

.post-content.markdown-body,
.post-content {
  max-width: none !important;
  width: 100%;
}

.breadcrumb {
  padding-bottom: 0.2rem !important;
  margin-bottom: 0 !important;
}

#post.post.card {
  padding: 0 !important;
  margin-top: 0.2rem !important;
}

#post .card-body {
  padding: 0.45rem 0.8rem 0.75rem !important;
}

#post .post-header {
  margin-bottom: 0.55rem !important;
}

#post .post-title {
  margin-bottom: 0.35rem !important;
  font-size: 0.95rem !important;
  line-height: 1.25 !important;
}

#post .post-header .border-theme {
  margin-top: 0.55rem;
}

.post-content.markdown-body,
.post-content {
  font-size: 0.75rem !important;
  line-height: 1.5 !important;
}

.post-content.markdown-body h1,
.post-content h1 { font-size: 0.95rem !important; font-weight: 700 !important; margin: 1em 0 0.4em !important; line-height: 1.3 !important; }
.post-content.markdown-body h2,
.post-content h2 { font-size: 0.88rem !important; font-weight: 700 !important; margin: 0.95em 0 0.35em !important; line-height: 1.3 !important; }
.post-content.markdown-body h3,
.post-content h3 { font-size: 0.82rem !important; font-weight: 700 !important; margin: 0.9em 0 0.3em !important; line-height: 1.35 !important; }
.post-content.markdown-body h4,
.post-content h4 { font-size: 0.78rem !important; font-weight: 700 !important; margin: 0.85em 0 0.28em !important; }
.post-content.markdown-body h5,
.post-content h5 { font-size: 0.75rem !important; font-weight: 700 !important; margin: 0.8em 0 0.25em !important; }
.post-content.markdown-body h6,
.post-content h6 { font-size: 0.72rem !important; font-weight: 700 !important; margin: 0.75em 0 0.25em !important; }

.post-content.markdown-body h1:first-child,
.post-content.markdown-body h2:first-child,
.post-content.markdown-body h3:first-child,
.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child {
  margin-top: 0 !important;
}

.hh-mtitle,
.post-content .hh-mtitle,
.post-content.markdown-body .hh-mtitle {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 1.05em 0 0.8em !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: center;
}

.hh-mtitle__text {
  position: relative;
  display: inline-block;
  padding: 0 0.75rem;
  color: var(--color-ink-2, #4a5560);
}

.hh-mtitle__text::before,
.hh-mtitle__text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.25rem;
  height: 1px;
  background: var(--color-accent, #c45c2a);
}

.hh-mtitle__text::before { left: -1.35rem; }
.hh-mtitle__text::after { right: -1.35rem; }

.hh-dotted,
.post-content .hh-dotted,
.post-content.markdown-body .hh-dotted {
  display: block !important;
  width: 100%;
  height: 2px;
  margin: 1em 0;
  background-size: 80px;
}

.post-content.markdown-body p,
.post-content p {
  margin: 0 0 0.65em !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.post-content.markdown-body p:last-child,
.post-content p:last-child {
  margin-bottom: 0 !important;
}

.post-content.markdown-body ul,
.post-content.markdown-body ol,
.post-content ul,
.post-content ol {
  list-style-position: outside !important;
  margin: 0.4em 0 0.85em !important;
  padding-left: 1.4em !important;
}

.post-content.markdown-body ul,
.post-content ul { list-style-type: disc !important; }
.post-content.markdown-body ol,
.post-content ol { list-style-type: decimal !important; }

.post-content.markdown-body li,
.post-content li {
  margin: 0.2em 0 !important;
  display: list-item !important;
}

.post-content.markdown-body blockquote,
.post-content blockquote {
  margin: 0.7em 0 !important;
  padding: 0.55em 0.85em !important;
  border-left: 3px solid var(--color-accent, #c45c2a) !important;
  background: color-mix(in oklch, var(--color-paper-3, #e8eef2) 70%, transparent);
  color: var(--color-ink-2, #555);
}

.post-content.markdown-body strong,
.post-content strong { font-weight: 700 !important; }

.post-content.markdown-body em,
.post-content em { font-style: italic !important; }

.post-content.markdown-body hr,
.post-content hr {
  margin: 1em 0 !important;
  border: 0;
  height: 1px;
  background: var(--color-rule, #d5dde3);
}

.post-content.markdown-body code,
.post-content code {
  font-family: var(--font-outlier, ui-monospace, Consolas, monospace) !important;
  font-size: 0.88em !important;
  padding: 0.1em 0.35em !important;
  border-radius: 0.25rem;
  background: color-mix(in oklch, var(--color-paper-3, #e8eef2) 80%, var(--color-accent, #c45c2a) 8%);
}

.post-content.markdown-body pre,
.post-content pre {
  margin: 0.7em 0 !important;
  padding: 0.75em 0.9em !important;
  overflow: auto;
  border-radius: 0.5rem;
  background: #272b33;
  color: #e6edf3;
}

.post-content.markdown-body pre code,
.post-content pre code {
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: 0.85rem !important;
}

.post-content.markdown-body table,
.post-content table {
  width: 100%;
  margin: 0.7em 0 !important;
  border-collapse: collapse;
}

.post-content.markdown-body th,
.post-content.markdown-body td,
.post-content th,
.post-content td {
  padding: 0.4em 0.65em !important;
  border: 1px solid var(--color-rule, #d5dde3);
  text-align: left;
}

.comment-body .comment-content img.hh-draw-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0.5rem 0;
}

.post-content img,
.markdown-body img:not(.emoji-image),
.post-content img.hh-content-img,
.markdown-body img.hh-content-img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  margin-left: auto;
  margin-right: auto;
}

.hh-aside-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hh-aside-card {
  padding: 15px;
  border: 1px solid var(--color-rule);
  border-radius: 12px;
  background: var(--color-paper);
  box-sizing: border-box;
}

.hh-aside-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink);
}

.hh-aside-title .line {
  flex: 1;
  height: 1px;
  background: var(--color-rule);
}

.hh-aside-author {
  text-align: center;
}

.hh-aside-author__logo {
  display: block;
}

.hh-aside-author__logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 88px;
  margin: 0 auto;
  object-fit: contain;
}

.hh-aside-author__motto {
  margin: 12px 0 14px;
  color: var(--color-ink-2);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

.hh-aside-author__count {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-rule);
  padding-top: 12px;
}

.hh-aside-author__count .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-muted);
  font-size: 12px !important;
  font-weight: 700 !important;
}

.hh-aside-author__count .item + .item {
  border-left: 1px solid var(--color-rule);
}

.hh-aside-author__count .num {
  color: var(--color-ink);
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

.hh-aside-hot__list,
.hh-aside-reply__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hh-aside-hot__item + .hh-aside-hot__item {
  margin-top: 12px;
}

.hh-aside-hot__item a {
  position: relative;
  display: block;
  height: 130px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-paper-3);
  text-decoration: none;
}

.hh-aside-hot__item a:hover img {
  transform: scale(1.12);
}

.hh-aside-hot__item img {
  display: block;
  width: 100% !important;
  height: 130px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  transition: transform 0.35s;
}

.hh-aside-hot__item .sort {
  position: absolute;
  top: 5px;
  right: -20px;
  z-index: 2;
  width: 65px;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  background: #7f7f8c;
  transform: rotate(45deg);
}

.hh-aside-hot__item .sort-1 { background: #ff183e; }
.hh-aside-hot__item .sort-2 { background: #ff5c38; }
.hh-aside-hot__item .sort-3 { background: #ffb821; }

.hh-aside-hot__item .desc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 10px 8px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75));
  color: #dcdfe6;
}

.hh-aside-hot__item h6 {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hh-aside-hot__item span {
  display: block;
  font-size: 12px;
  color: #c0c4cc;
}

.hh-aside-reply__item {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--color-rule);
}

.hh-aside-reply__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.hh-aside-reply__item .user {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.hh-aside-reply__item .avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  margin-right: 8px;
  padding: 2px;
  border: 1px solid var(--color-rule);
  border-radius: 50%;
  object-fit: cover;
  box-sizing: border-box;
}

.hh-aside-reply__item .info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.hh-aside-reply__item .author {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hh-aside-reply__item .date,
.hh-aside-empty {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 400;
}

.hh-aside-reply__item .reply {
  position: relative;
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--color-paper-3);
  color: var(--color-ink-2);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
}

.hh-aside-reply__item .reply::before {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 100%;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--color-paper-3);
}

/* 主页卡片整体缩至当前体积的 80%，文字同步缩小 */
:root {
  --hh-card-scale: 0.8;
}

:root .post-list .post-item {
  border-radius: 12px !important;
}

:root .post-list .post-item.m-1 {
  margin: 0.175rem !important;
}

@media (min-width: 768px) {
  :root .post-list .post-item.m-md-2,
  :root .post-list .post-item.m-1.m-md-2 {
    margin: 0.175rem !important;
  }

  :root .post-list > [class*="col-"]:nth-child(-n + 4) .post-item {
    margin-top: 0 !important;
  }
}

:root .post-list .post-item .post-cover::after {
  padding-top: 60%;
}

:root .post-list .post-item .post-info {
  gap: calc(0.5rem * var(--hh-card-scale));
  padding: calc(0.25rem * var(--hh-card-scale)) !important;
}

@media (min-width: 768px) {
  :root .post-list .post-item .post-info {
    padding: calc(0.5rem * var(--hh-card-scale)) !important;
  }

  :root .post-list .post-image-card .post-info {
    padding: calc(0.25rem * var(--hh-card-scale)) calc(0.5rem * var(--hh-card-scale)) calc(0.5rem * var(--hh-card-scale)) !important;
  }
}

@media (max-width: 767.98px) {
  :root .post-list .post-item .post-info {
    gap: calc(0.15rem * var(--hh-card-scale));
  }
}

:root .post-list .post-item .post-info .post-head > a {
  font-size: 0.7rem;
  margin-bottom: calc(0.25rem * var(--hh-card-scale));
}

:root .post-list .post-item .post-info .post-description {
  font-size: 0.625rem;
}

:root .post-list .post-item .post-info .top-tag {
  font-size: calc(var(--text-xs) * var(--hh-card-scale));
  padding: calc(0.15rem * var(--hh-card-scale)) calc(0.35rem * var(--hh-card-scale));
}

:root .post-meta-wrap .author-name,
:root .post-meta-wrap .post-meta {
  font-size: calc(var(--text-sm) * var(--hh-card-scale));
}

:root .post-list .post-image-card .post-info .author-name {
  font-size: calc(2rem * var(--hh-card-scale));
}

:root .post-list .post-image-card .post-info .post-meta {
  font-size: calc(1.25rem * var(--hh-card-scale));
}

@media (max-width: 767.98px) {
  :root .post-list .post-image-card .post-info .author-name {
    font-size: calc(1.5rem * var(--hh-card-scale));
  }

  :root .post-list .post-image-card .post-info .post-meta {
    font-size: calc(1rem * var(--hh-card-scale));
  }
}

:root .post-list .post-image-card .post-cover {
  height: calc(65% * var(--hh-card-scale));
  padding-bottom: calc(15% * var(--hh-card-scale));
}

:root .swiper-widget.m-1 {
  margin: calc(0.25rem * var(--hh-card-scale)) !important;
}

@media (min-width: 768px) {
  :root .swiper-widget.m-md-2,
  :root .swiper-widget.m-1.m-md-2 {
    margin: calc(0.5rem * var(--hh-card-scale)) !important;
  }
}

:root .swiper-widget .swiper-container {
  height: calc(15rem * var(--hh-card-scale));
}

:root .swiper-widget .swiper-container.no-sidebar {
  height: calc(16.5rem * var(--hh-card-scale));
}

:root .swiper-widget .swiper-slide-label {
  font-size: calc(0.85rem * var(--hh-card-scale));
}

:root .swiper-widget .swiper-slide-title {
  font-size: calc(1rem * var(--hh-card-scale));
}

:root .swiper-widget .swiper-slide-description {
  font-size: calc(0.85rem * var(--hh-card-scale));
}

:root .hh-aside-stack {
  gap: calc(16px * var(--hh-card-scale));
}

:root .hh-aside-card {
  padding: calc(15px * var(--hh-card-scale));
  border-radius: calc(12px * var(--hh-card-scale));
}

:root .hh-aside-title {
  gap: calc(10px * var(--hh-card-scale));
  margin-bottom: calc(12px * var(--hh-card-scale));
  font-size: calc(15px * var(--hh-card-scale));
}

:root .hh-aside-author__logo img {
  max-height: calc(88px * var(--hh-card-scale));
}

:root .hh-aside-author__motto {
  margin: calc(12px * var(--hh-card-scale)) 0 calc(14px * var(--hh-card-scale));
  font-size: calc(13px * var(--hh-card-scale));
}

:root .hh-aside-author__count {
  padding-top: calc(12px * var(--hh-card-scale));
}

:root .hh-aside-author__count .item {
  gap: calc(4px * var(--hh-card-scale));
  font-size: 12px !important;
  font-weight: 700 !important;
}

:root .hh-aside-author__count .num {
  font-size: 18px !important;
  font-weight: 700 !important;
}

:root .hh-aside-hot__item + .hh-aside-hot__item {
  margin-top: calc(12px * var(--hh-card-scale));
}

:root .hh-aside-hot__item a,
:root .hh-aside-hot__item img {
  height: calc(130px * var(--hh-card-scale)) !important;
}

:root .hh-aside-hot__item a {
  border-radius: calc(8px * var(--hh-card-scale));
}

:root .hh-aside-hot__item .sort {
  width: calc(65px * var(--hh-card-scale));
  font-size: calc(12px * var(--hh-card-scale));
}

:root .hh-aside-hot__item .desc {
  padding: calc(18px * var(--hh-card-scale)) calc(10px * var(--hh-card-scale)) calc(8px * var(--hh-card-scale));
}

:root .hh-aside-hot__item h6 {
  font-size: calc(14px * var(--hh-card-scale));
  line-height: calc(24px * var(--hh-card-scale));
}

:root .hh-aside-hot__item span {
  font-size: calc(12px * var(--hh-card-scale));
}

:root .hh-aside-reply__item {
  margin-bottom: calc(8px * var(--hh-card-scale));
  padding-bottom: calc(8px * var(--hh-card-scale));
}

:root .hh-aside-reply__item .user {
  margin-bottom: calc(6px * var(--hh-card-scale));
}

:root .hh-aside-reply__item .avatar {
  width: calc(32px * var(--hh-card-scale));
  height: calc(32px * var(--hh-card-scale));
  min-width: calc(32px * var(--hh-card-scale));
  margin-right: calc(8px * var(--hh-card-scale));
}

:root .hh-aside-reply__item .author {
  font-size: calc(14px * var(--hh-card-scale));
}

:root .hh-aside-reply__item .date,
:root .hh-aside-empty {
  font-size: calc(12px * var(--hh-card-scale));
}

:root .hh-aside-reply__item .reply {
  padding: calc(4px * var(--hh-card-scale)) calc(8px * var(--hh-card-scale));
  font-size: calc(13px * var(--hh-card-scale));
  border-radius: calc(6px * var(--hh-card-scale));
}
