/* 顶部标签页公共样式 */
.top-tabs {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.top-tabs-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 0 6px;
  background: transparent;
  color: var(--color-text-2);
  font-size: var(--font-size-lg);
  line-height: 26px;
  font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.top-tabs-chip:hover:not(.is-disabled) {
  color: var(--color-text-1);
}

.top-tabs-chip.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.top-tabs-chip.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.top-tabs-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* 为各页面预留的样式覆盖空间 */
.top-tabs.product-top-tabs .top-tabs-chip {
  /* product页面特定样式 */
}

.top-tabs.creator-top-tabs .top-tabs-chip {
  /* creator页面特定样式 */
}

.top-tabs.shop-top-tabs .top-tabs-chip {
  /* shop页面特定样式 */
}

.top-tabs.video-top-tabs .top-tabs-chip {
  /* video页面特定样式 */
}

.top-tabs.live-top-tabs .top-tabs-chip {
  /* live页面特定样式 */
}

.top-tabs.tools-top-tabs .top-tabs-chip {
  /* tools页面特定样式 */
}

.top-tabs.media-top-tabs .top-tabs-chip {
  /* media页面特定样式 */
}

.top-tabs.category-top-tabs .top-tabs-chip {
  /* category页面特定样式 */
}
.search-area {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.search-input-wrap {
  width: 320px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-fill-button);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--color-text-1);
  font-size: 14px;
}

.search-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-input-wrap input:focus {
  box-shadow: none;
}

.search-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  flex: 0 0 20px;
  opacity: 0.9;
}

.export-btn {
  height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 5px 16px;
  font-size: 14px;
  line-height: 22px;
  color: #f5fbff;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(90deg, #f145ab 0%, #8d42f7 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.export-btn-icon {
  width: 14px;
  height: 14px;
  flex: none;
  display: block;
}

.page-content-with-top-filter {
  display: flex;
  flex-direction: column;
  height: auto;
  width: 100%;
  min-width: 0;
}

.page-content-main>main {
  position: relative;
  background: var(--color-card-fill);
  border-radius: var(--layout-card-radius);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(100px);
}

.page-content-main>main::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--color-card-stroke);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.page-content-main {
  flex: 1 0 auto;
  min-width: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: var(--layout-content-gap);
  overflow: visible;
  padding: 0;
}

.page-content-main>main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: var(--layout-card-padding);
}

/* 移除旧的category-page样式冲突 */
.page-content-with-top-filter .category-page {
  margin: 0;
  min-width: auto;
  display: block;
}

.page-content-with-top-filter .common-page-content {
  height: auto;
  min-height: auto;
  padding: 0;
}
.quota-mask-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  background: rgba(26, 26, 26, 0.4);
  border-radius: 8px;
}

.quota-mask-content {
  text-align: center;
  color: #fff;
  padding: 24px;
}

.quota-mask-content .lock-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: #fff;
}

.quota-mask-content .mask-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 24px;
  color: #fff;
}

.quota-mask-content .mask-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.quota-mask-content .action-btn {
  height: 32px;
  padding: 0 24px;
  border-radius: 4px;
  font-size: 14px;
  color: #fff;
}
.product-preview-popover-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.product-preview-popover-trigger img {
  display: block;
}

.product-preview-popover .ant-popover-inner {
  padding: 0;
  background: #2a2a2d;
  border-radius: 12px;
  overflow: hidden;
}

.product-preview-popover .ant-popover-inner-content {
  padding: 0;
}

.product-preview-popover .ant-popover-arrow {
  display: none;
}

.product-preview-popover-card {
  box-sizing: border-box;
  width: 232px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #2a2a2d;
}

.product-preview-popover-brand {
  width: 200px;
  height: 14px;
  margin-bottom: 0;
  color: var(--color-text-1);
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-preview-popover-body {
  width: 200px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-text-1);
}

.product-preview-popover-image-wrap {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.product-preview-popover-loading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-preview-popover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-preview-popover-title {
  width: 200px;
  height: 45px;
  min-height: 45px;
  color: var(--color-text-1);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.product-preview-popover-footer {
  display: flex;
  align-items: center;
  width: 200px;
  height: 16px;
  gap: 12px;
  margin-top: 0;
}

.product-preview-popover-footer.is-price-range {
  flex-direction: row;
  align-items: center;
}

.product-preview-popover-price {
  flex: 1;
  min-width: 0;
  color: var(--color-text-1);
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-preview-popover-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0;
  width: auto;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-primary);
  white-space: nowrap;
}

.product-preview-popover-link .anticon {
  display: none;
}

.common-data-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 100%;
  width: 100%;
  flex: 1;
}

.common-data-empty-text {
  font-size: 14px;
  color: #ffffff33;
}
.common-tabs-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.common-table-loading-overlay {
  position: absolute;
  inset: 0;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(66, 66, 66, 0.5);
  z-index: 2;
}
.common-page-content {
  padding: 0 16px 40px 0;
  box-sizing: border-box;
  flex: 1;
  width: 100%;
  min-width: 1100px;
  overflow: visible;
  height: auto;
}

.common-layout {
  background: transparent;
}
.category-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--layout-content-gap);
}

.category-page-content {
  --table-row-height: 68px;
}

.category-page-content .page-content-main>main {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.category-page-content .page-content-main>main::before {
  content: none;
  display: none;
}

.category-top-tabs {
  margin-bottom: 0;
}

.category-search-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  margin-bottom: 12px;
}

