/* 上方品牌与两个导航同步成行，并与下方三个联系模块共用列宽。 */
body.teileter-studio .site-footer .footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.875rem, 1.7vw, 1.5rem);
  padding-inline-start: 0;
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

/* 显式重置旧主题的跨列规则，防止信息栏在窄屏误占整行。 */
body.teileter-studio .site-footer .footer-grid > :is(.footer-brand, .footer-col) {
  grid-column: auto;
  min-width: 0;
}

body.teileter-studio .site-footer .footer-brand {
  max-width: 23.75rem;
}

body.teileter-studio .site-footer .footer-grid > :is(.footer-brand, .footer-col) {
  padding-inline: 1.375rem;
}

body.teileter-studio .site-footer .footer-brand-description {
  max-width: 34ch;
}

body.teileter-studio .site-footer .footer-col h2 {
  margin: .25rem 0 1.125rem;
  font-size: .9375rem;
  line-height: 1.5;
}

body.teileter-studio .site-footer .footer-col a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: .5rem;
  font-size: .875rem;
  line-height: 1.6;
}

body.teileter-studio .site-footer .footer-col a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.teileter-studio .site-footer .footer-contact-section {
  border-top: 1px solid var(--line);
  padding-block: clamp(2rem, 3vw, 3rem) clamp(2rem, 3vw, 3rem);
}

body.teileter-studio .site-footer .footer-contact-intro {
  max-width: 52rem;
  margin-inline: auto;
  margin-bottom: 1.625rem;
  text-align: center;
}

body.teileter-studio .site-footer .footer-contact-intro h2 {
  margin: 0 0 .75rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
}

body.teileter-studio .site-footer .contact-availability {
  justify-items: center;
  gap: .5rem;
  margin: 0;
  font-size: .8125rem;
  line-height: 1.7;
}

/* 时区显示保留原数据钩子，全天入口和人工回复状态仍由原脚本更新。 */
body.teileter-studio .site-footer .contact-hours {
  max-width: 48rem;
}

body.teileter-studio .site-footer .contact-hours br:first-of-type {
  display: initial;
}

body.teileter-studio .site-footer [data-contact-hours]::before {
  content: none;
}

body.teileter-studio .site-footer [data-contact-status] {
  max-width: 44rem;
  justify-content: center;
  text-wrap: pretty;
}

body.teileter-studio .site-footer .contact-channels[data-contact-scope="footer"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(.875rem, 1.7vw, 1.5rem);
}

body.teileter-studio .site-footer .footer-contact-section :is(a, div).contact-channel {
  grid-template-rows: auto auto auto;
  gap: .25rem;
  min-height: 104px;
  padding: .75rem 1.375rem;
  border-radius: var(--ts-radius);
}

body.teileter-studio .site-footer .footer-contact-section .contact-channel-title {
  font-size: .9375rem;
  line-height: 1.5;
}

body.teileter-studio .site-footer .footer-contact-section .contact-channel-value {
  font-size: 1rem;
  line-height: 1.6;
}

body.teileter-studio .site-footer .footer-contact-section :is(.contact-channel-state, .contact-channel-action) {
  font-size: .8125rem;
  line-height: 1.5;
}

body.teileter-studio .site-footer .footer-bottom {
  align-items: baseline;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}

body.teileter-studio .site-footer .footer-bottom > span:last-child {
  max-width: 44rem;
  text-align: right;
}

/* 深色悬停保持小字号文字的对比度，边框与焦点描边提供反馈。 */
@media (prefers-color-scheme: dark) {
  body.teileter-studio .site-footer :is(a, div).contact-channel.is-available:is(:hover, :focus-visible) {
    background: color-mix(in srgb, var(--accent) 5%, var(--surface-raised));
  }
}

/* 平板保留三个水平栏目，通过字标与内边距缩放适应列宽。 */
@media (min-width: 701px) and (max-width: 1100px) {
  body.teileter-studio .site-footer .footer-brand .brand-mark {
    width: clamp(2rem, 4.6vw, 3rem);
    height: auto;
  }

  body.teileter-studio .site-footer .footer-brand .brand-wordmark {
    width: clamp(6.75rem, 15vw, 10rem);
  }

  body.teileter-studio .site-footer .footer-brand .brand-category {
    font-size: .5rem;
    line-height: 11px;
  }

  body.teileter-studio .site-footer .footer-brand .footer-brand-tagline {
    font-size: clamp(1.125rem, 2.15vw, 1.5rem);
  }
}

@media (max-width: 900px) {
  body.teileter-studio .site-footer .footer-grid > :is(.footer-brand, .footer-col) {
    padding-inline: 1rem;
  }

  body.teileter-studio .site-footer .footer-contact-section :is(a, div).contact-channel {
    padding: .75rem 1rem;
  }

  body.teileter-studio .site-footer .contact-channel-head {
    align-content: start;
    min-height: 0;
    gap: .25rem .5rem;
  }

  body.teileter-studio .site-footer .footer-contact-section .contact-channel-value {
    font-size: .9375rem;
  }
}

@media (max-width: 700px) {
  body.teileter-studio .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1rem;
    padding-bottom: 2rem;
  }

  body.teileter-studio .site-footer .footer-grid > :is(.footer-brand, .footer-col) {
    padding-inline: 0;
  }

  body.teileter-studio .site-footer .footer-grid > .footer-brand {
    grid-column: 1 / -1;
  }

  body.teileter-studio .site-footer .footer-contact-intro {
    margin-bottom: 1.5rem;
  }

  body.teileter-studio .site-footer .contact-hours br:first-of-type {
    display: initial;
  }

  body.teileter-studio .site-footer [data-contact-hours]::before {
    content: none;
  }

  body.teileter-studio .site-footer .contact-channels[data-contact-scope="footer"] {
    grid-template-columns: minmax(0, 1fr);
    gap: .875rem;
  }

  body.teileter-studio .site-footer .footer-contact-section :is(a, div).contact-channel {
    min-height: 100px;
    padding: .75rem 1.25rem;
  }

  body.teileter-studio .site-footer .contact-channel-head {
    min-height: 0;
  }

  body.teileter-studio .site-footer .footer-bottom {
    flex-direction: column;
    gap: .5rem;
    padding-block: 1.25rem;
  }

  body.teileter-studio .site-footer .footer-bottom > span:last-child {
    max-width: 42ch;
    text-align: left;
  }
}

/* 原说明文字位置改放五品牌；保留版权与其他页脚内容。 */
body.teileter-studio .site-footer .footer-bottom { align-items: center; }
body.teileter-studio .site-footer .footer-bottom > span:first-child { max-width: none; text-align: start; }
body.teileter-studio .site-footer .ts-footer-payment-marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.teileter-studio .site-footer .ts-footer-payment-marks li {
  flex: 0 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.teileter-studio .site-footer .ts-footer-payment-marks img {
  display: block;
  width: 48px;
  height: auto;
  object-fit: contain;
}
@media (max-width: 700px) {
  body.teileter-studio .site-footer .footer-bottom { align-items: stretch; gap: 16px; }
  body.teileter-studio .site-footer .ts-footer-payment-marks { justify-content: center; }
}
