.contact-text-btn {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0));
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-text-btn:hover {
  background: var(--color-primary-hover);
}

.contact-text-btn:active {
  transform: translateX(-50%) scale(0.96);
}

.footer-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: flex;
  justify-content: space-around;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-menu.show {
  transform: translateY(0);
}

.footer-menu a {
  color: var(--color-text-muted);
  text-decoration: none;
  text-align: center;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.footer-menu a:hover {
  color: var(--color-primary);
}

.footer-menu .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-menu svg {
  width: 20px;
  height: 20px;
  fill: #fff !important;
}

.icon-home {
  background: var(--color-primary) !important;
}

.footer-menu a:hover .icon-home {
  background: var(--color-primary-hover) !important;
}

.icon-wechat {
  background: #22c55e !important;
}

.footer-menu a:hover .icon-wechat {
  background: #16a34a !important;
}

.modal-box {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 28px 24px;
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modal-show 0.3s ease-out;
}

.modal-content h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.modal-content img {
  width: 200px !important;
  height: 200px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.modal-content p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-text-muted);
}

@keyframes modal-show {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 22px;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

#page-bottom-spacer {
  height: 72px;
}
