.list-thumb-image {
  position: relative;
  background: var(--color-fill-muted);
  overflow: hidden;
}

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

.list-thumb-image img.is-loading {
  opacity: 0;
}

.list-thumb-image-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-3);
  pointer-events: none;
}

.list-thumb-image-loading .anticon {
  font-size: 12px;
}

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

.category-page {
  width: 100%;
  min-width: 1100px;
  margin: 18px auto 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.filter-sidebar {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  background: #000;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  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;
}

.filter-sidebar-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 18px;
  margin-bottom: 12px;
}

/* 横向布局样式 */
.filter-sidebar-group.is-horizontal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-sidebar-group.is-horizontal .filter-sidebar-label {
  margin-bottom: 0;
  width: auto;
  flex-shrink: 0;
}

.sidebar-item-anchor--horizontal {
  flex: 1;
  min-width: 0;
}

.filter-sidebar-horizontal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.filter-sidebar-horizontal-row .filter-sidebar-value-box {
  flex: 1;
  min-width: 0;
}

.filter-sidebar-horizontal-row .filter-sidebar-clear {
  flex-shrink: 0;
}

.filter-sidebar-group.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.filter-sidebar-label-tag {
  margin-inline-start: 6px;
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
  font-size: 12px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.filter-sidebar-group--category {
  cursor: pointer;
}

.filter-sidebar-label {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.filter-sidebar-label-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-sidebar-clear {
  color: #6eb2ff;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.8;
}

.filter-sidebar-clear:hover {
  opacity: 1;
}

.filter-sidebar-value-box {
  width: 100%;
  min-height: 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5714285714285714;
  background-image: none;
  border: 0;
  border-radius: 0;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-sidebar-value-box:hover {
  /* No hover effect needed for this style */
}

.filter-sidebar-value-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.filter-sidebar-date-select {
  width: 100%;
}

.filter-sidebar-date-select .ant-select-selector {
  border-radius: 0 !important;
  border: none !important;
  border-left: 2px solid #1677ff !important;
  box-shadow: none !important;
  font-size: 14px;
  background: #0f0f10 !important;
  padding-left: 8px !important;
}

.filter-sidebar-date-select .ant-select-selection-item,
.filter-sidebar-date-select .ant-select-selection-placeholder,
.filter-sidebar-date-select .ant-select-arrow {
  color: rgba(255, 255, 255, 0.88) !important;
}

.filter-sidebar-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
  margin: 8px 0;
}

.filter-sidebar-item {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-sidebar-clear-btn {
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: #6eb2ff;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
}

.filter-sidebar-clear-btn:hover {
  text-decoration: none;
}

.filter-sidebar-category-value {
  width: 100%;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.filter-sidebar-category-value.is-placeholder {
  color: rgba(245, 251, 255, 0.45);
}

.filter-sidebar-category-value.is-empty {
  height: 0;
  min-height: 0;
  margin-top: 0;
  border-left: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.filter-sidebar-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}

.filter-sidebar-category-row-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-sidebar-category-row-remove {
  width: 16px;
  height: 16px;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 16px;
}

.filter-sidebar-item-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.filter-sidebar-footer {
  position: absolute;
  bottom: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.filter-sidebar-btn {
  min-width: 74px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #141416;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  cursor: pointer;
  padding: 0 12px;
  transition: all 0.2s ease;
}

.filter-sidebar-btn--save {
  border-color: #4d8dff;
  background: rgba(77, 141, 255, 0.15);
  color: #9bc2ff;
}

.filter-sidebar-btn--save.is-saved {
  border-color: #6ccf8b;
  background: rgba(108, 207, 139, 0.16);
  color: #9de3b4;
}

.filter-sidebar-btn--reset:active {
  transform: translateY(1px);
  background: #202023;
  border-color: rgba(255, 255, 255, 0.38);
}

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

.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-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 12px;
  color: #6b7280;
}

.category-filter-label {
  color: #9aa3af;
}

.category-filter-tag {
  background: #eef2f7;
  border-radius: 12px;
  padding: 2px 8px;
  color: #1f2a37;
}

.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-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.category-table-head {
  background: #f6f8fb;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
}

.category-table-rank {
  font-weight: 600;
}

.category-product-cell {
  display: flex;
  gap: 6px;
}

.category-product-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #e5e7eb;
}

.category-table-value.is-link {
  color: #1677ff;
  font-weight: 600;
}

.category-sparkline {
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(90deg, #dbeafe, #93c5fd);
}

.category-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: #1f2a37;
}

.category-lock-icon {
  font-size: 24px;
}

.category-lock-text {
  font-size: 16px;
  font-weight: 600;
}

.product-category-popover .ant-popover-inner {
  padding: 10px;
}

.category-selector-popover {
  width: 560px;
}

.category-selector-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.category-selector-item.is-active {
  background: #e6f4ff;
}

.category-selector-item-arrow {
  color: #a8adb6;
  font-size: 12px;
}

.category-selector-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* 横向标签展示类目 */
.filter-sidebar-category-row-container {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
  min-height: 22px;
  overflow: hidden;
  white-space: nowrap;
}

.filter-sidebar-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.filter-sidebar-category-tag-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 20px;
}

.filter-sidebar-category-tag-more {
  font-size: 12px;
  padding: 0 6px;
  height: 20px;
  border-radius: 4px;
  line-height: 20px;
  flex-shrink: 0;
}
.tools {
  background-color: transparent;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.tools-main {
  flex: 1;
  min-width: 0;
}

.tools-page {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tools-workbench-module {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tools-combo-module {
  width: 100%;
  min-width: 0;
}

.tools .filter-sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tools-form-desc {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.tools-ids-textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  outline: none;
}

.tools-ids-textarea:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
}

.tools-form-row {
  margin-top: 10px;
}

.tools-form-label {
  font-size: 12px;
  color: #111827;
  font-weight: 600;
  margin-bottom: 6px;
}

.tools-primary-btn {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(90deg, #f145ab 0%, #8d42f7 100%);
}

.tools-primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.tools-meta-row {
  margin-top: 10px;
  font-size: 12px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tools-meta-row strong {
  color: #ffffff;
  font-weight: 600;
}

.tools-meta-list {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  padding: 8px 10px;
  max-height: 120px;
  overflow: auto;
  white-space: normal;
  word-break: break-all;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.tools-meta-list-item {
  padding: 2px 0;
  line-height: 18px;
}

.tools-meta-group+.tools-meta-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.tools-meta-group-title {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}

.tools-meta-list--products {
  max-height: 110px;
}

.tools-meta-list--videos {
  max-height: 220px;
}

.tools-seven-day-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.tools-seven-day-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 8px;
}

.tools-seven-day-title-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tools-seven-day-subtitle {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.tools-seven-day-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 10px;
}

.tools-seven-day-range .ant-picker {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.tools-seven-day-range .ant-picker:hover,
.tools-seven-day-range .ant-picker-focused {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.tools-seven-day-range .ant-picker input,
.tools-seven-day-range .ant-picker-separator,
.tools-seven-day-range .ant-picker-suffix {
  color: rgba(255, 255, 255, 0.88);
}

.tools-seven-day-range-hint {
  color: rgba(255, 255, 255, 0.45);
}

.tools-seven-day-tabs .ant-tabs-nav {
  margin-bottom: 10px;
}

.tools-seven-day-tabs .ant-tabs-tab {
  padding-top: 4px;
  padding-bottom: 4px;
}

.tools-seven-day-tabs .ant-tabs-tab .ant-tabs-tab-btn {
  color: rgba(255, 255, 255, 0.78);
}

.tools-seven-day-countries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr));
  gap: 10px;
}

.tools-seven-day-countries--single {
  grid-template-columns: minmax(0, 1fr);
}

.tools-seven-day-countries .tools-seven-day-country+.tools-seven-day-country {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.tools-seven-day-country+.tools-seven-day-country {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.tools-seven-day-country-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 8px;
}

.tools-seven-day-country-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.tools-seven-day-table {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.tools-seven-day-scroll {
  width: 100%;
  overflow-x: auto;
}

.tools-seven-day-row {
  display: grid;
  grid-template-columns: 60px repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  padding: 2px 10px;
  border-radius: 4px;
  width: 100%;
  min-width: 0;
}

.tools-seven-day-row--detail {
  grid-template-columns: 60px repeat(4, minmax(0, 1fr));
}

.tools-seven-day-row--image-backfill {
  grid-template-columns: 60px repeat(6, minmax(0, 1fr));
}

.tools-seven-day-row--by-page-type {
  grid-template-columns: 60px repeat(9, minmax(72px, 1fr));
  min-width: 888px;
}

.tools-seven-day-row--detail.tools-seven-day-row--by-page-type {
  grid-template-columns: 60px repeat(9, minmax(72px, 1fr));
}

.tools-seven-day-row--highlight {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.tools-seven-day-head {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.tools-seven-day-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tools-seven-day-cell-sub {
  font-size: 11px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.68);
  word-break: break-all;
}

.tools-seven-day-value--warn {
  color: #ef4444;
}

.tools-seven-day-value--info {
  color: #22c55e;
}

.tools-seven-day-head {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.tools-30d-video-trend-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
}

.tools-30d-video-trend-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.tools-30d-video-trend-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tools-30d-video-trend-canvas {
  height: 260px;
  width: 100%;
  min-width: 0;
}
