/* ===== LKPF Technical Documents ===== */

.lk-tech-docs{ margin: 30px 0; }

.lk-tech-docs-title{
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 18px;
  color: #111;
  line-height: 1.3;
}

/* grid: columns controlled by data-cols */
.lk-tech-docs-grid{
  display: grid;
  gap: 16px;
}

.lk-tech-docs[data-cols="1"] .lk-tech-docs-grid{ grid-template-columns: 1fr; }
.lk-tech-docs[data-cols="2"] .lk-tech-docs-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lk-tech-docs[data-cols="3"] .lk-tech-docs-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lk-tech-docs[data-cols="4"] .lk-tech-docs-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px){
  .lk-tech-docs[data-cols="2"] .lk-tech-docs-grid,
  .lk-tech-docs[data-cols="3"] .lk-tech-docs-grid,
  .lk-tech-docs[data-cols="4"] .lk-tech-docs-grid{
    grid-template-columns: 1fr;
  }
}

.lk-tech-doc-card{
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.lk-tech-doc-preview{
  position: relative;
  background: #f4f6f8;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lk-tech-doc-ph{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 14px;
  padding: 12px;
  text-align: center;
}

.lk-tech-doc-canvas{
  width: 100%;
  height: auto;
  display: block;
}

.lk-tech-doc-meta{
  align-items: center;        /* 纵向子元素居中（flex-column） */
  text-align: center;         /* 文本居中 */
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lk-tech-doc-label{
  text-align: center;
  font-weight: 700;
  color: #111;
}

.lk-tech-doc-actions{
  justify-content: center;    /* 按钮组水平居中 */
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lk-tech-doc-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #d7dde3;
  text-decoration: none;
  color: #111;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
}

.lk-tech-doc-btn:hover{
  background: #f7fbff;
}

.lk-tech-doc-btn.is-primary{
  border-color: #cfe6f6;
  background: #eef7ff;
}
