/* moredoc runtime overrides — loaded after nuxt chunks to beat stale CSS cache */
.support-card img,
.page-category .keywords .support-card img,
img[src="/static/images/support-qrcode.png"],
img[src*="support-qrcode.png"] {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

/* header slogan 2026-06-18 —紧挨搜索框右侧、黑色字体 */
.com-global-header .el-header .nav-searchbox {
  padding-right: 0 !important;
}
.com-global-header .el-header .el-menu-item.header-slogan {
  border-bottom: none !important;
  cursor: default;
  float: left !important;
  margin-left: 14px !important;
  padding: 0 !important;
}
.com-global-header .el-header .el-menu-item.header-slogan.is-active {
  border-color: transparent !important;
}
.com-global-header .el-header .header-slogan-text {
  color: #303133;
  font-size: 14px;
  line-height: 60px;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 991px) {
  .com-global-header .el-header .el-menu-item.header-slogan {
    display: none !important;
  }
  .com-global-header .el-header .el-menu-item.header-visit-count {
    display: none !important;
  }
}

/* header visit count 2026-06-18 — 页头右上角 */
.com-global-header .el-header .el-menu-item.header-visit-count {
  border-bottom: none !important;
  cursor: default;
  float: right !important;
  margin-left: auto !important;
  padding: 0 20px 0 16px !important;
}
.com-global-header .el-header .el-menu-item.header-visit-count.is-active {
  border-color: transparent !important;
}
.com-global-header .el-header .header-visit-count-text {
  color: #303133;
  font-size: 14px;
  line-height: 60px;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

/* header logo / site title spacing 2026-06-18 */
.com-global-header .el-header .logo .site-logo-link,
.el-header .logo .site-logo-link {
  gap: 16px !important;
}
.com-global-header .el-header .logo .site-logo-avatar,
.el-header .logo .site-logo-avatar {
  margin-right: 12px !important;
  background-image: url("/static/images/logo-linshaonan.png?v=2") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
/* footer logo + title fix 2026-06-18 */
.com-global-footer .footer-links .links-logo .site-logo-link,
.com-global-footer .footer-links .links-logo .site-logo-link.nuxt-link-active,
.com-global-footer .footer-links .links-logo .site-logo-link.nuxt-link-exact-active,
.com-global-footer .footer-links .links-logo .site-logo-link:hover,
.com-global-footer .footer-links .links-logo .site-logo-link:visited,
.com-global-footer .footer-links .links-logo .site-logo-link:focus,
.com-global-footer .footer-links .links-logo .site-logo-link:active {
  color: #ecf0f1 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
}
.com-global-footer .footer-links .links-logo .site-logo-title,
.com-global-footer .footer-links .links-logo a.site-logo-link .site-logo-title,
.com-global-footer .footer-links .links-logo .site-logo-link .site-logo-title,
.com-global-footer .footer-links .links-logo .site-logo-link:visited .site-logo-title,
.com-global-footer .footer-links .links-logo .site-logo-link:hover .site-logo-title,
.com-global-footer .footer-links .links-logo .site-logo-link.nuxt-link-active .site-logo-title,
.com-global-footer .footer-links .links-logo .site-logo-link.nuxt-link-exact-active .site-logo-title {
  color: #ecf0f1 !important;
}
/* footer avatar v4 — hide broken img, show span.footer-avatar-img 2026-06-18 */
.com-global-footer .footer-links .links-logo img.site-logo-avatar,
footer .links-logo img.site-logo-avatar,
.el-footer .links-logo img.site-logo-avatar {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.com-global-footer .footer-links .links-logo .footer-avatar-img,
footer .links-logo .footer-avatar-img,
.el-footer .links-logo .footer-avatar-img {
  display: inline-block !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  background-image: url("/static/images/footer-avatar.png?v=4") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
  flex-shrink: 0;
  opacity: 1 !important;
  visibility: visible !important;
}

/* category filter: 二级分类 label spacing 2026-06-18 */
.page-category .item-row .item-name-sub {
  width: 84px !important;
  min-width: 84px !important;
  margin-right: 16px !important;
  flex-shrink: 0 !important;
}

/* document preview: hide bottom-right vertical circular FABs 2026-06-18
   DOM: .com-fixed-right-bar (FixedRightBar) + .el-backtop (Element BackTop)
   Three round buttons: 发布文章/外链、云上传、返回顶部 — NOT .fixed-buttons toolbar */
.com-fixed-right-bar,
.com-fixed-right-bar.hidden-xs-only,
.el-backtop,
body:has(.page-document) .com-fixed-right-bar,
body:has(.page-document) .el-backtop {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* document preview toolbar: inline after 继续阅读 2026-06-18 */
.page-document .fixed-buttons,
.page-document .fixed-buttons.doc-toolbar-inline {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-top: 12px;
  height: auto !important;
}
.page-document .doc-main .fixed-buttons {
  border-top: 1px solid #dcdfe6;
  margin-top: 0;
  padding-top: 0;
}
.page-document .doc-main .fixed-buttons .el-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.page-document .doc-main .fixed-buttons .el-card .el-button {
  padding: 14px 15px !important;
}

/* document preview bottom toolbar: hide 魔豆 + 底栏下载 2026-06-18 */
.page-document .fixed-buttons .btn-coin,
.page-document .fixed-buttons .float-right .el-button:not(.btn-coin) {
  display: none !important;
}

/* restore main content download (do not hide .doc-page-more primary button) */
.page-document .doc-page-more .el-button--primary {
  display: inline-block !important;
}

/* document detail: hide 语言/格式, 概览 full width 2026-06-18 */
.page-document .document-descriptions .el-descriptions-row th:nth-child(1),
.page-document .document-descriptions .el-descriptions-row th:nth-child(2),
.page-document .document-descriptions .el-descriptions-row td:nth-child(1),
.page-document .document-descriptions .el-descriptions-row td:nth-child(2) {
  display: none !important;
}
.page-document .document-descriptions .el-descriptions__table {
  width: 100% !important;
  table-layout: fixed !important;
}
.page-document .document-descriptions .el-descriptions-row th:last-child,
.page-document .document-descriptions .el-descriptions-row td:last-child {
  width: 100% !important;
  max-width: none !important;
  text-align: left !important;
}
.page-document .document-descriptions .description {
  text-align: left;
}

/* same-route click refresh feedback 2026-06-18 */
.page-category .doc-list.moredoc-refresh-flash {
  animation: moredoc-refresh-flash 0.6s ease;
}
@keyframes moredoc-refresh-flash {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
.moredoc-click-active {
  opacity: 0.65 !important;
  transition: opacity 0.15s ease;
}
.moredoc-refresh-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #67c23a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.moredoc-refresh-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* document list meta: hide 上传时间 + 星级评分 2026-06-18 */
.doc-list .com-document-list .doc-info > span > span,
.com-document-list .doc-info > span > span {
  display: none !important;
}
.doc-list .com-document-list .doc-info .el-rate,
.com-document-list .doc-info .el-rate {
  display: none !important;
}
/* first separator (after 魔豆; credit text stripped in custom-overrides.js) */
.doc-list .com-document-list .doc-info > span > .line:first-of-type,
.com-document-list .doc-info > span > .line:first-of-type {
  display: none !important;
}
