body {
  margin: 0;
}

.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 200;
}

/* 与 .content 同宽。列表在内容容器里再缩进 15px，这里用 30px 让导航文字贴齐列表左缘 */
.site-header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  height: 64px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav-toggle,
.site-drawer {
  display: none;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: -8px;
  line-height: 0;
}

.site-logo img {
  display: block;
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}

.site-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  color: #333;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-item:first-child {
  padding-left: 0;
}

.site-nav-item:hover {
  color: #333;
}

.site-nav-item--active {
  font-weight: 600;
}

.site-nav-item--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #ffd700;
}

.site-nav-item:first-child.site-nav-item--active::after {
  left: 0;
}

.site-header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
}

.site-search {
  display: flex;
  align-items: center;
  width: 280px;
  height: 40px;
  padding: 3px 3px 3px 12px;
  border: 1px solid #ffd700;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}

.site-search:focus-within {
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.35);
}

.site-search-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #ffd700;
}

.site-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 8px;
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
}

.site-search-input::placeholder {
  color: #c4c4c4;
}

.site-search-btn {
  flex-shrink: 0;
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: #ffd700;
  color: #333;
  font-size: 14px;
  line-height: 32px;
  white-space: nowrap;
  cursor: pointer;
}

.site-search-btn:hover {
  background: #f0c800;
}

.site-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #333;
  text-decoration: none;
}

.site-user:hover {
  color: #333;
}

.site-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.site-user-name {
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}
