/* 软件市场二级导航：左侧栏（与工单/文档一致） */
.market-body {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 0.25rem;
}
.market-side {
  position: sticky;
  top: 5.5rem;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 10px;
  padding: 0.85rem 0.65rem 0.75rem;
  color: #1a1a1a;
}
.market-side__title {
  padding: 0 0.55rem 0.65rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 1px solid #eceef2;
}
.market-main { min-width: 0; }
.market-tabs--side {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  justify-content: stretch;
}
.market-tabs--side .market-tabs__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #646a73;
  background: transparent;
  text-shadow: none;
}
.market-tabs--side .market-tabs__item:hover {
  color: #148f83;
  background: #f3f5f8;
}
.market-tabs--side .market-tabs__item.is-active {
  background: rgba(26, 168, 154, 0.12);
  color: #148f83;
  font-weight: 600;
}
.market-tabs--side .market-tabs__item.is-active::after {
  display: none;
}
@media (max-width: 960px) {
  .market-body { grid-template-columns: 1fr; }
  .market-side { position: static; }
  .market-tabs--side {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .market-tabs--side .market-tabs__item { width: auto; }
}

/* 软件市场二级导航（市场 / 图标 / 任务共用） */
.market-banner {
  position: relative;
  padding: 2.25rem 0 2rem;
  background-color: #0b3d6e;
  background-image: image-set(
    url("/static/img/market-hero.webp") type("image/webp"),
    url("/static/img/market-hero.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  color: #fff;
}

.market-banner--compact {
  padding: 1.35rem 0 1.15rem;
  margin-bottom: 0.5rem;
}

.market-banner__inner {
  width: min(100% - 1.25rem, var(--max, 1180px));
  margin: 0 auto;
}

.market-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.35rem 1.75rem;
  margin-bottom: 0;
}

.market-banner .market-tabs {
  margin-bottom: 1.5rem;
}

.market-banner--compact .market-tabs {
  margin-bottom: 0;
}

.market-tabs button,
.market-tabs__item {
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  padding: 0.35rem 0.1rem 0.65rem;
  position: relative;
  transition: color 0.2s;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  line-height: 1.2;
  font-family: inherit;
}

.market-tabs button.is-active,
.market-tabs__item.is-active {
  color: #fff;
  font-weight: 700;
}

.market-tabs button.is-active::after,
.market-tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 2rem;
  height: 3px;
  background: #5ee0d0;
  border-radius: 2px;
}

@media (max-width: 720px) {
  .market-tabs {
    gap: 0.85rem 1.1rem;
  }
  .market-tabs button,
  .market-tabs__item {
    font-size: 0.95rem;
  }
}
