/* Shared site chrome, aligned with the saved weilailab.cn release a848c50.
   Keep the career flow and card layout in their own stylesheets. */
:root {
  --paper: #f1ead7;
  --paper-deep: #e8dfc7;
  --card: #f8f3e6;
  --ink: #171411;
  --muted: #6f695f;
  --line: #aaa18f;
  --line-dark: #423c33;
  --red: #b6372d;
  --red-dark: #8e241d;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  --brand-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --brand-mono: "SFMono-Regular", Consolas, "Liberation Mono", "PingFang SC", monospace;
}

.site-head {
  display: flex;
  max-width: none;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  border: 0;
  padding: 0 28px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--brand-sans);
}

.site-head .brand {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: .02em;
  text-decoration: none;
}

.site-head .brand-icon {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font: 700 15px/1 var(--serif);
}

.site-head .brand-copy {
  display: inline-flex;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  line-height: 1;
  white-space: nowrap;
}

.site-head .brand-project {
  font: 780 16px/1.2 var(--brand-sans);
  letter-spacing: .01em;
}

.site-head .brand-separator {
  display: inline;
  color: #81796c;
  font: 500 14px/1 var(--brand-mono);
}

.site-head .brand-owner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f3eddf;
  font: 800 16px/1.2 var(--brand-sans);
  letter-spacing: 0;
  white-space: nowrap;
}

.site-head .brand-owner img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  filter: brightness(0) invert(1);
}

.site-head .head-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-head .head-links > a,
.site-head > .btn {
  color: var(--paper);
  font: 700 14px/1.5 var(--brand-sans);
  text-decoration: none;
  white-space: nowrap;
}

.site-head .head-links > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.site-head .head-links > a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-head .edition {
  margin: 0;
  color: #c7beae;
  font: 700 10px/1.5 var(--brand-mono);
  letter-spacing: .06em;
  white-space: nowrap;
}

.site-head .edition i {
  width: 3px;
  height: 3px;
  background: #81796c;
}

.site-head > .btn {
  min-height: 40px;
  border: 1px solid #6f675a;
  padding: 9px 16px;
  background: transparent;
}

.site-head > .btn:hover {
  border-color: #c7beae;
  background: var(--line-dark);
}

.site-head a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 5px;
}

.site-foot {
  display: flex;
  max-width: 1168px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 40px auto 0;
  border-top: 1px solid var(--line);
  padding: 25px 0 30px;
  color: var(--muted);
  font-family: var(--brand-sans);
}

.site-foot .foot-signature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font: 700 18px/1.4 var(--serif);
  text-decoration: none;
}

.site-foot .foot-signature img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.site-foot .foot-signature small {
  margin-left: 3px;
  color: var(--muted);
  font: 600 12px/1.5 var(--brand-sans);
}

.site-foot .foot-copy {
  display: grid;
  gap: 5px;
  text-align: right;
}

.site-foot .foot-project {
  display: block;
  color: var(--line-dark);
  font-size: 12px;
  line-height: 1.5;
}

.site-foot .foot-domain {
  color: inherit;
  font-family: var(--brand-mono);
  font-weight: 700;
  text-decoration: none;
}

.site-foot .foot-note {
  display: block;
  font-size: 11px;
  line-height: 1.6;
}

.site-foot a:hover {
  color: var(--red);
}

.site-foot a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}

@media (max-width: 1240px) {
  .site-foot { margin-left: 36px; margin-right: 36px; }
}

@media (max-width: 900px) {
  .site-head .head-links { display: grid; gap: 0; justify-items: end; }
  .site-head .head-links > a { min-height: 30px; }
  .site-head .head-links .edition { margin-top: 0; }
}

@media (max-width: 620px) {
  .site-head { min-height: 64px; gap: 12px; padding: 9px 14px; }
  .site-head .brand { gap: 8px; }
  .site-head .brand-icon { width: 31px; min-width: 31px; height: 31px; flex-basis: 31px; }
  .site-head .brand-copy { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-head .brand-project { font-size: 14px; }
  .site-head .brand-separator { display: none; }
  .site-head .brand-owner { gap: 4px; font-size: 11px; }
  .site-head .brand-owner img { width: 14px; height: 14px; flex-basis: 14px; }
  .site-head .head-links > a { font-size: 12px; }
  .site-head .head-links .edition { font-size: 8px; letter-spacing: 0; }
  .site-head > .btn { min-height: 38px; padding: 8px 10px; font-size: 11px; }
  .site-foot { flex-direction: column; align-items: flex-start; gap: 13px; margin: 28px 14px 0; padding: 22px 0 26px; }
  .site-foot .foot-signature { font-size: 16px; }
  .site-foot .foot-copy { text-align: left; }
  .site-foot .foot-project { font-size: 11px; }
  .site-foot .foot-note { font-size: 10px; }
}

@media print {
  .site-head { padding: 0 0 20px; color: var(--ink); background: white; }
  .site-head .brand-owner, .site-head .head-links > a, .site-head .edition { color: var(--ink); }
  .site-head .brand-icon { border: 1px solid var(--ink); background: white; }
  .site-head .brand-owner img { filter: none; }
}
