/* 这些页面共用联系页脚；标志周围的留白也可点回首页。 */
@media (max-width: 1023px) {
  :is(.book-meeting-page, .company-about-page, .contact-page) + footer .footer-brand .brand { padding-block: 7px; margin-block: -7px; }
  :is(.book-meeting-page, .company-about-page, .contact-page) + footer:has(.footer-contact > li:nth-child(3)) .footer-bottom .container { padding-block: .75rem; }
  :is(.book-meeting-page, .company-about-page, .contact-page) + footer .footer-bottom .links { column-gap: .5rem; }
  :is(.book-meeting-page, .company-about-page, .contact-page) + footer .footer-bottom .links > :is(a, button) { min-inline-size: 44px; }
}

/* 平板上少量联系方式顺序阅读，三个以上分成两列。 */
@media (min-width: 768px) and (max-width: 1023px) {
  :is(.book-meeting-page, .company-about-page, .contact-page) + footer .footer-contact:has(> li:nth-child(3)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: .25rem 2rem;
  }
}

/* 预约页没有社交链接时，品牌介绍是这一栏的正文，小屏用正文大小并限制行长。 */
@media (max-width: 1023px) {
  .book-meeting-page + footer .footer-brand:not(:has(.footer-social a)) p {
    font-size: var(--text-base);
    max-inline-size: 28ch;
    line-height: 1.7;
  }
}
