/* Keep brand names readable when gradient clipping is unavailable. */
.weiyan-brand-title {
  color: #eb551b;
  font-weight: 750;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .weiyan-brand-title {
    background-image: linear-gradient(110deg, #f28a21 0%, #f15a24 48%, #db3865 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

@media (forced-colors: active) {
  .weiyan-brand-title {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}

.weiyan-legacy-copyright-hidden,
.weiyan-header-version-hidden {
  display: none !important;
}

/* The version update action sits immediately beside the brand in both headers. */
header button[title*='当前版本'],
header button[title*='current version'],
header button[aria-label*='当前版本'],
header button[aria-label*='current version'] {
  display: none !important;
}

footer.weiyan-footer-customized > :not(#weiyan-compliance-footer) {
  display: none !important;
}

#weiyan-compliance-footer {
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  padding: 30px 24px 28px;
  color: #7b8190;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

#weiyan-compliance-footer .weiyan-footer-company-line,
#weiyan-compliance-footer .weiyan-footer-legal-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
}

#weiyan-compliance-footer .weiyan-footer-company-line {
  margin-bottom: 7px;
  color: #757d8c;
  font-size: 14px;
}

#weiyan-compliance-footer .weiyan-footer-company-name {
  color: #596273;
  font-weight: 600;
}

#weiyan-compliance-footer .weiyan-footer-separator {
  color: #c0c5ce;
}

#weiyan-compliance-footer .weiyan-footer-legal-line {
  color: #9298a4;
}

#weiyan-compliance-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

#weiyan-compliance-footer a:hover {
  color: #eb551b;
}

html.dark #weiyan-compliance-footer,
body.dark #weiyan-compliance-footer,
.dark #weiyan-compliance-footer {
  color: #9ca3af;
}

.dark #weiyan-compliance-footer .weiyan-footer-company-name {
  color: #d1d5db;
}

@media (max-width: 640px) {
  #weiyan-compliance-footer {
    padding: 20px 16px;
    font-size: 12px;
  }

  #weiyan-compliance-footer .weiyan-footer-company-line {
    font-size: 12px;
  }

  #weiyan-compliance-footer .weiyan-footer-address {
    width: 100%;
  }

  #weiyan-compliance-footer .weiyan-footer-company-line .weiyan-footer-separator {
    display: none;
  }
}
