/* 顶部标签页公共样式 */
.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;
}
.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;
}

.image-hover-preview-trigger {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

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

.image-hover-preview-popover .ant-popover-inner-content {
  padding: 0;
  line-height: 0;
}

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

.image-hover-preview {
  box-sizing: border-box;
  width: 136px;
  height: 136px;
  padding: 8px;
  background: #2a2a2d;
}

.image-hover-preview-image {
  display: block;
  width: 120px;
  height: 120px;
  box-sizing: border-box;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.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;
}
.list-name-tooltip .ant-tooltip-inner,
.product-name-tooltip .ant-tooltip-inner {
  max-width: 384px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #e5e5e5;
  color: #171717;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  white-space: normal;
  word-break: break-word;
}

.list-name-tooltip .ant-tooltip-arrow::before,
.list-name-tooltip .ant-tooltip-arrow-content,
.product-name-tooltip .ant-tooltip-arrow::before,
.product-name-tooltip .ant-tooltip-arrow-content {
  background: #e5e5e5 !important;
}

/* FreeTips 公共样式 */
.free-tips {
  height: 32px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.free-tips img {
  height: 100%;
  width: auto;
  display: block;
  max-width: 100%;
}

.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;
}
.shop {
  background-color: transparent;
  min-height: 100vh;
  height: auto;
  overflow: visible;
}

/* .shop-content styles moved to .common-page-content in common/layout.css */

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

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

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

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

.shop-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);
}

.shop-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;
}

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

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

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

