.wisemed-custom-nav-link,
.wisemed-static-nav-link {
  align-items: center;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
  height: 100%;
  justify-content: center;
  padding: 0 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}

body mat-toolbar .toolbar-navigation-button-text,
body mat-toolbar .wisemed-custom-nav-text {
  font-size: 1rem !important;
  font-weight: 600;
  line-height: 1.2;
}

.wisemed-custom-nav-link:hover,
.wisemed-custom-nav-link.active,
.wisemed-static-nav-link:hover,
.wisemed-static-nav-link.active {
  background: #145ca4;
}

.wisemed-custom-nav-icon,
.wisemed-static-nav-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.wisemed-probe-icon {
  flex: 0 0 auto;
  height: 1.35rem;
  width: 1.35rem;
}

body mat-toolbar .toolbar-navigation-button-group {
  flex: 1 1 0 !important;
  height: 4rem;
  min-width: 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

body mat-toolbar,
.wisemed-static-toolbar {
  flex-wrap: nowrap !important;
  height: 4rem !important;
  min-height: 4rem;
  overflow: hidden !important;
}

.wisemed-right-nav-column::before {
  display: none;
}

.wisemed-static-resource-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 0.35rem 0.7rem 0.2rem;
}

body mat-toolbar {
  background: #1976d2 !important;
}

body mat-toolbar::after,
.wisemed-static-toolbar::after {
  display: none;
}

body.wisemed-static-layout,
body app-root {
  column-gap: 1rem;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 16rem;
  grid-template-rows: auto 1fr;
}

body.wisemed-static-layout > .wisemed-static-toolbar,
body app-root > mat-toolbar {
  grid-column: 1 / -1;
  grid-row: 1;
}

body.wisemed-static-layout > main,
body app-root > .content {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.wisemed-right-nav-column {
  background: linear-gradient(145deg, rgba(25, 118, 210, 0.98), rgba(20, 92, 164, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.8rem;
  box-sizing: border-box;
  box-shadow: 0 14px 34px rgba(13, 69, 122, 0.26);
  display: flex;
  flex-direction: column;
  align-self: start;
  grid-column: 2;
  grid-row: 2;
  margin: 2rem 0.75rem 0 0 !important;
  padding: 0.25rem;
  position: static;
  width: auto;
  z-index: 4;
}

.wisemed-right-nav-column::before {
  color: rgba(255, 255, 255, 0.88);
  content: "资源入口：";
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 0.35rem 0.7rem 0.2rem;
}

.wisemed-right-nav-column > .wisemed-static-nav-link,
body mat-toolbar .wisemed-right-nav-column > button,
.wisemed-angular-right-nav-column > button {
  border-radius: 0 !important;
  color: #fff !important;
  flex-direction: row !important;
  gap: 0.4rem;
  height: 2.25rem !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  padding: 0 0.7rem !important;
  width: 100%;
}

.wisemed-right-nav-column > .wisemed-static-nav-link,
body mat-toolbar .wisemed-right-nav-column > button,
.wisemed-angular-right-nav-column > button {
  border-radius: 0.5rem !important;
}

.wisemed-right-nav-column > .wisemed-static-nav-link:hover,
body mat-toolbar .wisemed-right-nav-column > button:hover,
body mat-toolbar .wisemed-right-nav-column > button.active,
.wisemed-angular-right-nav-column > button:hover,
.wisemed-angular-right-nav-column > button.active {
  background: #145ca4;
}

.wisemed-right-nav-column .wisemed-static-nav-text,
body mat-toolbar .wisemed-right-nav-column .toolbar-navigation-button-text,
.wisemed-angular-right-nav-column .toolbar-navigation-button-text {
  display: inline !important;
  font-size: 0.82rem !important;
  font-weight: 600;
  line-height: 1.2 !important;
}

.wisemed-right-nav-column .wisemed-static-nav-icon,
body mat-toolbar .wisemed-right-nav-column mat-icon,
.wisemed-angular-right-nav-column mat-icon {
  flex: 0 0 auto;
  font-size: 1.05rem !important;
  height: 1.05rem !important;
  line-height: 1 !important;
  margin: 0 0.1rem 0 0 !important;
  width: 1.05rem !important;
}

.wisemed-static-toolbar {
  align-items: center;
  background: #1976d2;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  font-family: "Noto Sans SC", Arial, sans-serif;
  font-weight: 600;
  height: 4rem;
  overflow: hidden;
  width: 100%;
}

.wisemed-static-brand {
  align-items: center;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  height: 4rem;
  padding: 0 1rem;
  text-decoration: none;
}

.wisemed-static-brand img {
  height: 40px;
  margin-right: 1rem;
  width: 40px;
}

.wisemed-static-brand-text {
  font-size: 1.5rem;
}

.wisemed-static-navigation {
  align-self: stretch;
  display: flex;
  flex: 1 1 auto;
  height: 4rem;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

@media (max-width: 1100px) {
  .wisemed-static-brand-text {
    display: none;
  }
}

@media (max-width: 900px) {
  .wisemed-custom-nav-link,
  .wisemed-static-nav-link {
    flex-direction: column;
    gap: 0.1rem;
    padding: 0 0.5rem;
  }

  .wisemed-static-brand img {
    margin-right: 0;
  }
}

@media (max-width: 700px) {
  .wisemed-custom-nav-text,
  .wisemed-static-nav-text {
    display: none;
  }

  .wisemed-custom-nav-link,
  .wisemed-static-nav-link {
    min-width: 2.75rem;
    padding: 0 0.5rem;
  }

  .wisemed-static-brand {
    display: none;
  }

  .wisemed-right-nav-column {
    margin-right: 0.5rem !important;
    width: min(16.5rem, calc(100vw - 1rem));
  }

  .wisemed-right-nav-column .wisemed-static-nav-text,
  body mat-toolbar .wisemed-right-nav-column .toolbar-navigation-button-text,
  .wisemed-angular-right-nav-column .toolbar-navigation-button-text {
    font-size: 0.82rem !important;
  }
}

@media (max-width: 1100px) {
  body.wisemed-static-layout,
  body app-root {
    column-gap: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
  }

  body.wisemed-static-layout > .wisemed-right-nav-column,
  body app-root > .wisemed-right-nav-column {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    margin: 0.75rem 0.75rem 0.75rem 0 !important;
    width: min(16rem, calc(100vw - 1.5rem));
  }

  body.wisemed-static-layout > main,
  body app-root > .content {
    grid-column: 1;
    grid-row: 3;
  }
}
