html {
  overflow-x: clip !important;
  scrollbar-color: #555b58 #111412 !important;
  scrollbar-gutter: stable;
  scrollbar-width: thin !important;
}

body {
  max-width: 100% !important;
  overflow-x: clip !important;
}

* {
  scrollbar-color: #555b58 #111412 !important;
  scrollbar-width: thin !important;
}

*::-webkit-scrollbar { width: 9px !important; height: 9px !important; }
textarea::-webkit-scrollbar { width: 7px !important; }
*::-webkit-scrollbar-track { background: #111412 !important; }
*::-webkit-scrollbar-thumb {
  border: 2px solid #111412 !important;
  border-radius: 10px !important;
  background: #555b58 !important;
  background-clip: padding-box !important;
}
*::-webkit-scrollbar-thumb:hover {
  background: #76504a !important;
  background-clip: padding-box !important;
}

html body .module-nav {
  position: relative;
  z-index: 20;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100vw !important;
  max-width: none !important;
  height: 76px !important;
  margin-right: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  transform: none !important;
  padding: 0 clamp(18px, 3vw, 48px) !important;
  border-bottom: 1px solid #282b2e !important;
  background: rgba(13, 15, 16, .94) !important;
  backdrop-filter: blur(16px);
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

.module-brand {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center !important;
  gap: 12px !important;
  color: #eee9df !important;
  text-decoration: none !important;
}
.module-brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #8f312a;
  border-radius: 50%;
  color: #f0d2cd;
  background: rgba(196, 71, 61, .1);
  font: 500 20px "Songti SC", serif;
}
.module-brand strong, .module-brand small { display: block; }
.module-brand strong { font: 600 16px "Songti SC", serif; letter-spacing: .08em; }
.module-brand small { margin-top: -3px; color: #707478; font-size: 9px; letter-spacing: .13em; }

html body .module-nav nav {
  display: flex !important;
  align-items: center !important;
  gap: clamp(17px, 2.1vw, 31px) !important;
  width: auto !important;
  max-width: none !important;
  height: 76px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
}
.module-nav nav > a {
  position: relative;
  margin: 0 !important;
  padding: 27px 0 25px !important;
  color: #a4a39f !important;
  font-size: 13px !important;
  line-height: 24px !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .2s;
}
.module-nav nav > a:hover, .module-nav nav > a.active { color: #f0e7dc !important; }
.module-nav nav > a.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #a43f36;
  content: "";
}
.module-device {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  width: auto !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #35393d !important;
  border-radius: 7px !important;
  color: #8e9294 !important;
  background: #121416 !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  cursor: pointer;
  transform: none !important;
}
.module-device:hover { border-color: #5c4844 !important; background: #17191b !important; }
.module-device code { color: #b2b4b1; font: 10px Consolas, monospace; }
.module-device .copy-toast { position: absolute; top: calc(100% + 7px); right: 0; color: #d8c9bd; white-space: nowrap; }
.module-device-mobile { display: none; }

@media (max-width: 760px) {
  html body .module-nav {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 12px !important;
    height: 62px !important;
    min-height: 62px !important;
    padding: 0 12px !important;
  }
  .module-brand { min-width: 0; min-height: 38px; gap: 8px !important; }
  .module-brand strong { font-size: 13px; white-space: nowrap; }
  .module-brand small { display: none; }
  .module-brand-mark { width: 32px; height: 32px; font-size: 16px; }
  .module-device-mobile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 30px;
    padding: 0 7px;
    border: 1px solid #303438;
    border-radius: 6px;
    color: #777d7e;
    background: #121516;
    font: 9px "Microsoft YaHei", sans-serif;
  }
  .module-device-mobile span:first-child { display: none; }
  .module-device-mobile code { color: #adb0ad; font: 9px Consolas, monospace; }
  .module-device-mobile .copy-toast { position: absolute; right: 0; top: calc(100% + 5px); color: #d8c9bd; white-space: nowrap; }
  html body .module-nav nav {
    grid-column: auto;
    justify-content: safe flex-end !important;
    gap: 20px !important;
    width: 100% !important;
    height: 62px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }
  html body .module-nav nav::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
  .module-nav nav > a { flex: 0 0 auto; padding: 19px 0 17px !important; font-size: 11px !important; white-space: nowrap; }
  .module-nav nav > a.active::after { bottom: 0; }
  .module-device { display: none; }
}

@media (max-width: 470px) {
  .module-brand > span:last-child { display: none; }
  html body .module-nav nav { width: 100% !important; justify-content: safe flex-end !important; gap: 18px !important; }
  .module-device-mobile { padding: 0 7px; }
  .module-nav nav > a { font-size: 10px !important; }
}
