/* ---- 顶部导航与链接模块样式 ---- */
header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 44px) 0;
}

.mark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
}

.mark .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.links a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.links a:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

.links svg {
  width: 17px;
  height: 17px;
}

@media (max-height: 620px) {
  header {
    padding-top: 14px;
  }
}

@media (max-width: 640px) {
  header {
    padding: 16px 16px 0;
  }
}
