.zctx-nav,
.zctx-nav * {
  box-sizing: border-box;
}

.zctx-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 58px;
  border-bottom: 1px solid rgba(130, 163, 201, .24);
  color: #071b36;
  background: rgba(240, 247, 255, .94);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.zctx-nav a {
  text-decoration: none;
}

.zctx-nav-inner {
  width: min(calc(100% - 48px), 1200px);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.zctx-brand {
  width: 174px;
  display: flex;
  align-items: center;
  flex: 0 0 174px;
  opacity: 1;
}

.zctx-brand:hover {
  opacity: 1;
}

.zctx-brand img {
  width: 138px;
  height: auto;
  display: block;
  object-fit: contain;
}

.zctx-nav-list {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 25px;
  flex: 1;
}

.zctx-nav-item {
  height: 100%;
  display: flex;
  align-items: stretch;
}

.zctx-nav-trigger {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 3px;
  color: #163655;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .18s ease;
}

.zctx-nav-trigger::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: #0878df;
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .18s ease, transform .18s ease;
}

.zctx-nav-trigger:hover,
.zctx-nav-item.is-open .zctx-nav-trigger,
.zctx-nav-item.is-active .zctx-nav-trigger {
  color: #0066cc;
}

.zctx-nav-item.is-open .zctx-nav-trigger::after,
.zctx-nav-item.is-active .zctx-nav-trigger::after {
  opacity: 1;
  transform: scaleX(1);
}

.zctx-nav-search {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  color: #0066cc;
}

.zctx-nav-search svg {
  width: 16px;
  height: 16px;
  transition: transform .18s ease;
}

.zctx-nav-search:hover svg {
  transform: scale(1.08);
}

.zctx-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.zctx-member-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid #bfd5ec;
  border-radius: 999px;
  color: #0066cc;
  background: #f7fbff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.zctx-member-link:hover { border-color: #0066cc; background: #eef6ff; }

.zctx-menu-panel {
  position: absolute;
  top: 58px;
  right: 0;
  left: 0;
  visibility: hidden;
  padding: 34px 24px 38px;
  border-bottom: 1px solid #dbe8f6;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 24px 48px rgba(15, 48, 84, .12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: visibility .2s ease, opacity .2s ease, transform .2s ease;
}

.zctx-nav-item.is-open .zctx-menu-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.zctx-menu-inner {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 1.05fr;
  gap: 52px;
  margin: 0 auto;
  text-align: left;
}

.zctx-menu-kicker {
  margin: 0 0 9px;
  color: #6f8194;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.zctx-menu-title {
  margin: 0 0 11px;
  color: #071b36;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.zctx-menu-summary {
  max-width: 310px;
  margin: 0;
  color: #66788b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
}

.zctx-menu-column-title {
  margin: 2px 0 14px;
  color: #8291a2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.zctx-menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zctx-menu-links li {
  margin: 0;
  padding: 0;
}

.zctx-menu-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  color: #163655;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  transition: color .18s ease, transform .18s ease;
}

.zctx-menu-links a::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  margin-top: 8px;
  border-radius: 50%;
  content: "";
  background: #60a5fa;
}

.zctx-menu-links a:hover {
  color: #0066cc;
  transform: translateX(2px);
}

.zctx-action-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
  border: 1px solid #cfe4fb;
  border-radius: 18px;
  background: linear-gradient(145deg, #f3f9ff, #e7f3ff);
}

.zctx-action-card strong {
  display: block;
  margin-bottom: 7px;
  color: #0b3765;
  font-size: 15px;
  font-weight: 700;
}

.zctx-action-card p {
  margin: 0;
  color: #65809b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}

.zctx-action-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.zctx-action-primary,
.zctx-action-secondary {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.zctx-action-primary {
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: #0878df;
  box-shadow: 0 8px 18px rgba(8, 120, 223, .2);
  transition: background .18s ease, transform .18s ease;
}

.zctx-action-primary:hover {
  color: #fff;
  background: #0066cc;
  transform: translateY(-1px);
}

.zctx-action-secondary {
  color: #0066cc;
}

.zctx-action-secondary:hover {
  color: #004f9e;
}

.zctx-mobile-links {
  display: none;
}

@media (max-width: 1120px) {
  .zctx-nav-inner {
    width: min(calc(100% - 32px), 1200px);
    gap: 14px;
  }

  .zctx-brand {
    width: 150px;
    flex-basis: 150px;
  }

  .zctx-brand img {
    width: 126px;
  }

  .zctx-nav-list {
    gap: 16px;
  }

  .zctx-nav-trigger {
    font-size: 12px;
  }

  .zctx-menu-inner {
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .zctx-nav {
    height: auto;
  }

  .zctx-nav-inner {
    width: calc(100% - 24px);
    height: 56px;
  }

  .zctx-nav-list {
    display: none;
  }

  .zctx-menu-panel {
    display: none;
  }

  .zctx-brand {
    width: auto;
    flex-basis: auto;
  }

  .zctx-brand img {
    width: 124px;
  }

  .zctx-nav-actions {
    margin-left: auto;
  }

  .zctx-mobile-links {
    width: calc(100% - 24px);
    height: 40px;
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0 auto;
    overflow-x: auto;
    border-top: 1px solid rgba(130, 163, 201, .18);
    scrollbar-width: none;
  }

  .zctx-mobile-links::-webkit-scrollbar {
    display: none;
  }

  .zctx-mobile-links a {
    height: 100%;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: #42617f;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
  }

  .zctx-mobile-links a.is-active {
    color: #0066cc;
    font-weight: 700;
  }
}

@media (max-width: 420px) {
  .zctx-member-link {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .zctx-nav-actions {
    gap: 4px;
  }
}
