.zhaoming-app-switcher {
  position: relative;
  z-index: 62;
}

.zhaoming-brand-trigger {
  min-height: 50px;
  padding: 0 4px 0 0;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.zhaoming-brand-seal,
.zhaoming-app-seal {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 224, 0.35);
  border-radius: 8px;
  color: #fffaf0;
  background: linear-gradient(145deg, #4a4034, #9b762f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 18px -10px rgba(0, 0, 0, 0.75);
}

.zhaoming-brand-seal {
  width: 46px;
  height: 46px;
}

.zhaoming-brand-seal b,
.zhaoming-app-seal b {
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: 0;
}

.zhaoming-brand-seal b {
  font-size: 24px;
}

.zhaoming-brand-seal i,
.zhaoming-app-seal i {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border-radius: 3px;
  color: #75551e;
  background: rgba(255, 250, 239, 0.95);
  font-family: var(--font-serif);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.zhaoming-brand-chevron {
  color: #e6c478;
  font-size: 13px;
  font-weight: 900;
  transform: rotate(0);
  transition: transform 160ms ease;
}

.zhaoming-brand-trigger[aria-expanded='true'] .zhaoming-brand-chevron {
  transform: rotate(180deg);
}

.zhaoming-app-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  border: 0;
  background: rgba(20, 17, 13, 0.08);
  cursor: default;
}

.zhaoming-app-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 63;
  display: grid;
  width: min(276px, calc(100vw - 28px));
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(223, 193, 133, 0.48);
  border-radius: 8px;
  background: rgba(39, 34, 28, 0.985);
  box-shadow: 0 24px 54px -24px rgba(0, 0, 0, 0.78);
  animation: zhaoming-app-menu-in 160ms ease-out;
}

.zhaoming-app-menu[hidden],
.zhaoming-app-backdrop[hidden] {
  display: none;
}

.zhaoming-app-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #fff9ef;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.zhaoming-app-item.active {
  border-color: rgba(224, 185, 101, 0.28);
  background: rgba(224, 185, 101, 0.09);
}

.zhaoming-app-seal {
  width: 40px;
  height: 40px;
}

.zhaoming-app-item.is-guowen .zhaoming-app-seal {
  background: linear-gradient(145deg, #a44338, #6d2924);
}

.zhaoming-app-item.is-english .zhaoming-app-seal {
  background: linear-gradient(145deg, #ff8e72, #d94b38);
}

.zhaoming-app-item.is-english .zhaoming-app-seal i {
  color: #c84432;
}

.zhaoming-app-seal b {
  font-size: 20px;
}

.zhaoming-app-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.zhaoming-app-item strong,
.zhaoming-app-item small {
  display: block;
  letter-spacing: 0;
}

.zhaoming-app-item strong {
  color: #fff9ef;
  font-size: 14px;
  font-weight: 900;
}

.zhaoming-app-item small {
  color: #c4b9a8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.zhaoming-app-item > em {
  color: #e6c478;
  font-size: 19px;
  font-style: normal;
  font-weight: 900;
}

.zhaoming-app-item.active > em {
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(224, 185, 101, 0.12);
  font-size: 10px;
}

@keyframes zhaoming-app-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .zhaoming-brand-seal {
    width: 42px;
    height: 42px;
  }
}
