.btn-primary {
  background: linear-gradient(to bottom, #0086ff, #005eff);
  color: #fff;
}

.nav-pills .nav-link.active {
  background: linear-gradient(to bottom, #0086ff, #005eff);
}

.menu-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.menu-card .card-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0086ff;
}

.tree-item-wrapper.indent-1 .nav-link,
.tree-item-wrapper.indent-2 .nav-link,
.tree-item-wrapper.indent-3 .nav-link {
  font-size: 13px;
  padding: 10px 8px;
}

.nav-item {
  text-align: left;
  margin-bottom: 0;
  border-bottom: 1px solid #f0f0f0;
}

.nav-item:last-child {
  border-bottom: none;
}

.nav-link {
  padding: 10px 8px;
  display: block;
  width: 100%;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  border-radius: 4px;
  margin: 2px 0;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item-content {
  position: relative;
  width: 100%;
  padding-right: 30px;
  box-sizing: border-box;
}

.tree-toggle-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
  font-size: 12px;
  color: #999;
  user-select: none;
  transition: color 0.3s;
}

.tree-toggle-icon:hover {
  color: #0086ff;
}

.nav-link:hover {
  background: #f5f5f5;
  color: #0086ff;
}

.nav-link.active {
  background: linear-gradient(to bottom, #0086ff, #005eff);
  color: #fff;
}

.nav-link-icon {
  margin-right: 8px;
  font-size: 12px;
  color: #999;
}

.nav-link.active .nav-link-icon {
  color: #fff;
}

.tree-item-wrapper {
  position: relative;
}

.tree-item-wrapper.indent-1 {
  padding-left: 20px !important;
}

.tree-item-wrapper.indent-2 {
  padding-left: 40px !important;
}

.tree-item-wrapper.indent-3 {
  padding-left: 60px !important;
}

.tree-children {
  display: none;
}

.tree-children.show {
  display: block;
}

.apply-btn {
  background: linear-gradient(to bottom, #0086ff, #005eff);
  color: #fff;
  border: none;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 14px;
}

.apply-btn:hover {
  opacity: 0.9;
  color: #fff;
}

.menu-card-sticky {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
}

.menu-card-sticky::-webkit-scrollbar {
  width: 6px;
}

.menu-card-sticky::-webkit-scrollbar-thumb {
  background: #c8d8ef;
  border-radius: 6px;
}

.menu-card-sticky::-webkit-scrollbar-track {
  background: #f3f7fc;
  border-radius: 6px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
  background: #fff;
  line-height: 1.5;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.tag-item:hover {
  border-color: #0086ff;
  color: #0086ff;
}

.tag-item.active {
  background: linear-gradient(to bottom, #0086ff, #005eff);
  color: #fff;
  border-color: #0086ff;
}

.tag-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.tag-group-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.tag-group-clear {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #7c7f96;
  padding: 0;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.tag-group-clear:hover {
  color: #0086ff;
  background: #eef5ff;
}

.tag-group-clear svg {
  width: 18px;
  height: 18px;
  display: block;
}

.channel-tag-group {
  background: #fdfdfd;
  border-radius: 4px;
  margin: 0 8px 8px;
}

.third-party-open-item {
  min-height: 170px;
  width: 100%;
}

.third-party-open-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 22px;
  min-height: 44px;
  max-height: 44px;
}

.third-party-open-desc {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 22px;
  min-height: 44px;
  max-height: 44px;
}

.third-party-open-tags {
  height: 28px;
  overflow: hidden;
}

.third-party-open-item .media-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.third-party-open-item .small.text-muted {
  margin-top: auto;
}

#thirdPartyOpenList > li {
  display: flex;
}

.media-item {
  padding-bottom: 10px;
}

.media-item.clickable {
  cursor: pointer;
}

.media-item.clickable:hover {
  background: #f8fbff;
}

.deadline-register-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.channel-left-col {
  width: 280px;
  max-width: 280px;
  flex: 0 0 auto;
}

.channel-left-tag-col {
    max-width: 420px;
    flex: 0 0 auto;
}

.channel-menu-article-mode .tree-item-wrapper.indent-4 {
  padding-left: 80px !important;
}

.channel-menu-article-mode .tree-item-wrapper.indent-5 {
  padding-left: 100px !important;
}

.channel-menu-article-mode .tree-item-wrapper.indent-6 {
  padding-left: 120px !important;
}

.article-menu-item .nav-link {
  font-size: 12px;
  color: #555;
}

.res-article-list .res-article-meta {
  display: flex;
  justify-content: right;
  align-items: center;
}