.dsc-shared-header,
.dsc-shared-footer,
.dsc-shared-nav,
.dsc-shared-nav-backdrop {
  box-sizing: border-box;
}

.dsc-shared-header *,
.dsc-shared-footer *,
.dsc-shared-nav * {
  box-sizing: border-box;
}

.dsc-shared-header {
  width: 100%;
  margin: 0;
  padding: 14px 50px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1200;
  background: #fff;
}

.dsc-shared-header.is-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}

.dsc-shared-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: #121212;
  letter-spacing: 1px;
  user-select: none;
  font-family: "思源黑体", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.dsc-shared-logo-main {
  font-size: 36px;
  font-weight: 500;
}

.dsc-shared-logo-sub {
  font-size: 8px;
  opacity: 0.8;
  letter-spacing: 1.5px;
  margin-top: 4px;
  text-transform: uppercase;
}

.dsc-shared-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dsc-shared-chip {
  min-width: 58px;
  height: 28px;
  border-radius: 16px;
  padding: 0 12px;
  background: #000;
  color: #fff;
  font-family: "思源黑体", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 1.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.dsc-shared-menu {
  border: 0;
  background: transparent;
  width: 32px;
  height: 22px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.dsc-shared-menu span {
  display: block;
  width: 100%;
  height: 1px;
  border-radius: 999px;
  background: #000;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dsc-shared-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}

.dsc-shared-lang-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dsc-header-muted, #9fa0a0);
  flex: 0 0 18px;
}

.dsc-shared-menu.is-open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.dsc-shared-menu.is-open span:nth-child(2) {
  opacity: 0;
}

.dsc-shared-menu.is-open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.dsc-shared-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  z-index: 1298;
}

.dsc-shared-nav {
  position: fixed;
  top: 70px;
  right: 32px;
  width: min(280px, 88vw);
  background: #fff;
  border: 1px solid #dadada;
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
  padding: 10px;
  display: grid;
  gap: 6px;
  z-index: 1299;
}

.dsc-shared-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #111;
  font-family: "思源黑体", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dsc-shared-nav a:hover {
  background: #f3f3f3;
}

.dsc-shared-nav a.is-active {
  background: #0f0f0f;
  color: #fff;
}

.dsc-shared-nav[hidden],
.dsc-shared-nav-backdrop[hidden] {
  display: none !important;
}

.dsc-shared-footer {
  width: 100%;
  margin: 0;
  background: #d1b8a7;
  color: #1a1a1a;
  display: grid;
  grid-template-columns: 1.2fr auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 32px 32px;
}

.dsc-shared-footer-left {
  display: grid;
  gap: 16px;
  justify-items: flex-start;
}

.dsc-shared-footer-copy {
  margin: 0;
  font-family: "思源黑体", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.dsc-shared-footer-divider {
  width: 1px;
  height: 90px;
  background: rgba(0, 0, 0, 0.32);
}

.dsc-shared-footer-right {
  margin: 0;
  text-align: center;
  font-family: "思源黑体", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.58;
}

.dsc-shared-footer-qr {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 6px solid #efefef;
  border-radius: 3px;
  background: #fff;
}

@media (max-width: 960px) {
  .dsc-shared-header {
    padding: 14px 16px;
  }

  .dsc-shared-logo-main {
    font-size: 30px;
  }

  .dsc-shared-logo-sub {
    font-size: 8px;
  }

  .dsc-shared-chip {
    min-width: 56px;
    height: 26px;
    font-size: 18px;
  }

  .dsc-shared-actions {
    gap: 12px;
  }

  .dsc-shared-menu {
    width: 28px;
    height: 20px;
  }

  .dsc-shared-lang-dot {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .dsc-shared-nav {
    top: 58px;
    right: 16px;
  }

  .dsc-shared-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 18px;
    padding: 28px 16px;
  }

  .dsc-shared-footer-left {
    justify-items: center;
  }

  .dsc-shared-footer-copy,
  .dsc-shared-footer-right {
    font-size: 14px;
  }

  .dsc-shared-footer-divider {
    width: min(280px, 65vw);
    height: 1px;
  }

  .dsc-shared-footer-qr {
    width: 104px;
    height: 104px;
  }
}

.dsc-shared-logo img {
  display: block;
  width: clamp(92px, 12vw, 126px);
  height: auto;
}
