yiqicheng-header {
  position: relative;
  z-index: 1000;
  display: block;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

yiqicheng-header *,
yiqicheng-header *::before,
yiqicheng-header *::after {
  box-sizing: border-box;
}

yiqicheng-header .yqc-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: block;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

yiqicheng-header .yqc-nav-shell {
  width: min(1200px, calc(100% - 48px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

yiqicheng-header .yqc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #0866e8;
  font-size: 24px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

yiqicheng-header .yqc-brand:hover {
  opacity: 0.82;
}

yiqicheng-header .yqc-brand:focus-visible {
  border-radius: 6px;
  outline: 2px solid rgba(8, 102, 232, 0.55);
  outline-offset: 5px;
}

yiqicheng-header .yqc-brand-icon {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: cover;
  flex: 0 0 36px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(18, 185, 145, 0.22);
}

yiqicheng-header .yqc-brand-name {
  white-space: nowrap;
}

yiqicheng-header .yqc-nav {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

yiqicheng-header .yqc-nav > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

yiqicheng-header .yqc-nav a {
  color: #333;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

yiqicheng-header .yqc-nav > li > a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

yiqicheng-header .yqc-nav > li > a:hover,
yiqicheng-header .yqc-nav > li > a[aria-current="page"] {
  color: #0866e8;
}

yiqicheng-header .yqc-nav-toggle {
  display: none;
}

@media (max-width: 820px) {
  yiqicheng-header .yqc-header,
  yiqicheng-header .yqc-nav-shell {
    height: 68px;
  }

  yiqicheng-header .yqc-nav-shell {
    width: min(100% - 32px, 1200px);
  }

  yiqicheng-header .yqc-brand {
    font-size: 21px;
  }

  yiqicheng-header .yqc-brand-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  yiqicheng-header .yqc-nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(8, 102, 232, 0.16);
    border-radius: 8px;
    background: #f5f9ff;
    color: #0866e8;
    cursor: pointer;
  }

  yiqicheng-header .yqc-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
  }

  yiqicheng-header .yqc-nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  yiqicheng-header .yqc-nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  yiqicheng-header .yqc-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    height: auto;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  yiqicheng-header .yqc-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  yiqicheng-header .yqc-nav > li {
    display: block;
    height: auto;
  }

  yiqicheng-header .yqc-nav > li > a {
    width: 100%;
    min-height: 46px;
    height: auto;
    padding: 0 14px;
    justify-content: space-between;
    border-radius: 6px;
  }

  yiqicheng-header .yqc-nav > li > a:hover,
  yiqicheng-header .yqc-nav > li > a[aria-current="page"] {
    color: #0866e8;
    background: #f5f9ff;
  }
}
