.kb-page {
  padding-bottom: 100px;
}

.kb-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-top: 40px;
}

.kb-side {
  flex: 0 0 220px;
  width: 220px;
  padding: 22px 18px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.kb-side-title {
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 2px solid #30ba96;
  color: #333;
  font-size: 18px;
}

.kb-cat {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  color: #666;
  font-size: 15px;
  line-height: 1.4;
  transition: all 0.2s;
}

.kb-cat:hover {
  color: #30ba96;
  background: #f4fbf8;
}

.kb-cat.on {
  color: #fff;
  background: #30ba96;
}

.kb-main {
  flex: 1;
  min-width: 0;
}

.kb-search {
  display: flex;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

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

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

.kb-search button {
  float: none;
  flex: 0 0 100px;
  width: 100px;
  height: 48px;
  margin: 0;
  border: 0;
  color: #fff;
  background: #30ba96;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.kb-search button:hover {
  background: #28a584;
}

.kb-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kb-card {
  display: block;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}

.kb-card:hover {
  transform: translateY(-2px);
  border-color: #e8f6f1;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

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

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

.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: 13px;
}

.kb-card h3 {
  margin: 0 0 8px;
  color: #333;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.2s;
}

.kb-card:hover h3 {
  color: #30ba96;
}

.kb-card p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: #777;
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kb-more {
  color: #30ba96;
  font-size: 13px;
}

.kb-more i {
  font-style: normal;
  margin-left: 2px;
}

.kb-empty {
  padding: 60px 20px;
  background: #fff;
  border-radius: 8px;
  color: #999;
  font-size: 15px;
  text-align: center;
}

.kb-pagination {
  margin-top: 32px;
}

.kb-detail {
  padding-bottom: 100px;
}

.kb-breadcrumb {
  padding-top: 28px;
  color: #999;
  font-size: 14px;
}

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

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

.kb-detail-content {
  max-width: 960px;
  margin: 24px auto 0;
  padding: 50px 60px 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.kb-detail-title {
  margin: 0 0 18px;
  color: #333;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.kb-detail-meta {
  margin-bottom: 28px;
  color: #999;
  font-size: 13px;
  text-align: center;
}

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

.kb-detail-summary {
  margin-bottom: 30px;
  padding: 16px 20px;
  border-left: 3px solid #30ba96;
  background: #f7fbfa;
  color: #666;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
}

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

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

.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: 28px 0 14px;
  color: #333;
  font-weight: 500;
}

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

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

.kb-detail-body table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

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

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

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

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

.kb-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  color: #fff !important;
  background: #30ba96;
  font-size: 15px;
  transition: background 0.2s;
}

.kb-btn:hover {
  background: #28a584;
}

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

.kb-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.kb-back a {
  color: #999;
  font-size: 14px;
}

.kb-back a:hover {
  color: #30ba96;
}

.kb-empty-detail {
  max-width: 960px;
  margin: 24px auto 0;
}

.kb-empty-detail a {
  margin-left: 8px;
  color: #30ba96;
}
