index.wxss 1.39 KB
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: transparent;
}

.status-bar {
  width: 100%;
}

.nav-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-bar-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}

.nav-bar-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  margin-right: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.nav-bar-btn:active {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0.95);
}

/* 返回按钮箭头 */
.back-icon {
  width: 10px;
  height: 10px;
  margin-left: 4px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
}

/* 首页图标 */
.home-icon {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.nav-bar-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: bold;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 1;
}

.nav-bar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 32px;
  justify-content: flex-end;
  z-index: 2;
}

.nav-bar-placeholder {
  width: 100%;
}