/* ============================================================
 * 惠算算力平台 - branding overrides
 * Injected on every HTML response by Nginx sub_filter.
 * ============================================================ */

/* --- 1) Top navigation bar: force white background, dark text --- */
.semi-navigation,
.semi-navigation-header,
.semi-layout-header,
header.semi-layout-header,
[class*="layout-header"],
[class*="Header_root"],
[class*="header_root"],
[class*="HeaderBar"],
[class*="navbar"] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #1f2937 !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06) !important;
  border-bottom: 0 !important;
  filter: none !important;
}

/* Remove any pseudo-element divider some themes draw under the nav */
.semi-navigation::after,
.semi-layout-header::after,
[class*="layout-header"]::after,
[class*="Header_root"]::after {
  display: none !important;
  content: none !important;
}

/* --- 2) Nav text/links: dark on white --- */
.semi-navigation .semi-navigation-list .semi-navigation-item,
.semi-navigation .semi-navigation-list .semi-navigation-item-text,
.semi-navigation .semi-navigation-list .semi-navigation-item-link,
.semi-navigation-item,
.semi-navigation-item-text,
.semi-navigation-item-link,
.semi-layout-header a,
.semi-layout-header span,
.semi-layout-header .semi-typography {
  color: #1f2937 !important;
}

/* Hover & selected states - subtle blue accent matching the hero */
.semi-navigation-item:hover,
.semi-navigation-item-link:hover,
.semi-navigation-item-text:hover {
  color: #2563eb !important;
}
.semi-navigation-item-selected,
.semi-navigation-item-selected .semi-navigation-item-text,
.semi-navigation-item-selected .semi-navigation-item-link {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

/* --- 3) Top-right icons (notifications / theme / language / avatar) --- */
.semi-layout-header .semi-button,
.semi-layout-header .semi-icon,
.semi-layout-header svg {
  color: #4b5563 !important;
  fill: currentColor !important;
}

/* --- 4) Iframe (our standalone home page) sits flush against the navbar --- */
iframe[src*="/static/home.html"] {
  display: block;
  width: 100%;
  border: 0;
  margin: 0;
}
