.ds-site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(226, 232, 240, .85);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

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

.ds-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: #13223a;
  text-decoration: none;
}

.ds-brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(65, 111, 244, .2);
  object-fit: contain;
}

.ds-brand-word {
  display: block;
  color: #13223a;
  font-size: 21px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -.7px;
}

.ds-brand-caption {
  display: block;
  margin-top: 5px;
  color: #8190a5;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .08em;
  white-space: nowrap;
}

.ds-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(13px, 1.8vw, 25px);
  color: #56657a;
  font-size: 13px;
}

.ds-main-nav a {
  color: inherit;
  text-decoration: none;
  transition: color .18s;
  white-space: nowrap;
}

.ds-main-nav a:hover,
.ds-main-nav a[aria-current="page"] {
  color: #416ff4;
}

.ds-main-nav a[aria-current="page"] { font-weight: 700; }

.ds-header-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  background: #416ff4;
  box-shadow: 0 8px 22px rgba(65, 111, 244, .2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, transform .18s;
  white-space: nowrap;
}

.ds-header-cta:hover {
  color: #fff;
  background: #2e58d5;
  transform: translateY(-1px);
}

.ds-header-cta:focus-visible {
  outline: 3px solid rgba(65, 111, 244, .5);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .ds-header-inner { gap: 14px; }
  .ds-main-nav { gap: 10px; font-size: 11px; }
  .ds-brand-caption { font-size: 9px; }
}

@media (max-width: 760px) {
  .ds-header-inner {
    width: min(1180px, calc(100% - 36px));
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 10px 0;
  }
  .ds-site-brand { grid-column: 1; grid-row: 1; }
  .ds-header-cta { grid-column: 2; grid-row: 1; justify-self: end; }
  .ds-main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .ds-main-nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
    white-space: normal;
  }
  .ds-main-nav a:hover,
  .ds-main-nav a[aria-current="page"] { background: #edf3ff; }
  .ds-main-nav a[href="/duanju.html"] { padding-right: 0; padding-left: 0; font-size: 10px; letter-spacing: -.03em; }
}

@media (max-width: 520px) {
  .ds-header-inner { width: min(1180px, calc(100% - 30px)); }
  .ds-brand-caption { display: none; }
  .ds-brand-word { font-size: 19px; }
  .ds-brand-mark { width: 32px; height: 32px; }
  .ds-header-cta { min-height: 39px; padding: 0 12px; font-size: 12px; }
}

@media (max-width: 360px) {
  .ds-header-inner { width: min(1180px, calc(100% - 24px)); }
  .ds-main-nav { gap: 4px; }
  .ds-main-nav a { min-height: 32px; padding: 5px 2px; font-size: 11px; }
  .ds-main-nav a[href="/duanju.html"] { padding-right: 0; padding-left: 0; font-size: 10px; }
}
