html {
  height: 100%;
}

body {
  font-family: "Microsoft YaHei";
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sticky {
  position: sticky;
  position: -webkit-sticky;
  top: 1rem;
}

.text-overflow-ellipsis {
  word-break: break-all;
  white-space: nowrap;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  overflow: hidden;
}

.text-line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  margin-bottom: 0;
}

.main-container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  flex-grow: 1;
}

.text-label {
  display: inline-block;
  padding: 2px 4px;
  border-radius: 0.25rem;
}

.search-box {
  padding: 1.25rem 0;
}

.search-box .search-wrapper {
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding-left: 0.75rem;
  cursor: pointer;
}

#searchModal #input-search:focus {
  box-shadow: unset;
  border-color: rgba(var(--bs-danger-rgb));
}

#searchModal #select-search:focus {
  box-shadow: unset;
  border-color: rgba(var(--bs-danger-rgb));
}

.page-section {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--bs-box-shadow-sm) !important;
  border-radius: 0.25rem;
}

.page-section-title {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed #e2e2e2;
  font-size: 1rem;
  letter-spacing: 2px;
}

.page-section-title>i:first-of-type {
  color: rgba(var(--bs-danger-rgb));
}

.page-section-title-right {
  float: right;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.page-section-content .article-item:last-child {
  border-bottom: none;
}

.page-section-content .article-item {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #eee;
}

.page-section-content .article-item .article-item-image {
  width: 180px;
}

.page-section-content .index-article-item div:last-child a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 1;
}

.page-section-content .index-article-item div:last-child p:last-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  margin-bottom: 0;
}

.page-section-content .index-article-item div:first-child img {
  width: 128px;
  margin-top: 11px;
}

.page-section-content .index-post-item span:last-child {
  float: right;
}

.page-section-content ul {
  margin: 0;
  padding: 0;
}

