/* 交易所风格顶栏（首页），与轮播区衔接 */

.exg-nav {
  --exg-bg: #0a0e14;
  --exg-bg2: #121820;
  --exg-line: rgba(255, 255, 255, 0.12);
  --exg-blue: #1e88e5;
  --exg-text: #f0f4f8;
  background: linear-gradient(180deg, var(--exg-bg) 0%, #0d1219 100%);
  color: var(--exg-text);
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  border-bottom: 1px solid var(--exg-line);
}

.exg-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
}

.exg-nav-inner--spread {
  justify-content: flex-end;
}

.exg-nav-row--top {
  border-bottom: 1px solid var(--exg-line);
}

.exg-nav-row--top .exg-nav-inner {
  min-height: 44px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.exg-nav-row--menu .exg-nav-inner {
  min-height: 48px;
}

.exg-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.exg-logo-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 36px;
  max-width: 200px;
  padding: 2px 0;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
}

.exg-logo-mark img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
}

.exg-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.exg-top-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: flex-end;
}

.exg-util {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  font-size: 13px;
}

.exg-util a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  cursor: pointer;
}

.exg-util a:hover {
  color: #fff;
  text-decoration: underline;
}

.exg-sep {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 2px;
  user-select: none;
}

.exg-sep--thin {
  margin: 0 1px;
}

.exg-user-hi {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exg-top-aux {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  white-space: nowrap;
}

.exg-top-aux:hover {
  color: #fff;
  text-decoration: underline;
}

.exg-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  font-size: 13px;
  color: #fff;
  border: 1px solid var(--exg-blue);
  border-radius: 4px;
  text-decoration: none;
  background: rgba(30, 136, 229, 0.15);
  cursor: pointer;
}

.exg-btn-outline:hover {
  background: rgba(30, 136, 229, 0.35);
}

.exg-mainmenu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-content: flex-end;
}

.exg-mainmenu a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
}

.exg-mainmenu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.exg-mainmenu a.exg-navlink.is-active {
  background: rgba(30, 136, 229, 0.32);
  color: #fff;
  border: 1px solid rgba(66, 165, 245, 0.55);
  font-weight: 600;
}

.exg-top-aux.is-active {
  color: #fff !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.exg-btn-outline.is-active {
  background: rgba(30, 136, 229, 0.45) !important;
  border-color: #42a5f5;
  box-shadow: 0 0 0 1px rgba(66, 165, 245, 0.35);
}

.exg-caret {
  font-size: 10px;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .exg-mainmenu {
    justify-content: flex-start;
    width: 100%;
  }
  .exg-nav-inner--spread {
    justify-content: flex-start;
  }
}
