.kb-m-page {
  padding-bottom: 40px;
  background: #f3f6fd;
}

.kb-m-page > img {
  display: block;
  width: 100%;
  height: auto;
}

.kb-m-head {
  padding: 18px 16px 8px;
}

.kb-m-head h1 {
  margin: 0;
  color: #333;
  font-size: 24px;
  font-weight: 500;
}

.kb-m-head p {
  margin: 4px 0 0;
  color: #aaa;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.kb-m-cats {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.kb-m-cats::-webkit-scrollbar {
  display: none;
}

.kb-m-cats a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid #eee;
  border-radius: 16px;
  color: #666;
  background: #fff;
  font-size: 13px;
  line-height: 1;
}

.kb-m-cats a.on {
  border-color: #30ba96;
  color: #fff;
  background: #30ba96;
}

.kb-m-search {
  display: flex;
  margin: 0 12px 12px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.kb-m-search input[type="text"] {
  float: none;
  flex: 1;
  min-width: 0;
  width: auto;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  outline: none;
  color: #333;
  line-height: 40px;
  background: #fff;
  font-size: 13px;
  text-align: left;
  box-sizing: border-box;
}

.kb-m-search input[type="text"]::placeholder {
  color: #b5b5b5;
}

.kb-m-search button {
  flex: 0 0 64px;
  width: 64px;
  height: 40px;
  margin: 0;
  border: 0;
  color: #fff;
  background: #30ba96;
  font-size: 13px;
}

.kb-m-list {
  padding: 0 12px;
}

.kb-m-card {
  display: block;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.kb-m-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.kb-m-card h3 {
  margin: 0 0 6px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.kb-m-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #888;
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kb-type {
  display: inline-block;
  padding: 0 7px;
  border-radius: 3px;
  color: #30ba96;
  background: #eaf8f4;
  font-size: 11px;
  line-height: 20px;
}

.kb-type-link {
  color: #2075ad;
  background: #eaf2fb;
}

.kb-type-image {
  color: #d98a2b;
  background: #fff4e8;
}

.kb-type-file {
  color: #666;
  background: #f2f3f5;
}

.kb-date {
  color: #999;
  font-size: 12px;
}

.kb-m-pagination {
  margin-top: 20px;
}

.kb-m-detail-page {
  padding-bottom: 90px;
}

.kb-m-detail {
  margin: 12px;
  padding: 18px 16px 24px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.kb-m-breadcrumb {
  margin-bottom: 12px;
  color: #999;
  font-size: 12px;
}

.kb-m-breadcrumb a {
  color: #30ba96;
}

.kb-m-breadcrumb span {
  margin: 0 6px;
}

.kb-m-detail-title {
  margin: 0 0 10px;
  color: #333;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
}

.kb-detail-meta {
  margin-bottom: 16px;
  color: #999;
  font-size: 12px;
  text-align: left;
}

.kb-detail-meta span {
  display: inline-block;
  margin: 0 10px 0 0;
  vertical-align: middle;
}

.kb-detail-summary {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 3px solid #30ba96;
  background: #f7fbfa;
  color: #666;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.kb-detail-body {
  color: #333;
  font-size: 14px;
  line-height: 1.9;
  word-break: break-word;
}

.kb-detail-body p {
  margin: 0 0 14px;
}

.kb-detail-body h1,
.kb-detail-body h2,
.kb-detail-body h3,
.kb-detail-body h4,
.kb-detail-body h5,
.kb-detail-body h6 {
  margin: 22px 0 10px;
  color: #333;
  font-weight: 500;
}

.kb-detail-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px auto;
}

.kb-detail-body a {
  color: #30ba96;
}

.kb-detail-body table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  font-size: 12px;
}

.kb-detail-body th,
.kb-detail-body td {
  padding: 6px 8px;
  border: 1px solid #e8e8e8;
}

.kb-detail-body th {
  background: #f7fbfa;
}

.kb-resource {
  padding: 20px 0;
  text-align: center;
}

.kb-image img {
  max-width: 100%;
  height: auto;
}

.kb-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  color: #fff !important;
  background: #30ba96;
  font-size: 14px;
}

.kb-resource-empty {
  color: #999;
  font-size: 13px;
}

.kb-m-back-text {
  margin-top: 24px;
  text-align: center;
}

.kb-m-back-text a {
  color: #999;
  font-size: 13px;
}

.kb-m-back {
  position: fixed;
  right: 20px;
  bottom: 70px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(48, 186, 150, 0.88);
  box-shadow: 0 4px 12px rgba(48, 186, 150, 0.3);
}

.kb-m-back span {
  position: absolute;
  top: 16px;
  left: 19px;
  width: 10px;
  height: 10px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(-45deg);
}

.kb-empty {
  margin: 12px;
  padding: 40px 16px;
  border-radius: 6px;
  background: #fff;
  color: #999;
  font-size: 14px;
  text-align: center;
}

.kb-empty-detail {
  margin: 20px 0 0;
}

.kb-empty-detail a {
  display: inline-block;
  margin-left: 6px;
  color: #30ba96;
}
