/* V 站：宽屏铺开、显示本站 Logo 与页脚。 */
.navbar-logo {
  display: flex !important;
  align-items: center;
}

.navbar-logo a {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 36px;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
}

.container {
  max-width: min(1680px, calc(100vw - 6rem)) !important;
  width: 100%;
}

@media (min-width: 768px) {
  .post-list > .post-col-5 {
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 0;
  }

  .post-main {
    min-height: calc(100vh - 7.5rem);
  }
}

.nav-inner .nav-item > .nav-a,
.nav-inner .nav-menu {
  font-size: var(--text-sm);
}

.post-list .post-item .post-info .post-head > a {
  font-size: var(--text-md);
  -webkit-line-clamp: 2;
}

.post-list .post-item .post-info .post-description {
  font-size: var(--text-sm);
}

.post-list .post-item .post-info .top-tag {
  font-size: var(--text-xs);
}

.post-meta-wrap .author-name,
.post-meta-wrap .post-meta {
  font-size: var(--text-sm);
}

.navbar-icon {
  align-items: center !important;
  gap: var(--space-sm);
}

.navbar-icon > * {
  display: flex;
  align-items: center;
}

.navbar-icon > style,
.navbar-icon > script {
  display: none !important;
}

.navbar-icon .hh-layout-switch.visitor-theme-switch--pair {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  background: color-mix(in oklch, var(--color-paper) 72%, var(--color-paper-3));
  box-shadow: inset 0 1px 0 color-mix(in oklch, #fff 55%, transparent);
}

.navbar-icon .hh-layout-switch .visitor-theme-switch__item {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  height: 1.7rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.navbar-icon .hh-layout-switch .visitor-theme-switch__item:hover {
  color: var(--color-ink);
}

.navbar-icon .hh-layout-switch .visitor-theme-switch__item.is-active {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: 0 4px 10px -6px var(--color-glow);
}

.navbar-icon .iconfont,
.navbar-icon .nav-login .iconfont {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.navbar-icon .nav-theme-toggle.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  background: var(--color-paper-2);
  box-shadow: none;
}

.navbar-icon .nav-theme-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  color: var(--color-ink-2);
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.navbar-icon .nav-theme-toggle button .hh-theme-ico {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.navbar-icon .nav-theme-toggle button[title="深色模式"] .hh-theme-ico {
  fill: currentColor;
  stroke: none;
}

.navbar-icon .nav-theme-toggle button.active,
.navbar-icon .nav-theme-toggle button:hover,
.navbar-icon .nav-theme-toggle button.is-hover {
  background: var(--color-accent) !important;
  color: var(--color-accent-ink);
}

.navbar-icon .nav-theme-toggle button.active .hh-theme-ico,
.navbar-icon .nav-theme-toggle button:hover .hh-theme-ico {
  color: var(--color-accent-ink);
}

.navbar-icon .hh-backtop {
  display: none !important;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 2rem;
  padding: 0 0.7rem 0 0.5rem;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  background: var(--color-paper-2);
  color: var(--color-ink);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-icon .hh-backtop.is-visible {
  display: inline-flex !important;
}

.navbar-icon .hh-backtop:hover,
.navbar-icon .hh-backtop:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.navbar-icon .hh-backtop__ico {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-copyright,
.post-next-prev {
  display: none !important;
}

.navbar,
.navbar.nav-pill,
.navbar.nav-ui-one,
.navbar.nav-ui-two {
  position: fixed !important;
}

main > .container {
  min-height: auto;
  padding-top: 0.5rem !important;
}

.nav-fixed {
  padding-top: 4.35rem !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;
}

.pagination {
  flex-wrap: wrap;
  gap: var(--space-xs) !important;
}

.pagination .page-item {
  width: auto !important;
  min-width: 2.25rem;
  height: 2.25rem !important;
}

.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 1.5s 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 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s 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%;
}

.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;
}

@media (min-width: 992px) {
  .row > .col-lg-9 .post-list > .post-col-5 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

.hh-aside-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hh-aside-card {
  background: var(--color-paper);
  color: var(--color-ink);
  border: 1px solid var(--color-rule);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hh-aside-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem 0.2rem;
  color: var(--color-ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.hh-aside-title .line {
  flex: 1;
  height: 1px;
  background: var(--color-rule);
}

.hh-aside-empty {
  padding: 0.8rem 1rem 1rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.hh-aside-author__logo {
  display: block;
  padding: 1.1rem 1.15rem 0.35rem;
}

.hh-aside-author__logo img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.hh-aside-author__motto {
  margin: 0.25rem 1.15rem 0.15rem;
  min-height: 1.4em;
  text-align: center;
  color: var(--color-ink-2);
  font-size: 0.82rem;
  line-height: 1.55;
  word-break: break-word;
}

.hh-aside-author__count {
  display: flex;
  margin: 0.9rem 0 0;
  border-top: 1px solid var(--color-rule);
}

.hh-aside-author__count .item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.85rem 0.4rem 1rem;
}

.hh-aside-author__count .item + .item {
  border-left: 1px solid var(--color-rule);
}

.hh-aside-author__count .num {
  color: var(--color-ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.hh-aside-author__count span:last-child {
  color: var(--color-muted);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.hh-aside-hot__list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.85rem 0.9rem;
}

.hh-aside-hot__item + .hh-aside-hot__item {
  margin-top: 0.7rem;
}

.hh-aside-hot__item a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  color: inherit;
}

.hh-aside-hot__item img {
  display: block;
  width: 100%;
  height: 8.1rem;
  object-fit: cover;
}

.hh-aside-hot__item .sort {
  position: absolute;
  top: 0;
  right: 0.7rem;
  z-index: 2;
  width: 1.35rem;
  height: 1.7rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.2rem;
  color: #fff;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f0b429;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

.hh-aside-hot__item .sort-1 { background: #e11d2e; }
.hh-aside-hot__item .sort-2 { background: #f08a24; }

.hh-aside-hot__item .desc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.7rem 0.55rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}

.hh-aside-hot__item h6 {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.hh-aside-hot__item span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  opacity: 0.85;
}

.hh-aside-reply__list {
  list-style: none;
  margin: 0;
  padding: 0.2rem 1rem 0.9rem;
}

.hh-aside-reply__item + .hh-aside-reply__item {
  margin-top: 0.85rem;
}

.hh-aside-reply__item .user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hh-aside-reply__item .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.hh-aside-reply__item .author {
  font-size: 0.88rem;
  font-weight: 650;
}

.hh-aside-reply__item .date {
  display: block;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.hh-aside-reply__item .reply {
  display: block;
  margin-top: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: var(--color-paper-2);
  color: var(--color-ink-2);
  font-size: 0.82rem;
  line-height: 1.45;
}

html.hh-aurora,
html.hh-aurora body {
  min-height: 100%;
}

html.hh-aurora body {
  display: flex;
  flex-direction: column;
}

html.hh-aurora main {
  flex: 1 0 auto;
}

.hh-site-footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  padding: 1.25rem 0 1.6rem;
  border-top: 1px solid var(--color-rule);
  color: var(--color-ink-2);
  font-size: 0.82rem;
  line-height: 1.7;
  text-align: center;
}

.hh-site-footer p {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin: 0;
  white-space: nowrap;
}

.hh-site-footer__sep {
  color: var(--color-rule-2);
}

.hh-site-footer a {
  color: inherit;
  text-decoration: none;
}

.hh-site-footer a:hover {
  color: var(--color-accent);
}
