/* Dawn: component-header + list-menu（移动端抽屉式展开） */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.header__logo {
  justify-self: start;
  text-decoration: none;
  color: var(--color-base);
}

.header__logo-title {
  font-size: clamp(1rem, 3vw, 1.05rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.header__logo-caption {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.header__menu-toggle {
  display: none;
  justify-self: end;
  grid-column: 3;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 0.55rem 1rem;
  min-height: 44px;
  min-width: 44px;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: inherit;
}

.header__nav {
  justify-self: center;
}

.list-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  justify-content: center;
}

.list-menu a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.header__icons {
  justify-self: end;
  display: flex;
  gap: 0.35rem;
}

.header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: var(--color-base);
  cursor: default;
  border-radius: var(--radius);
  opacity: 0.55;
}

@media (max-width: 990px) {
  .header__inner {
    grid-template-columns: 1fr auto;
  }

  .header__icons {
    display: none;
  }

  .header__menu-toggle {
    display: block;
  }

  .header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s ease, visibility 0.35s;
  }

  .header__nav.is-open {
    max-height: min(70vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: visible;
  }

  .list-menu {
    flex-direction: column;
    padding: 1rem var(--gutter) 1.25rem;
    align-items: flex-start;
    gap: 0;
  }

  .list-menu a {
    display: block;
    padding: 0.65rem 0;
    min-height: 44px;
    line-height: 1.3;
    display: flex;
    align-items: center;
  }

  .header {
    position: relative;
  }
}
