* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; background: var(--washi, #f4f1ea); }
body { height: 100%; background: transparent; overflow: hidden; }

/* 水墨背景层（在正层级，避免被 body 底色盖住） */
.ink-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
/* Three.js 玻璃名片画布（透明，叠在水墨背景上） */
#scene {
  position: fixed; inset: 0; width: 100%; height: 100%; display: block;
  cursor: pointer; z-index: 1; background: transparent;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid #2f6fd0; outline-offset: 3px; border-radius: 6px;
}

/* 联系方式条:卡片翻到反面时从底部浮现 */
.contact-bar {
  position: fixed; left: 50%; bottom: 34px; z-index: 7;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center;
  max-width: 92vw;
  opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(0.16,1,0.3,1);
}
body.card-back .contact-bar { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.cbtn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(20,24,40,0.5); color: #f4f1ea;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 22px;
  padding: 9px 16px; font: 600 13px/1 Inter, "Noto Sans SC", sans-serif; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s, color .2s;
}
.cbtn:hover { background: #14171e; color: #fff; }
.cbtn svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 600px) {
  .contact-bar { bottom: 80px; gap: 8px; }
  .cbtn { padding: 8px 13px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-contact, .contact-bar { transition: none; }
}
