/* KKY Theme - Help Center CSS */

.kky-help-banner {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #dde6ff 100%);
  padding: 80px 0 60px;
  text-align: center;
  color: #333;
}

.kky-help-banner h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
}

.kky-help-banner p {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

.kky-help-search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.kky-help-search input {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  padding: 0 120px 0 24px;
  font-size: 15px;
  border: none;
  background: #fff;
  color: #333;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.kky-help-search input::placeholder {
  color: #999;
}

.kky-help-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  height: 40px;
  padding: 0 24px;
  border-radius: 20px;
  background: #2B5BFF;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.kky-help-search button:hover {
  background: #1a3fd4;
}

.kky-help-hotwords {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.8;
}

.kky-help-hotwords span {
  margin-right: 4px;
}

.kky-help-hotwords a {
  color: #fff;
  opacity: 0.9;
  margin: 0 8px;
  transition: opacity 0.2s;
}

.kky-help-hotwords a:hover {
  opacity: 1;
  text-decoration: underline;
}

.kky-help-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px 60px;
  display: flex;
  gap: 30px;
}

.kky-help-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.kky-help-sidebar-inner {
  position: sticky;
  top: 80px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.kky-help-sidebar-title {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  background: #fafbfc;
}

.kky-help-sidebar ul {
  padding: 8px 0;
}

.kky-help-sidebar li {
  list-style: none;
}

.kky-help-sidebar li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #555;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.kky-help-sidebar li a:hover {
  color: #2B5BFF;
  background: #f5f7ff;
}

.kky-help-sidebar li.active a {
  color: #2B5BFF;
  background: #f0f4ff;
  border-left-color: #2B5BFF;
  font-weight: 500;
}

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

.kky-help-breadcrumb {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}

.kky-help-breadcrumb a {
  color: #666;
}

.kky-help-breadcrumb a:hover {
  color: #2B5BFF;
}

.kky-help-breadcrumb span {
  margin: 0 6px;
  color: #ccc;
}

.kky-help-list {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.kky-help-item {
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.kky-help-item:last-child {
  border-bottom: none;
}

.kky-help-item:hover {
  background: #fafbfc;
}

.kky-help-item a {
  display: block;
  padding: 18px 24px;
  color: #333;
}

.kky-help-item a:hover {
  color: #333;
}

.kky-help-item a:hover .kky-help-item-title {
  color: #2B5BFF;
}

.kky-help-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kky-help-item-info {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
  color: #999;
}

.kky-help-item-info svg {
  vertical-align: middle;
  margin-right: 4px;
  flex-shrink: 0;
}

.kky-help-item-cate {
  display: inline-flex;
  align-items: center;
  color: #999;
}

.kky-help-item-sep {
  margin: 0 8px;
  color: #ccc;
}

.kky-help-item-time {
  display: inline-flex;
  align-items: center;
  color: #999;
}

.kky-help-item-views {
  display: inline-flex;
  align-items: center;
  color: #999;
}

.kky-help-item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 20px;
  flex-shrink: 0;
}

.kky-help-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 15px;
}

.kky-help-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.kky-help-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 0;
}

.kky-help-pagination a,
.kky-help-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  background: #fff;
  border: 1px solid #e8e8e8;
  transition: all 0.2s;
}

.kky-help-pagination a:hover {
  color: #2B5BFF;
  border-color: #2B5BFF;
}

.kky-help-pagination span.active {
  background: #2B5BFF;
  color: #fff;
  border-color: #2B5BFF;
}

.kky-help-pagination span.disabled {
  color: #ccc;
  cursor: not-allowed;
  border-color: #f0f0f0;
}

.kky-help-pagination .page-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  font-size: 13px;
  color: #666;
}

.kky-help-pagination .page-jump input {
  width: 48px;
  height: 36px;
  text-align: center;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
}

.kky-help-content-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 32px;
}

.kky-help-content-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.kky-help-content-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
  line-height: 1.4;
}

.kky-help-content-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #999;
}

