#bottom-nav {
  position: fixed; left: 0; right: 0; bottom: calc(var(--contact-footer-h) + var(--safe-bottom));
  height: var(--nav-h); background: #fff; border-top: 1px solid #e2e8f0;
  display: flex; z-index: 7000; padding-bottom: var(--safe-bottom);
}
.nav-item {
  flex: 1; border: none; background: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; font-size: 0.65rem; cursor: pointer; color: var(--color-muted);
}
.nav-item.active { color: var(--color-primary); font-weight: 600; }
.nav-item span:first-child { font-size: 1.1rem; }
#floating-actions {
  position: fixed; left: 12px; right: auto;
  bottom: var(--fab-clearance);
  display: flex; flex-direction: column; gap: 8px; z-index: 6500;
}
.fab {
  width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--color-primary);
  color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2); cursor: pointer; font-size: 1rem;
}
#skeleton-overlay {
  position: fixed; inset: 0; z-index: 9998; background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
}
.skeleton-card { padding: 16px; }
.skeleton { height: 16px; background: #e2e8f0; border-radius: 4px; margin-bottom: 8px; }
.shimmer {
  background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
#danmaku-layer {
  position: fixed; inset: 0 0 calc(var(--contact-footer-h) + var(--nav-h)); pointer-events: none; overflow: hidden; z-index: 5000;
}
.danmaku-item {
  position: absolute; white-space: nowrap; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8);
  font-size: 0.85rem; animation: danmaku-fly linear forwards; right: -100%;
}
@keyframes danmaku-fly { to { transform: translateX(calc(-100vw - 100%)); } }
.danmaku-controls { pointer-events: auto; position: absolute; bottom: 8px; left: 8px; display: flex; gap: 6px; }
.danmaku-controls button { font-size: 0.7rem; padding: 4px 8px; border-radius: 4px; border: none; background: rgba(0,0,0,.5); color: #fff; }
#lightbox-overlay {
  position: fixed; inset: 0; z-index: 9500; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 16px;
}
.lightbox-img { max-height: 70vh; max-width: 100%; border-radius: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; border: none; background: rgba(255,255,255,.15); color: #fff;
  font-size: 1.5rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; }
.lightbox-next { right: 12px; top: 50%; }
.lightbox-caption { color: #fff; margin-top: 12px; font-size: 0.875rem; }
.toast-container { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 10000; }
.toast { background: #1e293b; color: #fff; padding: 10px 16px; border-radius: 999px; margin-bottom: 8px; font-size: 0.85rem; animation: fadeIn 0.3s; }
.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }
.timeline-vertical { position: relative; padding-left: 24px; }
.timeline-node {
  position: relative; background: #fff; border-radius: var(--radius); padding: 12px; margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); opacity: 0.5; transition: opacity 0.4s;
}
.timeline-node.lit { opacity: 1; }
.timeline-node::before {
  content: ''; position: absolute; left: -20px; top: 16px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--color-primary); border: 2px solid #fff;
}
.tl-thumb { width: 100%; border-radius: 8px; margin: 6px 0; max-height: 120px; object-fit: cover; }
.tl-date { font-size: 0.75rem; color: var(--color-muted); }
.comment-form { margin: 12px 0; }
.comment-card { background: #fff; border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.fade-in-up { animation: fadeIn 0.4s ease; }
.like-btn { border: none; background: none; cursor: pointer; font-size: 0.8rem; color: var(--color-muted); }
.contact-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8000;
  background: #fff; border-top: 1px solid #e2e8f0; padding: 8px 12px calc(8px + var(--safe-bottom));
}
.contact-footer__btns {
  display: grid; grid-template-columns: repeat(3, minmax(0, 88px)); gap: 8px;
  max-width: 320px; margin: 0 auto; justify-content: center;
}
.contact-footer__cta, .contact-footer__btn {
  font-size: .72rem; padding: .48rem .2rem; border-radius: 999px; text-align: center;
  text-decoration: none; border: 1px solid #cbd5e1; background: #fff; color: var(--color-text); cursor: pointer;
}
.contact-footer__cta { background: #c41e1e !important; color: #fff !important; border-color: #c41e1e !important; }
.contact-footer__brand { text-align: center; font-size: 0.6rem; color: var(--color-muted); margin-top: 6px; }

/* 底栏 + 主导航：抬高试玩入口 / 客服球，避免与 #bottom-nav 重叠 */
body.has-contact-footer.has-bottom-nav:not(.editor-mode-active) .em-entry-btn {
  bottom: var(--fab-clearance) !important;
  z-index: 7500;
  max-width: calc(100vw - 120px);
  overflow: hidden;
  text-overflow: ellipsis;
}
body.has-contact-footer.has-bottom-nav .zw-root .zw-fab {
  bottom: calc(var(--fab-clearance) + 52px) !important;
  z-index: 7600;
}
body.has-contact-footer.has-bottom-nav .zw-root .zw-preview {
  bottom: calc(var(--fab-clearance) + 56px) !important;
}
@media (max-width: 480px) {
  body.has-contact-footer.has-bottom-nav:not(.editor-mode-active) .em-entry-btn {
    max-width: calc(100vw - 100px);
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
  }
}

.card-section { background: #fff; border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-card { padding: 10px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
