html, body {
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background: #f6f8fa;
  color: #222;
}

/* 顶部导航栏样式 */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #006633;
  min-height: 56px;
  z-index: 100;
  box-sizing: border-box;
}

.topbar-inner {
  width: 96%;
  max-width: 1320px;
  min-width: 0;
  margin: 20px auto 0 auto;
  padding: 10px 0 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  box-sizing: border-box;
}

.logo-area {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: start;
  height: 56px;
}

.logo-img {
  height: 36px;
  border-radius: 4px;
}

.logo-text {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  margin-left: 10px;
}

.nav-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 24px;
  padding-left: 20px;
}

.nav-bar a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  padding: 0 10px;
  line-height: 56px;
}

.nav-bar a.active-nav,
.nav-bar a:hover {
  color: #fff000;
  font-weight: bold;
}

.login-btn {
  padding: 6px 24px;
  border: 1px solid #fff;
  background: #006633;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.login-btn:hover {
  background: #004d26;
}

/* 用户信息样式 */
.user-info {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.user-avatar-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.user-avatar {
  margin-right: 10px;
}

.user-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.user-text {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.user-name {
  color: #fff;
  font-size: 14px;
  margin-top: 2px;
}

/* 用户角色样式 */
.user-role {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 2px 8px;
}
 