.kky-help-content-body {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  word-break: break-word;
}

.kky-help-content-body h1,
.kky-help-content-body h2,
.kky-help-content-body h3,
.kky-help-content-body h4 {
  color: #1a1a2e;
  margin: 24px 0 12px;
  font-weight: 600;
  line-height: 1.4;
}

.kky-help-content-body h2 { font-size: 20px; }
.kky-help-content-body h3 { font-size: 17px; }

.kky-help-content-body p {
  margin-bottom: 12px;
}

.kky-help-content-body pre {
  background: #f6f8fa;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
}

.kky-help-content-body code {
  background: #f0f4ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #2B5BFF;
}

.kky-help-content-body pre code {
  background: none;
  padding: 0;
  color: #333;
}

.kky-help-content-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}

.kky-help-content-body ul,
.kky-help-content-body ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.kky-help-content-body li {
  margin-bottom: 6px;
}

.kky-help-content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.kky-help-content-body th,
.kky-help-content-body td {
  border: 1px solid #e8e8e8;
  padding: 10px 14px;
  font-size: 14px;
}

.kky-help-content-body th {
  background: #fafbfc;
  font-weight: 600;
}

.kky-help-content-body a {
  color: #2B5BFF;
}

.kky-help-content-body a:hover {
  text-decoration: underline;
}

.kky-help-content-body blockquote {
  border-left: 4px solid #2B5BFF;
  padding: 12px 20px;
  background: #f0f4ff;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  color: #555;
}

.kky-help-nav-row {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.kky-help-nav-row a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #555;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kky-help-nav-row a:hover {
  color: #2B5BFF;
}

.kky-help-tags {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.kky-help-tags span {
  color: #999;
}

.kky-help-tags a {
  display: inline-block;
  padding: 3px 12px;
  background: #f5f7ff;
  color: #2B5BFF;
  border-radius: 14px;
  font-size: 12px;
  transition: all 0.2s;
}

.kky-help-tags a:hover {
  background: #2B5BFF;
  color: #fff;
}

.kky-help-search-result-info {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 16px 24px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #666;
}

.kky-help-search-result-info strong {
  color: #2B5BFF;
}

@media (max-width: 768px) {
  .kky-help-banner {
    padding: 60px 20px 40px;
  }

  .kky-help-banner h1 {
    font-size: 24px;
  }

  .kky-help-search input {
    height: 44px;
    padding: 0 100px 0 16px;
    font-size: 14px;
  }

  .kky-help-search button {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }

  .kky-help-container {
    flex-direction: column;
    padding: 20px 16px 40px;
    gap: 16px;
  }

  .kky-help-sidebar {
    width: 100%;
  }

  .kky-help-sidebar-inner {
    position: static;
  }

  .kky-help-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 8px 12px;
  }

  .kky-help-sidebar li a {
    padding: 6px 14px;
    font-size: 13px;
    border-left: none;
    border-radius: 16px;
  }

  .kky-help-sidebar li.active a {
    background: #2B5BFF;
    color: #fff;
    border-left-color: transparent;
  }

  .kky-help-item a {
    padding: 14px 16px;
  }

  .kky-help-item-title {
    font-size: 14px;
  }

  .kky-help-item-info {
    font-size: 12px;
    flex-wrap: wrap;
  }

.kky-help-list-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 24px;
  color: #999;
  font-size: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.kky-help-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e8e8e8;
  border-top-color: #2B5BFF;
  border-radius: 50%;
  animation: kky-spin 0.6s linear infinite;
}

@keyframes kky-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .kky-help-group-header {
    padding: 14px 16px;
  }

  .kky-help-group-title {
    font-size: 15px;
  }
}

  .kky-help-content-card {
    padding: 20px 16px;
  }

  .kky-help-content-header h1 {
    font-size: 20px;
  }

  .kky-help-content-meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  .kky-help-nav-row {
    flex-direction: column;
    gap: 10px;
  }

  .kky-help-nav-row a {
    max-width: 100%;
  }
}