:root {
  --primary-button-color: #ea8101;
}
.game-list-filter-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  margin-bottom: 24px;
  border: 1px solid #e5e8ec;
  border-radius: 12px;
  padding: 8px 32px;
  box-sizing: border-box;
  background-color: #fbfbfb;
}
.game-list-filter-item {
  display: flex;
  width: 100%;
  position: relative;
  align-items: center;
  height: 44px;
  border-bottom: 1px dashed #d8dadd;
}

/* 当按钮超过一行时，应用此样式 */
.game-list-filter-item.multi-row {
  align-items: flex-start; /* 顶部对齐 */
}
.game-list-filter-item:last-child {
  border-bottom: none;
}

.game-list-filter-item-title {
  min-width: 64px;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  margin-right: 20px;
  line-height: 32px;
  opacity: 0;
}
.game-list-filter-item-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.game-list-filter-item-content-item-button {
  height: 32px;
  color: #000;
  /* background-color:#F2F2F2; */
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 400;
}
.game-list-filter-item-content
  .game-list-filter-item-content-item-button:hover {
  background-color: var(--primary-button-color);
  color: #fff;
}
.game-list-filter-item-content
  .game-list-filter-item-content-item-button.active {
  color: #fff;
  background-color: var(--primary-button-color);
}
.game-list-filter-item-content
  .game-list-filter-item-content-item-button.active:hover {
  background-color: #d17a00;
}

/* 价格滑块样式 */
.price-range-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}

.price-range-slider {
  position: relative;
  height: 4px;
  background: #4d5053;
  border-radius: 2px;
  margin: 10px 0;
}

.price-slider {
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary-button-color);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #4d5053;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(234, 129, 1, 0.4);
}

.price-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--primary-button-color);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #4d5053;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.price-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(234, 129, 1, 0.4);
}

.price-range-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.price-min-display,
.price-max-display {
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  min-width: 50px;
  text-align: center;
}

.price-separator {
  color: #666;
  font-weight: bold;
}

#game-list-filter-price-range-slider {
  width: 170px;
  display: flex;
  align-items: center;
  /* margin: 0px 8px; */
}

#game-list-filter-price-range-slider .noUi-base {
  height: 4px;
  background: #e5e8ec;
  border-radius: 2px;
}

#game-list-filter-price-range-slider .noUi-connect {
  background: var(--primary-button-color);
  /* opacity: 0.5; */
}

#game-list-filter-price-range-slider .noUi-handle {
  height: 16px;
  width: 16px;
  top: -7px;
  right: -9px;
  border-radius: 50%;
  background: var(--primary-button-color);
  box-shadow: 0px 1px 4px 0px #00000033;
  cursor: pointer;
}

#game-list-filter-price-range-slider .noUi-handle:before,
#game-list-filter-price-range-slider .noUi-handle:after {
  display: none;
}
#game-list-filter-price-range-slider.noUi-target {
  background: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
#game-list-filter-price-range-slider.noUi-connects {
  background-color: #4d5053;
}
.game-list-filter-price-range-slider-container {
  display: flex;
  align-items: center;
}
.price-range-slider-item {
  font-weight: 400;
  font-size: 14px;
  cursor: default;
  margin-left: 19px;
  width: 150px;
  color: var(--primary-button-color);
}
.price-range-slider-item.cancle {
  color: #000;
}
.slider-text-pre {
  font-weight: 400;
  font-size: 14px;
  cursor: default;
  margin-right: 8px;
  cursor: pointer;
}

.slider-with-tooltip {
  position: relative;
  display: flex;
  align-items: center;
}

.price-tooltip {
  height: 24px;
  width: 80px;
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  z-index: 10;
  color: #fff;
  background: var(--primary-button-color);
  text-align: center;
  line-height: 24px;
}

.price-tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0px;
  height: 0;
  transform: translateX(-50%);
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid var(--primary-button-color);
}

.more-filter-button {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-left: auto;
}

.more-filter-text {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 400;
}

.more-filter-arrow {
  width: 9px;
  height: 6px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.game-list-filter-item-hidden {
  height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  display: none;
}

.game-list-filter-item-visible {
  height: auto;
  opacity: 1;
  overflow: visible;
  margin-bottom: 0;
  transition: all 0.3s ease-in-out;
}

.more-filter-arrow.rotated {
  transform: rotate(180deg);
}
.games-tabs {
  font-weight: 400;
  font-size: 16px;
  display: flex;
  gap: 40px;
  margin-bottom: 12px;
}
.games-tabs a {
  padding: 12px 0;
  cursor: pointer;
  position: relative;
  display: block;
  color: #000000;
}
.games-tabs a:hover {
  color: #ea8101;
  font-weight: 600;
}
.games-tabs a.active {
  color: #ea8101;
  font-weight: 500;
}
.games-tabs a.active::after {
  content: "";
  position: absolute;
  bottom: -0;
  height: 2px;
  width: 20px;
  background-color: #ea8101;

  left: 50%;
  transform: translateX(-50%);
}
#discount {
  margin-right: 12px;
}

#price-slider {
  position: relative;
  width: 160px;
  height: 4px;
  background: #e5e8ec;
  margin: 20px 0;
  border-radius: 5px;
}

.track {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 4px;
  background: #e5e8ec;
  border-radius: 5px;
}

.range {
  position: absolute;
  top: 0;
  height: 4px;
  background-color: #ea8101;
}
.range.cancle {
  opacity: 0.5;
}

.handle {
  position: absolute;
  top: -5px;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 1px solid #ea8101;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  background-color: #ffad49;
}
.handle.cancle {
  background-color: #fff;
  border: 0.5px solid #d8d8d8;
  box-shadow: 0px 1px 4px 0px #00000033;
}

#price-result {
  margin-top: 10px;
  font-weight: bold;
}
.offset {
  transform: translateX(14px);
}
