*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #22334a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid #e3ebf4;
  background: #fff;
  box-shadow: 0 3px 18px rgb(31 77 137 / 6%);
}

.header-inner {
  max-width: 1080px;
  min-height: 72px;
  margin-inline: auto;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand { display: block; flex: none; }
.site-brand img { display: block; width: 130px; height: auto; }
.header-inner a:focus-visible { outline: 2px solid #1957aa; outline-offset: 3px; }

.site-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  flex: 0 1 654px;
  min-width: 0;
  text-decoration: none;
}
.search-field, .search-button {
  display: flex;
  align-items: center;
  height: 36px;
  border: 1px solid #d8e4f6;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
}
.search-field {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
}
.search-button {
  justify-content: center;
  min-width: 66px;
  padding: 0 14px;
  border-color: #b8cdf2;
  color: #1f4d89;
  font-weight: 700;
  cursor: pointer;
}
.site-search:hover .search-button { border-color: #6485af; }

.site-footer {
  margin-top: auto;
  border-top: 1px solid #e2eaf4;
  background: #fff;
  color: #53647a;
}
.footer-inner {
  max-width: 1080px;
  margin-inline: auto;
  padding: 24px 18px;
  font-size: .875rem;
  line-height: 1.8;
  text-align: center;
  overflow-wrap: anywhere;
}
.footer-inner p { margin: 0; }
.company-name { font-weight: 600; color: #30425d; }

@media (max-width: 990px) {
  .site-header { position: static; }
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 4px;
    padding-bottom: 10px;
  }
  .site-search { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .header-inner { padding-inline: 14px; column-gap: 10px; }
  .site-brand img { width: min(112px, 32vw); }
  .footer-inner { padding-inline: 14px; }
}
