/* 卡片主题：宽屏铺开、4 列、无顶栏 Logo。颜色交给 Aurora tokens。 */
.navbar-logo { display: none !important; }

.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);
  font-weight: 700;
}

.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: 36px;
  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: 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-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: var(--text-xs);
}

.post-meta-wrap .author-name,
.post-meta-wrap .post-meta {
  font-size: var(--text-sm);
}

.navbar-icon {
  --hh-ctrl-h: 36px;
  align-items: center !important;
  gap: var(--space-sm);
}

.navbar-icon > * {
  display: flex;
  align-items: center;
}

.navbar-icon .hh-backtop {
  display: none !important;
}

.navbar-icon .hh-backtop.is-visible {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}

.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 {
  height: var(--hh-ctrl-h) !important;
  min-height: var(--hh-ctrl-h) !important;
  box-sizing: border-box !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: 14px;
  height: 14px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.navbar-icon .nav-theme-toggle button[title="深色模式"] .hh-theme-ico {
  stroke: none;
}

.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.05rem;
  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;
}

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.markdown-body p,
.post-content p {
  margin: 0 0 1.2em;
}

.post-content.markdown-body p:last-child,
.post-content p:last-child {
  margin-bottom: 0;
}

.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;
  font-weight: 400;
}

.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;
  font-weight: 500;
  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);
}
