/* 前台顶部栏 + 底部导航（与 style.css 配合，可单独加载） */
.app-header {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #fff;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.app-header-logo {
  font-size: 17px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.app-header-back {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 14px;
  text-decoration: none !important;
  white-space: nowrap;
}
.app-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.app-header-user {
  opacity: 0.9;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-header-link {
  color: #fff !important;
  text-decoration: none !important;
  opacity: 0.95;
}

body.has-bottom-nav {
  padding-bottom: 64px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  max-width: 100%;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #64748b !important;
  font-size: 11px;
  text-decoration: none !important;
  transition: color 0.2s;
  padding: 6px 4px;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: #2563eb !important;
  text-decoration: none !important;
}
.bottom-nav-item.active .bottom-nav-icon {
  transform: scale(1.05);
}
.bottom-nav-icon {
  font-size: 22px;
  line-height: 1;
  display: block;
}
.bottom-nav-label {
  line-height: 1.2;
  font-weight: 500;
}

@media (min-width: 768px) {
  body.has-bottom-nav .container {
    max-width: 900px;
  }
  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    border-radius: 12px 12px 0 0;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
  }
}
