/* Knowledge center / 使用指南 — structure skin (visual redesign later) */
.ap-blog-page { background: var(--ap-bg); min-height: 100vh; }
.ap-blog-hero {
  background: linear-gradient(180deg, #0f1a1c 0%, #143028 100%);
  color: #fff;
  padding: 36px 0 28px;
}
.ap-blog-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.ap-blog-hero p {
  margin: 0;
  opacity: 0.82;
  font-size: var(--ap-fs-md);
  max-width: 52rem;
}
.ap-blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin: 20px 0 8px;
}
.ap-blog-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.ap-blog-pill {
  appearance: none;
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--ap-line);
  background: var(--ap-surface);
  color: var(--ap-ink-2);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.15s ease;
}
.ap-blog-pill:hover { border-color: var(--ap-green); color: var(--ap-green-deep); }
.ap-blog-pill.is-active {
  background: var(--ap-green);
  border-color: var(--ap-green);
  color: #fff;
}
.ap-blog-search {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ap-blog-search input {
  min-width: 200px;
  border: 1px solid var(--ap-line);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  background: var(--ap-surface);
}
.ap-blog-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0 40px;
}
.ap-blog-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  background: var(--ap-surface);
  border: 1px solid var(--ap-line);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.ap-blog-card:hover {
  border-color: var(--ap-green-mint);
  box-shadow: 0 8px 24px rgba(15, 122, 74, 0.08);
}
.ap-blog-thumb {
  width: 168px;
  height: 112px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ap-green-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ap-green);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.ap-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ap-blog-card-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ap-blog-card-cat {
  display: inline-flex;
  align-self: flex-start;
  font-size: 12px;
  color: var(--ap-green-deep);
  background: var(--ap-green-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.ap-blog-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ap-ink);
}
.ap-blog-card .snip {
  margin: 0;
  color: var(--ap-muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ap-blog-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ap-muted);
  font-size: 12px;
}
.ap-blog-empty, .ap-blog-loading {
  text-align: center;
  color: var(--ap-muted);
  padding: 48px 12px;
}
.ap-blog-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 48px;
}
.ap-blog-pager button {
  border: 1px solid var(--ap-line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}
.ap-blog-pager button:disabled { opacity: 0.45; cursor: default; }

/* Detail */
.ap-blog-detail { padding: 28px 0 56px; }
.ap-blog-detail-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-line);
  border-radius: 16px;
  padding: 28px 28px 36px;
  max-width: 860px;
  margin: 0 auto;
}
.ap-blog-detail-card h1 {
  margin: 8px 0 12px;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.3;
}
.ap-blog-detail .ap-blog-meta { margin-bottom: 18px; }
.ap-blog-cover {
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 20px;
  background: var(--ap-green-wash);
  aspect-ratio: 16/7;
}
.ap-blog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-blog-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ap-ink-2);
}
.ap-blog-content p { margin: 0 0 1em; }
.ap-blog-content img { max-width: 100%; height: auto; border-radius: 8px; }
.ap-blog-content h2, .ap-blog-content h3 { margin: 1.4em 0 0.6em; color: var(--ap-ink); }
.ap-blog-content ul, .ap-blog-content ol { padding-left: 1.3em; margin: 0 0 1em; }
.ap-blog-back {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--ap-green-deep);
  text-decoration: none;
  font-size: 14px;
}
@media (max-width: 720px) {
  .ap-blog-card { grid-template-columns: 1fr; }
  .ap-blog-thumb { width: 100%; height: 160px; }
  .ap-blog-detail-card { padding: 18px 16px 28px; }
  .ap-blog-search input { min-width: 0; width: 100%; }
  .ap-blog-toolbar { flex-direction: column; align-items: stretch; }
}
