.yc-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid #e7ebf0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

.yc-header .container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.yc-header-bar {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 20px;
}

.yc-logo {
  display: flex;
  align-items: center;
  flex: none;
}

.yc-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.yc-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.yc-menu,
.yc-account {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yc-menu li,
.yc-account li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yc-menu a {
  display: block;
  position: relative;
  padding: 8px 14px;
  color: #2b2b2b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 8px;
  text-decoration: none;
}

.yc-menu a:hover,
.yc-menu a.is-active {
  color: #e23b3b;
  text-decoration: none;
}

.yc-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #e23b3b;
}

.yc-account {
  gap: 8px;
  margin-left: 12px;
}

.yc-account .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  background: #fff;
  color: #1c1c1c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.yc-account .nav-link:hover {
  border-color: #1c1c1c;
  color: #1c1c1c;
  text-decoration: none;
}

.yc-account .nav-item:last-child .nav-link {
  background: #1c1c1c;
  border-color: #1c1c1c;
  color: #fff;
}

.yc-account .nav-item:last-child .nav-link:hover {
  background: #e23b3b;
  border-color: #e23b3b;
  color: #fff;
}

.yc-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.yc-nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #1c1c1c;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.yc-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.yc-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.yc-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
  .yc-header-bar {
    min-height: 60px;
  }

  .yc-logo img {
    height: 34px;
  }

  .yc-nav-toggle {
    display: inline-flex;
  }

  .yc-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 8px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #e7ebf0;
    box-shadow: 0 16px 28px rgba(20, 24, 32, 0.08);
  }

  .yc-nav.is-open {
    display: flex;
  }

  .yc-menu,
  .yc-account {
    flex-direction: column;
    align-items: stretch;
  }

  .yc-menu a {
    padding: 12px 8px;
  }

  .yc-menu a.is-active::after {
    left: 8px;
    right: auto;
    width: 28px;
    bottom: 8px;
  }

  .yc-account {
    margin: 8px 0 0;
    padding-top: 12px;
    border-top: 1px solid #eef1f4;
    gap: 8px;
  }

  .yc-account .nav-link {
    width: 100%;
  }
}
