:root {
  --dss-brand: #073b8e;
  --dss-brand-strong: #052a66;
  --dss-brand-link: #0b57c4;
  --dss-accent: #ff5a00;
  --dss-ink: #12233d;
  --dss-muted: #5e7089;
  --dss-line: #d8e3f5;
  --dss-surface: #ffffff;
  --dss-soft: #f5f8fc;
}

.dss-header,
.dss-header *,
.dss-footer,
.dss-footer * {
  box-sizing: border-box;
}

.dss-header {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  min-height: 84px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e7eef8;
  color: var(--dss-ink);
  font-family: "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC",
    "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  box-shadow: 0 4px 18px rgba(7, 59, 142, 0.04);
}

.dss-header a {
  color: inherit;
  text-decoration: none;
}

.dss-header-inner {
  width: min(1480px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.dss-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.dss-brand img {
  display: block;
  width: auto;
  height: 46px;
  object-fit: contain;
}

.dss-desktop-nav {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(13px, 1.45vw, 28px);
  font-size: clamp(13px, 0.88vw, 15px);
  font-weight: 600;
  white-space: nowrap;
}

.dss-nav-direct,
.dss-nav-primary > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.dss-nav-direct:hover,
.dss-nav-primary > a:hover,
.dss-nav-direct:focus-visible,
.dss-nav-primary > a:focus-visible,
.dss-nav-direct.is-active,
.dss-nav-group.is-active .dss-nav-primary > a {
  color: var(--dss-brand-link);
  border-bottom-color: var(--dss-accent);
  outline: none;
}

.dss-nav-group {
  position: relative;
}

.dss-nav-primary {
  display: flex;
  align-items: center;
  gap: 2px;
}

.dss-nav-primary button,
.dss-mobile-group button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #7a8ca5;
  cursor: pointer;
}

.dss-nav-primary button {
  width: 22px;
  height: 32px;
  padding: 0;
}

.dss-nav-primary button span,
.dss-mobile-group button span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.dss-nav-group.is-open .dss-nav-primary button span,
.dss-mobile-group.is-open button span {
  transform: rotate(225deg) translate(-1px, -1px);
}

.dss-nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 920;
  display: none;
  min-width: 210px;
  padding: 10px;
  background: var(--dss-surface);
  border: 1px solid #e4ecf8;
  border-radius: 14px;
  box-shadow: 0 20px 52px rgba(5, 42, 102, 0.18);
  transform: translateX(-50%);
}

.dss-nav-wide .dss-nav-menu {
  min-width: 268px;
}

.dss-nav-group:hover .dss-nav-menu,
.dss-nav-group:focus-within .dss-nav-menu,
.dss-nav-group.is-open .dss-nav-menu {
  display: grid;
}

.dss-nav-menu a {
  display: block;
  padding: 10px 13px;
  border-radius: 9px;
  color: #243957;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.dss-nav-menu a:hover,
.dss-nav-menu a:focus-visible {
  color: var(--dss-brand-link);
  background: #eef4fd;
  outline: none;
}

.dss-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}

.dss-search-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #c9d8ef;
  border-radius: 10px;
  color: var(--dss-brand-link) !important;
  background: #fff;
}

.dss-search-link img,
.dss-mobile-search img {
  display: block;
  width: 20px;
  height: 20px;
}

.dss-search-link:hover,
.dss-search-link:focus-visible {
  border-color: var(--dss-brand-link);
  background: #eef4fd;
  outline: none;
}

.dss-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dss-language,
.dss-login,
.dss-consult {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid #c9d8ef;
  border-radius: 10px;
  background: #fff;
}

.dss-language:hover,
.dss-login:hover {
  border-color: var(--dss-brand-link);
  color: var(--dss-brand-link);
}

.dss-consult {
  padding-inline: 18px;
  border-color: var(--dss-accent);
  color: #fff !important;
  background: var(--dss-accent);
}

.dss-consult:hover {
  border-color: #df4d00;
  background: #df4d00;
}

.dss-menu-toggle {
  display: none;
  width: 42px;
  height: 40px;
  padding: 9px;
  border: 1px solid #c9d8ef;
  border-radius: 10px;
  background: #fff;
}

.dss-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--dss-brand);
}

.dss-mobile-nav {
  width: 100%;
  max-height: calc(100vh - 84px);
  padding: 8px 24px 22px;
  overflow: auto;
  border-top: 1px solid #edf2f8;
  background: #fff;
}

.dss-mobile-direct,
.dss-mobile-group > div {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf2f8;
  font-weight: 650;
}

.dss-mobile-group > div > a {
  flex: 1 1 auto;
  padding: 13px 0;
}

.dss-mobile-group button {
  width: 44px;
  height: 44px;
}

.dss-mobile-group section {
  padding: 7px 0 10px 14px;
  border-bottom: 1px solid #edf2f8;
}

.dss-mobile-group section a {
  display: block;
  padding: 9px 0;
  color: #4b5f7b;
  font-size: 14px;
}

.dss-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 16px;
}

.dss-mobile-actions a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9d8ef;
  border-radius: 9px;
  color: var(--dss-brand);
  font-weight: 650;
}

.dss-mobile-actions .dss-mobile-search {
  grid-column: auto;
  padding: 0;
}

.dss-footer {
  width: 100%;
  padding: 64px max(32px, calc((100% - 1480px) / 2)) 30px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--dss-brand-strong);
  font-family: "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC",
    "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.dss-footer,
.dss-footer p {
  font-size: 14px;
  line-height: 1.75;
}

.dss-footer a {
  color: inherit;
  text-decoration: none;
}

.dss-footer a:hover,
.dss-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dss-footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(4, minmax(150px, 1fr));
  gap: 42px;
  width: min(1480px, 100%);
  margin: 0 auto;
}

.dss-footer-brand img {
  display: block;
  width: auto;
  height: 52px;
  object-fit: contain;
}

.dss-footer-brand p {
  max-width: 30em;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.dss-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.dss-footer-col h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.dss-footer-col p {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.dss-footer-meta {
  width: min(1480px, 100%);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  text-align: center;
}

.dss-footer-meta img {
  display: inline;
}

@media (max-width: 1320px) {
  .dss-header-inner {
    width: min(100% - 32px, 1180px);
    gap: 18px;
  }

  .dss-desktop-nav {
    gap: 13px;
    font-size: 13px;
  }

  .dss-brand img {
    height: 42px;
  }

  .dss-language,
  .dss-login,
  .dss-consult {
    padding-inline: 11px;
  }
}

@media (max-width: 1080px) {
  .dss-desktop-nav,
  .dss-consult {
    display: none;
  }

  .dss-header-inner {
    min-height: 74px;
  }

  .dss-header {
    min-height: 74px;
  }

  .dss-header-actions {
    margin-left: auto;
  }

  .dss-menu-toggle {
    display: block;
  }

  .dss-mobile-nav {
    max-height: calc(100vh - 74px);
  }

  .dss-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dss-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .dss-header-inner {
    width: calc(100% - 24px);
  }

  .dss-brand img {
    height: 38px;
  }

  .dss-language,
  .dss-login {
    display: none;
  }

  .dss-mobile-nav {
    padding-inline: 16px;
  }

  .dss-footer {
    padding: 46px 24px 26px;
  }

  .dss-footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .dss-footer-brand {
    grid-column: auto;
  }

  .dss-footer-meta {
    margin-top: 36px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dss-header *,
  .dss-footer * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
