/* 介绍正文来自富文本，限制其宽度和表格滚动范围，防止挤出侧栏或手机视口。 */
.agt-ceramic-type {
  --agt-type-accent: #72ad59;
  --agt-type-gap: 24px;
  --agt-type-border: #354037;
}
.agt-ceramic-type .pro-main { min-width: 0; }
.agt-ceramic-type .agt-products-summary { display: none; }
.agt-type-overview { margin-block: 0 40px; min-width: 0; color: #ddd; }
.agt-type-intro { display: flex; flex-wrap: wrap; align-items: center; gap: var(--agt-type-gap); margin-block-end: 28px; }
.agt-type-image { flex: 0 1 280px; width: 280px; height: auto; max-width: 100%; object-fit: contain; border-radius: 8px; }
.agt-type-summary { flex: 1 1 220px; min-width: 0; font-size: 16px; line-height: 1.7; }
.agt-type-model-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-block-start: 16px; padding: 8px 16px; border: 1px solid var(--agt-type-accent); color: #fff; }
.agt-type-model-link:hover { background: #34502c; }
.agt-type-model-link:focus-visible { outline: 2px solid var(--agt-type-accent); outline-offset: 4px; }
.agt-type-richtext, .agt-type-extra { max-width: 100%; overflow-x: auto; overflow-wrap: anywhere; }
.agt-type-richtext img, .agt-type-extra img { max-width: 100%; height: auto; }
.agt-type-richtext > :first-child { margin-top: 0; }
.agt-type-richtext > h2 { display: block; font-size: 24px; line-height: 1.35; margin: 24px 0 12px; }
.agt-type-richtext > p, .agt-type-richtext > ul { display: block; font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.agt-type-richtext h2, .agt-type-richtext h3, .agt-type-extra h2, .agt-type-models-heading { color: #fff; }
.agt-type-empty { color: #ddd; }
.agt-type-extra { margin-top: 24px; }
.agt-type-extra:has(> .agt-type-extra-body:empty) { display: none; }
.agt-type-models-heading { font-size: 28px; line-height: 1.3; margin-bottom: 24px; }
.agt-type-empty { display: none; margin-block: 20px 40px; padding: 24px; border: 1px solid var(--agt-type-border); line-height: 1.7; }
.agt-type-empty a { color: #a7d891; text-decoration: underline; }
.agt-ceramic-type .pro-list:not(:has(.pro-item)) + .agt-type-empty { display: block; }
.agt-ceramic-type #agt-product-list { scroll-margin-top: 100px; }
.agt-ceramic-type .pro-list { min-height: 0; }
@media (max-width: 991px) {
  /* 长篇类型介绍之前即可打开型号目录，避免手机用户先滚完整个正文。 */
  .agt-ceramic-type .pro-contain { display: flex; flex-direction: column; }
  .agt-ceramic-type .pro-contain > .pro-slide { order: -1; width: 100%; margin-block: 0 24px; }
  .agt-ceramic-type .pro-contain > .pro-main { width: 100%; }
}
@media (max-width: 600px) {
  .agt-type-image { flex-basis: 100%; width: 100%; max-width: 360px; margin-inline: auto; }
  .agt-type-intro { gap: 16px; }
  .agt-type-overview { margin-bottom: 28px; }
  .agt-type-models-heading { font-size: 24px; }
  .agt-type-empty { padding: 16px; }
}

/* 缩略图可能横竖比例不同，预留方形空间，完整显示产品边缘。 */
.agt-paper-heading-image {
  max-width: 144px;
  margin: var(--agt-overview-gap) auto 0;
}
.agt-paper-heading-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
}
@media (min-width: 601px) {
  .agt-products-overview:has(> .agt-paper-heading-image) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(25%, 192px);
    align-items: center;
    gap: var(--agt-type-gap);
  }
  .agt-products-overview:has(> .agt-paper-heading-image) h1 { margin-bottom: 0; }
  .agt-paper-heading-image {
    grid-area: 1 / 2;
    max-width: none;
    margin: 0;
  }
}
