/**
 * 新租户 H5 门户 — 底部三栏：首页 / 申请入驻 / 登录
 */
.h5-tabbar-spacer {
  height: calc(64px + env(safe-area-inset-bottom, 0px));
}

.h5-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(46, 134, 222, 0.2);
  box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.h5-tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem 0.25rem;
  text-decoration: none;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.2s;
}

.h5-tabbar-item svg {
  width: 22px;
  height: 22px;
}

.h5-tabbar-item.is-active {
  color: #2e86de;
}

.h5-tabbar-item:hover {
  color: #1a6bb5;
}

/* 隐藏系统演示入口（保留文件，不在门户展示） */
.nav-link--demo,
a[href="system-demo.html"],
a[href="./system-demo.html"] {
  display: none !important;
}

.page-index .cta-buttons .btn-outline[href*="system-demo"] {
  display: none !important;
}

.page-index .footer-links a[href*="system-demo"],
.page-about .footer-links a[href*="system-demo"] {
  display: none !important;
}

body.has-h5-tabbar {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.page-index .features-grid .feature-card:nth-child(n + 5) {
  display: none;
}

/* 首页展示全部 5 条核心功能亮点 */

@media (min-width: 900px) {
  .h5-tabbar {
    max-width: 480px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px 16px 0 0;
  }
}
