/* 首页、精选、发现共用的 PC 顶部导航。页面之间只通过主题类区分颜色。 */
.pc-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  height: 72px;
  padding: 0 28px;
  box-sizing: border-box;
  color: #1f2329;
  box-shadow: none;
}
.pc-header--immersive {
  color: #fff;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.pc-header--light {
  color: #1f2329;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.pc-header .pc-site-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: auto;
  max-width: 180px;
  height: 40px;
  margin: 0 8px 0 0;
}
.pc-header .pc-site-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}
.pc-header > ul {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.pc-header > ul > li {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: 40px;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 12px;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 40px;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.pc-header > ul > li a {
  color: inherit !important;
  text-decoration: none;
}
.pc-header > ul > li.active {
  border: 0 !important;
  font-weight: 600;
}
.pc-header--immersive > ul > li.active {
  background: rgba(255, 255, 255, 0.18);
}
.pc-header--light > ul > li.active {
  background: rgba(31, 35, 41, 0.08);
}
.pc-header .head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 0 auto !important;
}
.pc-header .search {
  display: flex;
  align-items: center;
  width: min(360px, 30vw);
  height: 40px;
  margin: 0;
  padding: 0 14px;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  opacity: 1;
  cursor: pointer;
}
.pc-header--immersive .search {
  color: #fff;
  background: rgba(255, 255, 255, 0.18) !important;
}
.pc-header--light .search {
  color: #4e5969;
  background: rgba(31, 35, 41, 0.06) !important;
}
.pc-header .search span {
  color: inherit !important;
  font-size: 13px;
  opacity: 1;
}
.pc-header .header-icon {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
}
.pc-header .header-publish {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #ff3851;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.pc-header .header-publish:hover {
  background: #f12540;
  box-shadow: none;
}
.pc-header .header-publish .header-icon {
  margin-right: 5px;
}
.pc-header .home-weather-summary {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 3px 4px;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.pc-header .home-weather-summary:hover {
  opacity: 0.82;
}
.pc-header .home-weather-summary__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.pc-header .home-weather-summary__primary,
.pc-header .home-weather-summary__detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}
.pc-header .home-weather-summary__primary {
  min-width: 52px;
}
.pc-header .home-weather-summary__primary span {
  color: inherit;
  font-size: 12px;
  opacity: 0.72;
}
.pc-header .home-weather-summary__primary strong {
  margin-top: 1px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
}
.pc-header .home-weather-summary__detail {
  padding-left: 10px;
  border-left: 1px solid currentColor;
}
.pc-header .home-weather-summary__detail span {
  font-size: 13px;
}
.pc-header .home-weather-summary__detail small {
  margin-top: 3px;
  color: inherit;
  font-size: 11px;
  opacity: 0.7;
}
.pc-header--immersive .home-weather-summary__detail {
  border-left-color: rgba(255, 255, 255, 0.18);
}
.pc-header--light .home-weather-summary__detail {
  border-left-color: rgba(31, 35, 41, 0.12);
}
.pc-header .nav-hamburger,
.pc-header .nav-hamburger-menu {
  display: none;
}
.pc-header .pc-current-user {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin: 0;
}
.pc-header .pc-current-user__avatar {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #eee;
  cursor: pointer;
}
.pc-header .pc-current-user__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pc-header .pc-current-user__popover {
  position: absolute;
  top: 48px;
  right: 0;
  display: none;
  width: 190px;
  padding: 14px;
  box-sizing: border-box;
  border: 1px solid rgba(31, 35, 41, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2329;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.pc-header .pc-current-user__popover::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 52px;
  height: 12px;
}
.pc-header .pc-current-user:hover .pc-current-user__popover,
.pc-header .pc-current-user:focus-within .pc-current-user__popover {
  display: block;
}
.pc-header .pc-current-user__name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-header .pc-current-user__uid {
  margin-top: 4px;
  color: #86909c;
  font-size: 12px;
  line-height: 18px;
}
.pc-header .pc-current-user__home,
.pc-header .pc-current-user__subscribe,
.pc-header .pc-current-user__popover button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  box-sizing: border-box;
  border: 0;
  border-radius: 9px;
  background: #f2f3f5;
  color: #4e5969;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.pc-header .pc-current-user__home {
  margin-top: 12px;
}
.pc-header .pc-current-user__subscribe {
  margin-top: 6px;
}
.pc-header .pc-current-user__popover button {
  margin-top: 6px;
}
.pc-header .pc-current-user__home:hover,
.pc-header .pc-current-user__subscribe:hover {
  background: #e8e9eb;
  color: #1f2329;
}
.pc-header .pc-current-user__popover button:hover {
  background: #ff3851;
  color: #fff;
}
/* 首页旧样式使用了更高权重，公共页头在此统一覆盖。 */
.container .pc-header {
  height: 72px;
}
.container .pc-header .pc-site-logo {
  margin: 0 8px 0 0;
}
.container .pc-header > ul {
  gap: 8px;
}
.container .pc-header > ul > li {
  height: 40px;
  padding: 0 16px;
}
@media (max-width: 1180px) {
  .pc-header {
    gap: 10px;
    padding: 0 20px;
  }
  .pc-header > ul {
    display: none !important;
  }
  .pc-header .nav-hamburger {
    display: flex;
    flex: 0 0 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(31, 35, 41, 0.06);
    color: inherit;
    cursor: pointer;
  }
  .pc-header--immersive .nav-hamburger {
    background: rgba(255, 255, 255, 0.16);
  }
  .pc-header .nav-hamburger span {
    display: block;
    width: 17px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
  }
  .pc-header .nav-hamburger-menu {
    position: absolute;
    z-index: 30;
    top: 60px;
    left: 20px;
    width: 176px;
    max-height: calc(100vh - 84px);
    padding: 8px;
    overflow-y: auto;
    box-sizing: border-box;
    border: 1px solid rgba(31, 35, 41, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .pc-header .nav-hamburger-menu.is-open {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .pc-header .nav-hamburger-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: #1f2329;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
  }
  .pc-header .nav-hamburger-menu a:hover,
  .pc-header .nav-hamburger-menu a.active {
    background: #f2f3f5;
  }
  .pc-header .pc-site-logo {
    max-width: 120px;
    margin-right: 0;
  }
  .pc-header .search {
    justify-content: center;
    width: 40px;
    padding: 0;
  }
  .pc-header .search .header-icon {
    margin-right: 0;
  }
  .pc-header .search span {
    display: none;
  }
  .pc-header .home-weather-summary {
    min-width: 0;
    padding: 3px 2px;
    gap: 6px;
  }
  .pc-header .home-weather-summary__icon {
    width: 28px;
    height: 28px;
  }
  .pc-header .home-weather-summary__detail {
    display: none;
  }
  .container .pc-header {
    padding: 0 20px;
  }
}
@media (max-width: 760px) {
  .pc-header {
    height: 64px;
    gap: 8px;
    padding: 0 12px;
  }
  .pc-header .nav-hamburger {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
  .pc-header .nav-hamburger-menu {
    top: 56px;
    left: 12px;
  }
  .pc-header .pc-site-logo {
    max-width: 82px;
    height: 30px;
  }
  .pc-header .pc-site-logo img {
    max-height: 30px;
  }
  .pc-header .head-actions {
    gap: 8px;
  }
  .pc-header .search {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .pc-header .header-publish {
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
  }
  .pc-header .pc-current-user {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
  .pc-header .pc-current-user__avatar {
    width: 32px;
    height: 32px;
  }
  .pc-header .pc-current-user__popover {
    top: 43px;
  }
  .container .pc-header {
    height: 64px;
    padding: 0 12px;
  }
}
