body.xxf-v4 #top.site-header {
  position: relative;
  width: 100%;
  height: auto;
  background: #1a1a1a;
  color: #fff;
  z-index: 5;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body.xxf-v4 #top.site-header,
body.xxf-v4 #top.site-header * { box-sizing: border-box; }

body.xxf-v4 #top .site-header-inner {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: min(1240px, 100% - 48px);
  min-height: 66px;
  height: auto;
  margin-inline: auto;
  gap: 26px;
}

body.xxf-v4 #top .site-header-brand {
  flex: 0 0 auto;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.xxf-v4 #top .site-header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  gap: 4px 8px;
}

body.xxf-v4 #top .site-header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 11px;
  border-radius: 4px;
  color: #e9e9e9;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}

body.xxf-v4 #top .site-header-nav a:hover,
body.xxf-v4 #top .site-header-nav a[aria-current] {
  background: #a9252a;
  color: #fff;
}

body.xxf-v4 #top a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.xxf-v4 #top .site-header-nav .site-header-tools {
  display: flex;
  margin-inline-start: auto;
  gap: 4px;
}

body.xxf-v4.domain #top.site-header + #tt { margin-top: 40px; }
body.xxf-v4.it #top.site-header + #nav { padding-top: 40px; }
body.xxf-v4.domain #top.site-header,
body.xxf-v4.it #top.site-header { width: calc(100% + 20px); margin-inline: -10px; }

@media (max-width: 1009px) {
  body.xxf-v4.domain #top.site-header,
  body.xxf-v4.it #top.site-header { width: calc(100% + 32px); margin-inline: -16px; }
  body.xxf-v4.domain #top.site-header + #tt { margin-top: 24px; }
  body.xxf-v4.it #top.site-header + #nav { padding-top: 24px; }
}

@media (max-width: 640px) {
  body.xxf-v4 #top .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    width: calc(100% - 28px);
    min-height: 0;
    padding: 12px 0 8px;
    gap: 5px;
  }
  body.xxf-v4 #top .site-header-brand { font-size: 20px; }
  body.xxf-v4 #top .site-header-nav { width: 100%; gap: 2px; }
  body.xxf-v4 #top .site-header-nav a { min-height: 40px; padding-inline: 7px; font-size: 13px; }
  body.xxf-v4 #top .site-header-nav .site-header-tools { margin-inline-start: 0; gap: 2px; }
}
