:root {
  --geo-ink: #16151a;
  --geo-muted: #63606b;
  --geo-line: #ecebf1;
  --geo-accent: #5b35e8;
}

.geo-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--geo-line);
  background: #fff;
  color: var(--geo-ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.4;
}

.geo-header-inner {
  width: min(calc(100% - 40px), 1240px);
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.geo-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--geo-ink);
  text-decoration: none;
}

.geo-brand img {
  flex: 0 0 auto;
}

.geo-brand strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}

.geo-header nav a {
  color: var(--geo-muted);
  text-decoration: none;
  white-space: nowrap;
}

.geo-header nav a:hover {
  color: var(--geo-accent);
}

.geo-header .geo-workspace {
  min-height: 38px;
  padding: 10px 15px;
  background: var(--geo-ink);
  color: #fff;
}

.geo-header details {
  display: none;
  position: relative;
}

.geo-footer {
  border-top: 1px solid var(--geo-line);
  background: #f8f7fb;
  color: var(--geo-muted);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.7;
}

.geo-footer-inner {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
  gap: 42px;
}

.geo-footer strong,
.geo-footer span {
  display: block;
}

.geo-footer strong {
  color: var(--geo-ink);
  font-size: 14px;
}

.geo-footer address {
  margin: 0;
  font-style: normal;
}

.geo-footer a {
  color: var(--geo-ink);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .geo-header-inner > nav {
    display: none;
  }

  .geo-header details {
    display: block;
  }

  .geo-header summary {
    cursor: pointer;
    font-size: 13px;
  }

  .geo-header details nav {
    position: absolute;
    top: 34px;
    right: 0;
    width: 250px;
    padding: 12px;
    display: grid;
    gap: 0;
    border: 1px solid var(--geo-line);
    background: #fff;
    box-shadow: 0 18px 50px rgb(22 21 26 / 12%);
  }

  .geo-header details nav a {
    padding: 9px 8px;
  }
}

@media (max-width: 640px) {
  .geo-header-inner,
  .geo-footer-inner {
    width: min(calc(100% - 28px), 1240px);
  }

  .geo-brand strong {
    max-width: 240px;
  }

  .geo-footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