.page-section-content ul li {
  list-style: none;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.fs-7 {
  font-size: 0.75rem !important;
}

.text-indent-2 {
  text-indent: 2em;
}

.btn-search {
  width: 48px;
}

.small-container {
  max-width: 480px;
  margin: auto;
}

.article-content img {
  max-width: 100%;
  display: block;
  margin: auto;
}

.page-section h1 {
  font-weight: normal;
}

.article-content h2 {
  border-left: 4px solid rgba(var(--bs-danger-rgb));
  padding-left: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.article-content h3 {
  border-left: 4px solid rgba(var(--bs-secondary-rgb));
  padding-left: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.article-content h4,
.article-content h5,
.article-content h6,
.article-content h7,
.article-content h8,
.article-content h9 {
  font-size: 1rem;
  font-weight: bold;
  text-indent: 2em;
  margin-bottom: 1rem;
}

.article-content p {
  text-indent: 2em;
}

.article-content a {
  color: var(--bs-link-color);
}

.article-content a:hover {
  color: var(--bs-link-hover-color);
}

.comment-item img {
  flex-shrink: 0 !important;
  margin-right: 12px;
  margin-top: 6px;
}

.comment-item i {
  flex-shrink: 0 !important;
  margin-right: 12px;
  margin-top: 6px;
}

.cursor-pointer {
  cursor: pointer;
}

.latest-comments li {
  display: flex;
  align-items: flex-start;
}

.latest-comments li img {
  margin-top: 4px;
}

.latest-comments li i {
  margin-top: 4px;
}

.latest-comments li div {
  width: 0;
  flex-grow: 1;
  padding-left: 0.75rem;
}

.latest-comments li p {
  margin-top: 0;
  margin-bottom: 0;
  word-break: break-all;
  white-space: nowrap;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  overflow: hidden;
  font-size: 0.75rem;
}

.active-users li {
  display: inline-block;
  margin-right: 4px;
  margin-top: 4px;
  margin-bottom: 4px;
  padding: 0 !important;
}

.forum-post-img {
  width: 80px;
}

.forum-img img {
  width: 100%;
}

.posts-container table {
  width: 100%;
}

.posts-container table tbody {
  font-size: 1rem;
}

.posts-container table tbody .two-line {
  font-size: 0.75rem;
  white-space: nowrap;
}

.posts-container table thead tr th {
  font-size: 1rem;
  font-weight: normal;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.posts-container table tbody tr td {
  vertical-align: middle;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.posts-details-container .post-portrait {
  width: 44px;
  float: left;
}

.posts-details-container .post-portrait img {
  margin-top: 4px;
}

.posts-details-container .post-portrait i {
  margin-top: 4px;
}

.posts-details-container .post-title h1 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 0;
}

.posts-details-container .post-title .post-date {
  font-size: 0.75rem;
}

.post-content h2 {
  border-left: 4px solid rgba(var(--bs-danger-rgb));
  padding-left: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.post-content h3 {
  border-left: 4px solid rgba(var(--bs-secondary-rgb));
  padding-left: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.post-content h4,
.post-content h5,
.post-content h6,
.post-content h7,
.post-content h8,
.post-content h9 {
  font-size: 1rem;
  font-weight: bold;
  text-indent: 2em;
  margin-bottom: 1rem;
}

.posts-details-container .post-content p {
  text-indent: 2em;
}

.posts-details-container .post-content a {
  color: var(--bs-link-color);
}

.posts-details-container .post-content a:hover {
  color: var(--bs-link-hover-color);
}

.posts-details-container .post-content img {
  display: block;
  max-width: 100%;
  margin: auto;
}

.posts-details-container .comment-content img {
  display: block;
  max-width: 100%;
  margin: auto;
}

.posts-details-container .comment-content p {
  margin-bottom: 0;
  text-indent: 2em;
}

.posts-details-container .comment-content a {
  color: var(--bs-link-color);
}

.posts-details-container .comment-content a:hover {
  color: var(--bs-link-hover-color);
}

.comment-content h2 {
  border-left: 4px solid rgba(var(--bs-danger-rgb));
  padding-left: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.comment-content h3 {
  border-left: 4px solid rgba(var(--bs-secondary-rgb));
  padding-left: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.comment-content h4,
.comment-content h5,
.comment-content h6,
.comment-content h7,
.comment-content h8,
.comment-content h9 {
  font-size: 1rem;
  font-weight: bold;
  text-indent: 2em;
  margin-bottom: 1rem;
}

.posts-details-container .post-bar {
  text-align: right;
}

footer {
  background: rgb(51, 51, 51);
}

.account-nav li a {
  padding-left: 0.75rem;
}

.account-nav li.current a {
  color: var(--bs-link-hover-color);
  border-left: 4px solid rgba(var(--bs-danger-rgb));
  padding-left: 0.5rem;
}

.avatar-popover {
  --bs-popover-header-bg: rgba(var(--bs-danger-rgb));
  --bs-popover-border-color: rgba(var(--bs-danger-rgb));
  --bs-popover-header-color: var(--bs-white);
}

.avatar-popover p {
  margin-bottom: 0.25rem;
}

@media (min-width: 576px) {
  .top-icon-container {
    right: 40px !important;
    bottom: 120px !important;
  }

  .navbar-nav .nav-item .active {
    background-color: var(--bs-tertiary-bg);
  }

  .navbar-expand-sm .navbar-nav .nav-link {
    padding: 4px 12px;
    border-radius: 0.5rem;
  }

  .page-section-content .article-item .article-item-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
  }
}

.icon-avatar {
  border-radius: 0.25rem;
  background: #16baaa;
  font-style: normal;
  color: #fff;
  text-align: center;
  display: inline-block;
}

.icon-avatar-xsm {
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
}

.icon-avatar-sm {
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 18px;
}

.icon-avatar-md {
  width: 44px;
  height: 44px;
  line-height: 44px;
  font-size: 24px;
}

.icon-avatar-lg {
  width: 56px;
  height: 56px;
  line-height: 56px;
  font-size: 30px;
}

.icon-avatar-xlg {
  width: 68px;
  height: 68px;
  line-height: 68px;
  font-size: 42px;
}

.user-avatar {
  border-radius: 0.25rem;
}

.user-avatar-xsm {
  width: 24px;
  height: 24px;
}

.user-avatar-sm {
  width: 36px;
  height: 36px;
}

.user-avatar-md {
  width: 44px;
  height: 44px;
}

.user-avatar-lg {
  width: 56px;
  height: 56px;
}

.user-avatar-xlg {
  width: 68px;
  height: 68px;
}

.navbar-brand .site-logo {
  max-height: 40px;
  vertical-align: middle;
}

.navbar-brand .site-name {
  vertical-align: middle;
  letter-spacing: 2px;
}

.navbar-nav .nav-item .nav-link:hover {
  background-color: var(--bs-tertiary-bg);
}

.navbar-nav .nav-item .active {
  color: var(--bs-link-hover-color);
}

.navbar-nav .dropdown .dropdown-item.active,
.dropdown-item:active {
  color: var(--bs-link-hover-color);
  background-color: unset;
}

/*manage*/
.mce-content-body img {
  max-width: 80%;
  display: block;
  margin: auto;
}

.left-sidebar {
  min-width: 240px;
  display: block;
}

.left-nav-item {
  text-decoration: none;
  display: block;
}

.file-item {
  width: 100px;
  padding: 0 10px;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.file-item span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.file-item img {
  display: block;
  height: 48px;
  margin: auto;
  margin-top: 10px;
  margin-bottom: 10px;
}

.postcomment-preview h2 {
  border-left: 4px solid rgba(var(--bs-danger-rgb));
  padding-left: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.postcomment-preview h3 {
  border-left: 4px solid rgba(var(--bs-secondary-rgb));
  padding-left: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.postcomment-preview h4,
.postcomment-preview h5,
.postcomment-preview h6,
.postcomment-preview h7,
.postcomment-preview h8,
.postcomment-preview h9 {
  font-size: 1rem;
  font-weight: bold;
  text-indent: 2em;
  margin-bottom: 1rem;
}

.postcomment-preview p {
  text-indent: 2em;
}

.postcomment-preview a {
  color: var(--bs-link-color);
}

.postcomment-preview a:hover {
  color: var(--bs-link-hover-color);
}

.postcomment-preview img {
  display: block;
  max-width: 100%;
  margin: auto;
}

.top-icon-container {
  position: fixed;
  right: 20px;
  bottom: 60px;
}

.top-icon-wrapper {
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease;
  opacity: 0;
}

.top-icon-wrapper i {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

.top-icon-wrapper.pressed {
  transform: translate(0, 20px);
}

.top-icon-wrapper.fly {
  animation: fly-up 1s forwards ease-in;
}

@keyframes fly-up {
  0% {
    transform: translate(0, 20px);
    opacity: 1;
  }

  100% {
    transform: translate(0, -500px);
    opacity: 0;
  }
}

.account-avatar-bg {
  z-index: -1;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  height: 64px;
  background-image: url(/images/avatar-bg.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.account-avatar {
  margin-top: 24px;
  margin-left: 0px;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 0.25rem;
  padding: 2px;
}

.account-nickname {
  margin-top: 52px;
  margin-left: 12px;
  font-weight: bold;
}

.space-postcomment-time {
  min-width: 88px;
  text-align: right;
}

.space-post-time {
  min-width: 88px;
  text-align: right;
}

.message-content h2 {
  border-left: 4px solid rgba(var(--bs-danger-rgb));
  padding-left: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.message-content h3 {
  border-left: 4px solid rgba(var(--bs-secondary-rgb));
  padding-left: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.message-content h4,
.message-content h5,
.message-content h6,
.message-content h7,
.message-content h8,
.message-content h9 {
  font-size: 1rem;
  font-weight: bold;
  text-indent: 2em;
  margin-bottom: 1rem;
}

.message-content a {
  color: var(--bs-link-color);
}

.message-content a:hover {
  color: var(--bs-link-hover-color);
}

.message-content img {
  max-width: 100%;
  display: block;
  margin: auto;
}

.product-categories-wrapper span {
  padding: 8px 12px;
  display: inline-block;
}

.product-categories-wrapper a {
  padding: 8px 12px;
  display: inline-block;
}

.product-categories-wrapper a.active {
  border-radius: 0.5rem;
  color: rgba(var(--bs-danger-rgb));
  background-color: var(--bs-tertiary-bg);
}