/* 内容页统一卡片样式（/pages 与 /copyright 等短路径共用） */
.cp-wrap {
  --cp-accent: var(--primary, #00bb61);
  --cp-card-bg: var(--card, #fff);
  --cp-card-border: var(--border, #dde5e1);
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 16px 56px;
  color: var(--foreground, var(--text, #1a1f1c));
  box-sizing: border-box;
}
.cp-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.cp-back:hover { color: var(--cp-accent); }
.cp-page-hero {
  text-align: center;
  margin-bottom: 28px;
}
.cp-h1 {
  margin: 0;
  font-size: var(--cp-title-size, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--cp-accent);
}
.cp-h1-line {
  width: 36px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: var(--cp-accent);
}
.cp-sub {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.cp-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cp-card {
  padding: 20px 22px;
  border-radius: 6px;
  background: var(--cp-card-bg);
  border: 1px solid var(--cp-card-border);
  box-sizing: border-box;
}
.cp-section-h {
  margin: 0 0 10px;
  font-size: var(--cp-subtitle-size, 18px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--cp-accent);
}
.cp-body-page,
.cp-body-section {
  font-size: var(--cp-body-size, 15px);
  line-height: 1.85;
  color: var(--foreground, var(--text));
}
.cp-body-page h1,
.cp-body-page h2,
.cp-body-page h3,
.cp-body-page h4,
.cp-body-section h1,
.cp-body-section h2,
.cp-body-section h3,
.cp-body-section h4,
.cp-wrap .prose h1,
.cp-wrap .prose h2,
.cp-wrap .prose h3,
.cp-wrap .prose h4 {
  margin: 1.1em 0 0.55em;
  font-size: var(--cp-subtitle-size, 18px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--cp-accent) !important;
}
.cp-body-page h1:first-child,
.cp-body-page h2:first-child,
.cp-body-page h3:first-child,
.cp-body-page h4:first-child,
.cp-body-section h1:first-child,
.cp-body-section h2:first-child,
.cp-body-section h3:first-child,
.cp-body-section h4:first-child,
.cp-wrap .prose h1:first-child,
.cp-wrap .prose h2:first-child,
.cp-wrap .prose h3:first-child,
.cp-wrap .prose h4:first-child {
  margin-top: 0;
}
.cp-body-page h1 *,
.cp-body-page h2 *,
.cp-body-page h3 *,
.cp-body-page h4 *,
.cp-body-section h1 *,
.cp-body-section h2 *,
.cp-body-section h3 *,
.cp-body-section h4 *,
.cp-wrap .prose h1 *,
.cp-wrap .prose h2 *,
.cp-wrap .prose h3 *,
.cp-wrap .prose h4 * {
  color: inherit !important;
  font-size: inherit !important;
}
.cp-body-page p,
.cp-body-section p { margin: 0 0 0.85em; }
.cp-body-page p:last-child,
.cp-body-section p:last-child { margin-bottom: 0; }
.cp-body-page > p > strong:only-child,
.cp-body-page > p > b:only-child,
.cp-body-section > p > strong:only-child,
.cp-body-section > p > b:only-child,
.cp-wrap .prose > p > strong:only-child,
.cp-wrap .prose > p > b:only-child {
  display: inline-block;
  font-size: var(--cp-subtitle-size, 18px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--cp-accent) !important;
}
.cp-body-page > p > span[style]:only-child,
.cp-body-section > p > span[style]:only-child,
.cp-wrap .prose > p > span[style]:only-child {
  font-size: var(--cp-subtitle-size, 18px) !important;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cp-accent) !important;
}
.cp-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--cp-card-border);
  border-radius: 6px;
  background: var(--cp-card-bg);
}
.cp-page-footer { margin-top: 28px; }
.cp-footer-rule {
  border: 0;
  border-top: 1px solid var(--cp-card-border);
  margin: 0 0 16px;
}
.cp-footer-inner {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}
.cp-index-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-index-card {
  position: relative;
  display: block;
  padding: 18px 40px 18px 20px;
  border-radius: 6px;
  background: var(--cp-card-bg);
  border: 1px solid var(--cp-card-border);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease;
}
.cp-index-card:hover {
  border-color: color-mix(in srgb, var(--cp-accent) 40%, var(--cp-card-border));
}
.cp-index-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--cp-accent);
}
.cp-index-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.cp-index-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
html.dark .cp-wrap {
  --cp-card-bg: #141918;
  --cp-card-border: #3d4843;
}
html.dark .cp-body-page,
html.dark .cp-body-section {
  color: #e8efea;
}

