/**
 * 资料文档列表（template-documents.php）
 * 依赖 front-page.css（hc-article-card / hc-section 等）
 */

.home-corporate.documents-page .custom-page-hero.documents-page-hero.custom-page-hero--has-bg {
  background-image: var(--custom-page-hero-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.home-corporate.documents-page .custom-page-hero.documents-page-hero::before {
  display: none;
}

.home-corporate.documents-page .documents-page-hero__preline {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hc-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-corporate.documents-page .documents-page-hero__title {
  margin: 0;
  max-width: min(18em, 100%);
  font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--hc-ink);
}

.home-corporate.documents-page .documents-page__breadcrumb {
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-size: 13px;
  font-weight: 500;
  color: var(--hc-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.home-corporate.documents-page .documents-page__breadcrumb a {
  color: var(--hc-muted);
  text-decoration: none;
}

.home-corporate.documents-page .documents-page__breadcrumb a:hover {
  color: var(--hc-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-corporate.documents-page .documents-page__bc-sep {
  color: var(--hc-line-strong);
  user-select: none;
}

.home-corporate.documents-page .documents-page__bc-current {
  color: var(--hc-ink);
}

/* 封面标准 843×435：与插件详情首屏一致，完整显示（覆盖 front-page 文章卡 16:10 + object-fit: cover 裁切） */
.home-corporate.documents-page .documents-doc-card .hc-article-card__media {
  aspect-ratio: 843 / 435;
}
.home-corporate.documents-page .documents-doc-card .hc-article-card__media img {
  object-fit: contain;
  object-position: center;
}

.home-corporate.documents-page .documents-doc-card__excerpt {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hc-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-corporate.documents-page .documents-doc-card__format {
  font-weight: 600;
  color: var(--hc-ink);
  letter-spacing: 0.02em;
}

.home-corporate.documents-page .documents-page-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-top: clamp(40px, 5vw, 56px);
}

.home-corporate.documents-page .documents-page-pagination__edge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--hc-line);
  background: var(--hc-surface);
  color: var(--hc-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.home-corporate.documents-page .documents-page-pagination__edge:hover:not(.is-disabled) {
  border-color: var(--hc-line-strong);
  color: var(--hc-ink);
  background: var(--hc-surface-muted);
}

.home-corporate.documents-page .documents-page-pagination__edge.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.home-corporate.documents-page .documents-page-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-corporate.documents-page .documents-page-pagination__list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-corporate.documents-page .documents-page-pagination__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--hc-line);
  background: var(--hc-surface);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--hc-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.home-corporate.documents-page .documents-page-pagination__list a:hover {
  border-color: var(--hc-line-strong);
  color: var(--hc-ink);
}

.home-corporate.documents-page .documents-page-pagination__list a.is-active {
  border-color: var(--hc-ink);
  background: var(--hc-ink);
  color: #fff;
}

.home-corporate.documents-page .documents-page-alert {
  margin: 0;
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
  font-size: 15px;
  line-height: 1.65;
  color: var(--hc-muted);
  border: 1px dashed var(--hc-line-strong);
  border-radius: var(--hc-radius-md);
  background: var(--hc-surface);
}