.shop-table-toolbar .export-btn {
  width: 110px;
  padding: 5px 16px;
  line-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.shop .category-page {
  width: 100%;
  min-width: 0;
  align-items: flex-start;
}

.shop .category-sidebar {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  position: sticky;
  top: calc(var(--layout-header-height) + var(--layout-content-gap));
  align-self: flex-start;
  min-height: 0;
  height: auto;
  max-height: calc(100vh - var(--layout-header-height) - var(--layout-content-gap) * 2);
  overflow: auto;
}

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

.shop-table-card .shop-table-head,
.shop-table-card .shop-table-row,
.shop-table-card .shop-table-state {
  padding-right: 12px;
}

.shop-table-card.is-cn .shop-table-head,
.shop-table-card.is-cn .shop-table-row {
  grid-template-columns:
    90px minmax(320px, 2.6fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(140px, 1.1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr);
  min-width: 1630px;
  width: max(100%, 1630px);
}

.shop-table-card.is-cn .shop-table-state,
.shop-table-card.is-cn .shop-table-loading-overlay {
  min-width: 1612px;
}

.shop-table-card.is-cn-brand .shop-table-head,
.shop-table-card.is-cn-brand .shop-table-row {
  grid-template-columns:
    90px minmax(340px, 2.6fr) minmax(140px, 1.1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr);
  min-width: 1410px;
  width: max(100%, 1410px);
}

.shop-table-card.is-cn-brand .shop-table-state,
.shop-table-card.is-cn-brand .shop-table-loading-overlay {
  min-width: 1392px;
}

.shop-table-card.is-cn-spu .shop-table-head,
.shop-table-card.is-cn-spu .shop-table-row {
  grid-template-columns:
    90px minmax(360px, 2.8fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1.1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(130px, 1.1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(160px, 1.2fr);
  min-width: 2360px;
  width: max(100%, 2360px);
}

.shop-table-card.is-cn-spu .shop-table-state,
.shop-table-card.is-cn-spu .shop-table-loading-overlay {
  min-width: 2342px;
}

.shop-table-head,
.shop-table-row {
  display: grid;
  grid-template-columns:
    56px minmax(252px, 1.6fr) minmax(121px, 1fr) minmax(196px, 1.6fr) minmax(111px, 1fr) minmax(132px, 1fr) minmax(86px, 0.8fr) minmax(104px, 1fr) minmax(104px, 1fr) minmax(111px, 1fr) minmax(111px, 1fr) minmax(80px, 0.8fr) minmax(120px, 1fr) minmax(120px, 1fr);
  min-width: 2000px;
  width: max(100%, 2000px);
  align-items: center;
  gap: var(--shop-table-col-gap);
  font-size: 12px;
  line-height: 20px;
}

.shop-table-head {
  background: #3c3c3c;
  height: 44px;
  border-radius: 4px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 4;
}

.shop-table-head .ant-table-cell::before {
  display: none !important;
}

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

.shop-table-row-clickable {
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-table-row:hover,
.shop-table-row-clickable: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;
}

.shop-table-head-cell {
  color: var(--color-text-1);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
}

.shop-table-head-cell.is-end {
  justify-content: flex-end;
  text-align: right;
  padding-right: 16px;
}

.shop-table-head-cell.is-products {
  padding-left: 16px;
}

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

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

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

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

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

.shop-table-card.is-cn .shop-table-head-cell.is-seq,
.shop-table-card.is-cn .shop-seq-cell,
.shop-table-card.is-cn-brand .shop-table-head-cell.is-seq,
.shop-table-card.is-cn-brand .shop-seq-cell,
.shop-table-card.is-cn-spu .shop-table-head-cell.is-seq,
.shop-table-card.is-cn-spu .shop-seq-cell {
  left: 0;
}

.shop-table-card.is-cn .shop-table-head-cell.is-shop-info,
.shop-table-card.is-cn .shop-store-cell {
  left: 98px;
}

.shop-table-card.is-cn-brand .shop-table-head-cell.is-shop-info,
.shop-table-card.is-cn-brand .shop-store-cell {
  left: 98px;
}

.shop-table-card.is-cn-spu .shop-table-head-cell.is-shop-info,
.shop-table-card.is-cn-spu .shop-store-cell {
  left: 98px;
}

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

.shop-table-head-cell.is-shop-info {
  box-sizing: border-box;
}

.shop-table-card.is-cn .shop-table-head-cell.is-shop-info {
  padding-left: 0;
}

.shop-table-card.is-cn-spu .shop-table-head-cell.is-shop-info {
  padding-left: 0;
}

.shop-table-head .shop-table-head-cell.is-sortable button {
  cursor: pointer;
}

.shop-store-cell {
  display: flex;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  cursor: pointer;
}

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

.shop-rank-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.shop-rank-number {
  min-width: 20px;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  color: var(--color-text-1);
}

.shop-store-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 4px;
  flex: none;
  line-height: 0;
}

.shop-store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-store-name {
  width: 200px;
  max-width: 200px;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-text-1);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-store-cell:hover .shop-store-name {
  color: var(--color-primary);
}

.shop-has-detail-indicator {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  margin-left: 4px;
}

.shop-store-cell:hover .shop-has-detail-indicator {
  color: #E54A94;
}

.shop-store-info {
  width: 200px;
  max-width: 200px;
  flex: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.shop-store-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.shop-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 20px;
  color: #ffffff;
  white-space: nowrap;
}

.shop-store-badge.is-brand {
  background: rgba(229, 74, 148, 0.9);
}

.shop-store-badge.is-global {
  background: rgba(93, 111, 255, 0.9);
}

.shop-store-category {
  font-size: 12px;
  line-height: 20px;
  color: var(--color-text-3);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-store-type {
  font-size: 12px;
  line-height: 20px;
  color: var(--color-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
}

.shop-product-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.shop-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-sort-actions {
  display: inline-flex;
  flex-direction: column;
  margin-left: 2px;
  line-height: 1;
}

.shop-sort-btn {
  width: 12px;
  height: 10px;
  border: 0;
  background: transparent;
  color: #b7bdc8;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.shop-sort-btn.is-active {
  color: var(--color-primary);
}

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

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

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

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

.shop-pagination-wrap {
  margin-top: 0;
  display: flex;
  justify-content: flex-end;
}

.shop-table-value {
  text-align: right;
  color: var(--color-text-1);
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  padding-right: 16px;
}

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