/* 联系页和页脚共用同一套状态语言，颜色继承品牌的明暗主题。 */
body.teileter-studio {
  --contact-off-surface: #e5e3df;
  --contact-off-line: #c7c3be;
  --contact-off-ink: #615d59;
}

body.teileter-studio .contact-card {
  padding: clamp(24px, 3.4vw, 44px);
}

body.teileter-studio .contact-card > h2 {
  margin-bottom: 18px;
}

body.teileter-studio .contact-availability {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
  font-family: var(--sans);
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--muted);
}

body.teileter-studio .contact-availability p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

body.teileter-studio .contact-hours {
  display: block;
  font-variant-numeric: tabular-nums;
}

body.teileter-studio [data-contact-status] {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
}

body.teileter-studio [data-contact-status]::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  align-self: center;
  transition: background-color .2s ease;
}

body.teileter-studio [data-contact-status].is-open,
body.teileter-studio [data-contact-status][data-status="open"] {
  color: var(--accent);
}

body.teileter-studio .contact-channels {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 12px;
  min-width: 0;
}

body.teileter-studio :is(a, div).contact-channel {
  display: grid;
  gap: 9px;
  min-width: 0;
  min-height: 44px;
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--ink);
  font-family: var(--sans);
  text-decoration: none;
  transform: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

body.teileter-studio .contact-channel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  min-width: 0;
}

body.teileter-studio .contact-channel-title {
  font-size: .9375rem;
  line-height: 1.5;
  font-weight: 650;
}

body.teileter-studio .contact-channel-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  line-height: 1.5;
  font-weight: 550;
  color: var(--muted);
}

body.teileter-studio .contact-channel-state::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
}

body.teileter-studio .contact-channel-value {
  display: block;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.teileter-studio .contact-channel-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .8125rem;
  line-height: 1.55;
  font-weight: 550;
  color: var(--accent);
}

/* 开放入口以品牌色边线和实心状态点亮起，无循环闪烁。 */
body.teileter-studio :is(a, div).contact-channel.is-available {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  border-inline-start-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-raised));
}

body.teileter-studio :is(a, div).contact-channel.is-available .contact-channel-state {
  color: var(--accent);
}

body.teileter-studio :is(a, div).contact-channel.is-available:hover,
body.teileter-studio :is(a, div).contact-channel.is-available:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-raised));
  color: var(--ink);
  transform: none;
}