.category-search-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.category-search-title {
  font-size: 13px;
  color: #1f2a37;
  font-weight: 600;
}

.category-search-input {
  flex: 1;
}

.category-search-icon {
  font-size: 12px;
  color: #9aa3af;
}

.category-search-actions {
  display: flex;
  gap: 8px;
}

.category-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef6ff;
  border: 1px solid #cfe1ff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #1f2a37;
}

.category-table-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: var(--layout-card-padding);
  background: var(--color-card-fill);
  border-radius: var(--layout-card-radius);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(100px);
}

.category-table-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--color-card-stroke);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.category-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
}

.category-table-title {
  color: var(--color-text-1);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.category-table-toolbar .search-area {
  margin-left: 0;
}

.category-table-toolbar .export-btn {
  width: 110px;
  padding: 5px 16px;
  line-height: 22px;
}

.category-table-card {
  --category-table-col-gap: 8px;
  position: relative;
  border-radius: 8px;
  overflow-x: auto;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: 1px solid var(--color-border-light);
}

.category-table-head,
.category-table-row,
.category-table-state {
  padding-left: 10px;
  padding-right: 12px;
}

.category-table-head,
.category-table-row {
  display: grid;
  grid-template-columns:
    56px 200px minmax(184px, 1.6fr) minmax(121px, 1fr) minmax(112px, 1fr) minmax(116px, 1fr) minmax(80px, 0.8fr) minmax(120px, 1fr) minmax(80px, 0.8fr) minmax(157px, 1.1fr) minmax(162px, 1.1fr) minmax(117px, 1fr) minmax(160px, 1.1fr) minmax(120px, 1fr);
  min-width: 2100px;
  align-items: center;
  justify-items: start;
  gap: var(--category-table-col-gap);
  font-size: 12px;
  line-height: 20px;
}

.category-table-head>*,
.category-table-row>* {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  box-sizing: border-box;
}

.category-table-head {
  background: #3c3c3c;
  color: #b1b1b1;
  border-radius: 8px;
  height: 48px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-weight: 600;
}

.category-table-row {
  padding-top: 0;
  padding-bottom: 0;
  color: var(--color-text-1);
  min-height: 68px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color 0.2s ease;
}

.category-table-row:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.category-table-head-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.category-table-head-cell.is-end {
  justify-content: flex-end;
  text-align: right;
}

.category-table-head-cell.is-seq,
.category-seq-cell {
  justify-content: center;
  text-align: center;
}

.category-table-head-cell.is-sticky,
.category-seq-cell,
.category-info-cell {
  position: sticky;
  z-index: 2;
  align-self: stretch;
  height: auto;
}

.category-table-head-cell.is-sticky {
  z-index: 5;
}

.category-table-head-cell.is-seq,
.category-seq-cell {
  left: 0;
}

.category-table-head-cell.is-category-info,
.category-info-cell {
  left: 64px;
}

.category-table-head-cell.is-seq::after,
.category-table-head-cell.is-category-info::after,
.category-seq-cell::after,
.category-info-cell::after {
  content: "";
  position: absolute;
  top: 0;
  right: calc(-1 * var(--category-table-col-gap));
  width: var(--category-table-col-gap);
  height: 100%;
  background: inherit;
  pointer-events: none;
}

.category-seq-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
}

.category-rank-number {
  min-width: 20px;
  text-align: center;
  font-weight: 400;
}

.category-info-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  gap: 4px;
}

.category-name {
  color: var(--color-text-1);
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  width: 200px;
  max-width: 200px;
  display: flex;
  align-items: center;
  height: 100%;
  transition: color 0.2s;
}

.category-table-row:hover .category-name,
.category-info-cell:hover .category-name {
  color: var(--color-primary);
}

.category-id {
  font-size: 11px;
  color: #9ca3af;
}

.category-product-cell {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.category-product-img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
}

.category-trend-cell {
  width: 100%;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.category-table-value {
  text-align: right;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-text-1);
}

.category-table-value.positive {
  color: #f53f3f;
  font-weight: 400;
}

.category-table-value.negative {
  color: #00b42a;
  font-weight: 400;
}

.category-table-state {
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-table-state--empty {
  color: #9aa3af;
}

.category-table-body {
  position: relative;
  min-height: 500px;
}

.category-pagination-wrap {
  display: flex;
  justify-content: flex-end;
  padding: 0;
}

.category-pagination {
  padding: 0;
}

/* Mock & Quota Mask Styles */
.category-table-rows-container {
  position: relative;
}

.category-table-row.is-mock {
  filter: blur(4px);
  pointer-events: none;
  opacity: 0.6;
}

.category-mock-rows-wrapper {
  position: relative;
}

.category-mock-mask-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  border-radius: 0 0 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-products {
  display: flex;
  gap: 12px;
}

.mock-product-img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.mock-trend {
  width: 100px;
  height: 36px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  border-radius: 4px;
}

.layout-with-sidenav .category-page-content {
  --table-row-height: 68px;
}

.layout-with-sidenav .category-table-head,
.layout-with-sidenav .category-table-head-cell {
  font-size: 12px;
  line-height: 20px;
}

.layout-with-sidenav .category-table-panel .category-pagination-wrap {
  margin-top: 0;
}

.layout-with-sidenav .category-name {
  color: var(--color-text-1);
}

.layout-with-sidenav .category-table-row:hover .category-name,
.layout-with-sidenav .category-info-cell:hover .category-name {
  color: var(--color-primary);
}

