/* Products and contact share the homepage's white / pale blue-gray sections. */
.light-page > .light-section {
  background: #fff;
  color: #000;
}

.light-page > .light-section-soft {
  background-color: #f8fafc;
  background-image: radial-gradient(ellipse at 90% 0%, rgba(207, 250, 254, .35), transparent 45%);
}

.light-page .surface-card {
  background: #fff;
  border: 1px solid #e2e8f0;
}

.light-page > .light-section :is(h1, h2, h3, h4, h5, h6),
.light-page #ai-pecg-film-title,
.light-page #holter-gallery-title {
  --heading-ink: #000;
}

.light-page .surface-card > .aurora-blob {
  display: none;
}

.light-page .surface-card :focus-visible {
  outline-color: #0e7490;
}

/* Contact cards: hover-to-copy contact fields. */
.copy-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.copy-field > a {
  min-width: 0;
}

.copy-field-top {
  align-items: flex-start;
}

.copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease, color .2s ease;
}

.group:hover .copy-btn,
.copy-btn:focus-visible,
.copy-btn.is-copied,
.copy-btn.is-fail {
  opacity: 1;
  transform: none;
}

.copy-btn:hover {
  background: #f1f5f9;
  color: #0e7490;
}

.copy-btn .ico-ok {
  display: none;
}

.copy-btn.is-copied {
  color: #059669;
}

.copy-btn.is-copied .ico-copy {
  display: none;
}

.copy-btn.is-copied .ico-ok {
  display: inline-block;
}

.copy-btn::after {
  content: '复制';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 2px);
  padding: 3px 8px;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 5;
}

.copy-btn:hover::after,
.copy-btn:focus-visible::after,
.copy-btn.is-copied::after,
.copy-btn.is-fail::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.copy-btn.is-copied::after {
  content: '已复制';
}

.copy-btn.is-fail::after {
  content: '复制失败';
}

/* Touch devices have no hover: keep the copy affordance reachable. */
@media (hover: none) {
  .copy-btn {
    opacity: .6;
    transform: none;
  }
}