body.teileter-studio :is(a, div).contact-channel:focus-visible,
body.teileter-studio a.contact-gmail-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* 关闭时保留清楚可读的号码，将交互状态切为中性灰。 */
body.teileter-studio :is(a, div).contact-channel[aria-disabled="true"],
body.teileter-studio :is(a, div).contact-channel[aria-disabled="true"]:hover,
body.teileter-studio :is(a, div).contact-channel[aria-disabled="true"]:focus-visible {
  border-color: var(--contact-off-line);
  background: var(--contact-off-surface);
  color: var(--contact-off-ink);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

body.teileter-studio :is(a, div).contact-channel[aria-disabled="true"] .contact-channel-state,
body.teileter-studio :is(a, div).contact-channel[aria-disabled="true"] .contact-channel-action {
  color: var(--contact-off-ink);
}

body.teileter-studio .contact-card-note {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  line-height: 1.7;
}

body.teileter-studio a.contact-gmail-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  margin-top: 6px;
  padding-block: 8px;
  color: var(--accent);
  font-size: .8125rem;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

/* 页脚使用更紧凑的模块，覆盖原普通链接的宽度、外边距和位移动效。 */
body.teileter-studio .footer-contact-column .contact-availability {
  gap: 4px;
  margin-bottom: 16px;
  font-size: .75rem;
}

body.teileter-studio .contact-channels[data-contact-scope="footer"] {
  gap: 8px;
}

body.teileter-studio .footer-contact-column :is(a, div).contact-channel {
  display: grid;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 12px 14px;
  gap: 5px;
  border-radius: 8px;
  color: var(--ink);
  transform: none;
}

body.teileter-studio .footer-contact-column :is(a, div).contact-channel[aria-disabled="true"] {
  color: var(--contact-off-ink);
}

body.teileter-studio .footer-contact-column .contact-channel-title {
  font-size: .8125rem;
}

body.teileter-studio .footer-contact-column .contact-channel-value {
  font-size: .8125rem;
}

body.teileter-studio .footer-contact-column .contact-channel-action {
  font-size: .75rem;
}

/* 二维码全天显示，工作时间只影响人工回复提示。 */
body.teileter-studio .contact-qr {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}

body.teileter-studio .contact-qr [hidden] {
  display: none !important;
}

body.teileter-studio .contact-qr .whatsapp-qr {
  width: 160px;
  margin: 0;
  justify-self: start;
}

body.teileter-studio .contact-qr .whatsapp-qr a[data-whatsapp-qr-link] {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  transform: none;
  transition: border-color .2s ease, background-color .2s ease;
}

body.teileter-studio .contact-qr .whatsapp-qr a[data-whatsapp-qr-link]:hover,
body.teileter-studio .contact-qr .whatsapp-qr a[data-whatsapp-qr-link]:focus-visible {
  border-color: var(--accent);
  box-shadow: none;
  transform: none;
}

body.teileter-studio .contact-qr .whatsapp-qr img {
  width: 148px;
  height: 148px;
  object-fit: contain;
}

body.teileter-studio .contact-qr .whatsapp-qr figcaption {
  margin-top: 10px;
  font-size: .75rem;
  line-height: 1.55;
}

body.teileter-studio .contact-qr-note {
  margin: 0;
  max-width: 32ch;
  font-size: .875rem;
  line-height: 1.7;
}

body.teileter-studio .product-contact-hours {
  margin: 10px 0 0;
  font-size: .8125rem;
  line-height: 1.6;
}

/* 商品与套装的即时咨询沿用相同休息状态，邮箱保留轻量入口。 */
body.teileter-studio :is(.product-order-button, .set-enquiry)[aria-disabled="true"],
body.teileter-studio :is(.product-order-button, .set-enquiry)[aria-disabled="true"]:is(:hover, :focus-visible, :active) {
  border-color: var(--contact-off-line);
  background: var(--contact-off-surface);
  color: var(--contact-off-ink);
  opacity: 1;
  box-shadow: none;
  transform: none;
  pointer-events: none;
  cursor: not-allowed;
}

body.teileter-studio :is(.product-order-button, .set-enquiry)[aria-disabled="true"] :is(span, svg) {
  transform: none;
}

body.teileter-studio a.product-email-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  margin-top: 6px;
  padding-block: 8px;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 550;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

@media (prefers-color-scheme: dark) {
  body.teileter-studio {
    --contact-off-surface: #2c2927;
    --contact-off-line: #5c5550;
    --contact-off-ink: #c1b9b3;
  }
}

@media (max-width: 760px) {
  body.teileter-studio .contact-card {
    padding: 28px 22px;
  }

  body.teileter-studio :is(a, div).contact-channel {
    padding: 16px;
  }

  body.teileter-studio .contact-qr {
    gap: 18px;
  }
}

@media (max-width: 420px) {
  body.teileter-studio .contact-qr {
    grid-template-columns: minmax(0, 1fr);
  }

  body.teileter-studio .contact-qr-note {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.teileter-studio :is(a, div).contact-channel,
  body.teileter-studio [data-contact-status]::before,
  body.teileter-studio .contact-qr .whatsapp-qr a[data-whatsapp-qr-link] {
    transition: none;
  }
}

/* 新增邮箱行复用原字号和色彩；其余卡片的样式值不变。 */
body.teileter-studio .contact-channel[data-channel="email"] .contact-email-address {
  display: inline;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: none;
  transform: none;
}
body.teileter-studio .contact-channel[data-channel="email"] .contact-email-label {
  display: inline;
  color: var(--muted);
}
body.teileter-studio .contact-channel[data-channel="email"] > a.contact-channel-action {
  margin: 0;
  text-decoration: none;
}

/* 社媒图标沿用当前文字、边框与焦点配色。 */
.ts-brand-social{display:flex;align-items:center;gap:12px;margin-top:20px;grid-column:1/-1}.ts-brand-social a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;box-sizing:border-box;border:1px solid currentColor;border-radius:50%;color:inherit;opacity:.8;transition:opacity .2s ease,background-color .2s ease}.ts-brand-social a:hover{opacity:1;background-color:rgba(128,128,128,.12)}.ts-brand-social a:focus-visible{outline:2px solid currentColor;outline-offset:4px}.ts-brand-social svg{display:block;width:20px;height:20px}
