/* account-list catalog — Figma 1817:100599 */

.account-list-page {
  --tpl-bg-card: var(--ep-color-b);
  --tpl-bg-panel: #1f2937;
  --tpl-bg-muted: var(--ep-color-n);
  --tpl-text: var(--ep-color-d);
  --tpl-text-secondary: var(--ep-color-g);
  --tpl-text-muted: var(--ep-color-e);
  --tpl-border: rgba(34, 46, 66, 0.4);
  --tpl-blue: #308dff;
  --tpl-brand: #006ef5;
  --tpl-orange: #f26822;
  --tpl-green: #1fc66b;
  --tpl-section-gap: 24px;
  --tpl-layout-gap: 24px;
  --tpl-card-radius: 8px;
  --tpl-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  width: 100%;
  clear: both;
  color: var(--tpl-text);
  padding: 24px 0 64px;
}

html.dark .account-list-page {
  --tpl-bg-card: #ffffff;
  --tpl-bg-panel: #ffffff;
  --tpl-bg-muted: #f8f8fb;
  --tpl-text: #0c111c;
  --tpl-text-secondary: #52525b;
  --tpl-text-muted: #77859a;
  --tpl-border: #e4e8ef;
}

/* Night mode（无 html.dark）：深色底上需浅色描边，否则筛选勾选框不可见 */
html:not(.dark) .account-list-page {
  --tpl-border: rgba(255, 255, 255, 0.2);
}

html:not(.dark) .account-list-page .acc-catalog-check__box {
  background: transparent;
}

.account-list-page .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.account-list-page .tpl-main {
  display: flex;
  flex-direction: column;
  gap: var(--tpl-section-gap);
  width: 100%;
}

.account-list-page a {
  color: inherit;
  text-decoration: none;
}

.acc-catalog-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1;
  color: var(--tpl-text-muted);
}

.acc-catalog-crumb__sep {
  width: 6px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='10' viewBox='0 0 6 10' fill='none'%3E%3Cpath d='M1 1L5 5L1 9' stroke='%2377859a' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.acc-catalog-crumb__current {
  color: var(--tpl-text);
}

.acc-catalog-layout {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  gap: var(--tpl-layout-gap);
  align-items: start;
}

.acc-catalog-filters {
  background: var(--tpl-bg-card);
  border: 1px solid var(--tpl-border);
  border-radius: var(--tpl-card-radius);
  padding: 24px 16px;
  backdrop-filter: blur(12px);
}

.acc-catalog-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.acc-catalog-filters__title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.acc-catalog-filters__reset {
  border: 0;
  background: none;
  color: var(--tpl-blue);
  font-size: 14px;
  line-height: 21px;
  cursor: pointer;
  padding: 0;
}

.acc-catalog-filter + .acc-catalog-filter {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--tpl-border);
}

.acc-catalog-filter__label {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tpl-text-muted);
  font-weight: 600;
}

.acc-catalog-filter__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acc-catalog-filter[data-filter="game"] .acc-catalog-filter__options {
  max-height: 195px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 167, 198, 0.45) transparent;
  padding-right: 4px;
}

.acc-catalog-filter[data-filter="game"] .acc-catalog-filter__options::-webkit-scrollbar {
  width: 6px;
}

.acc-catalog-filter[data-filter="game"] .acc-catalog-filter__options::-webkit-scrollbar-track {
  background: transparent;
}

.acc-catalog-filter[data-filter="game"] .acc-catalog-filter__options::-webkit-scrollbar-thumb {
  background: rgba(148, 167, 198, 0.45);
  border-radius: 3px;
}

.acc-catalog-filter__more {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tpl-text-muted);
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.acc-catalog-filter__more[hidden] {
  display: none;
}

.acc-catalog-filter__more-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: inherit;
}

.acc-catalog-filter__more:hover {
  color: var(--tpl-brand);
}

.acc-catalog-check {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 21px;
}

.acc-catalog-check[hidden] {
  display: none;
}

.acc-catalog-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.acc-catalog-check__box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--tpl-border);
  border-radius: 4px;
  background: var(--tpl-bg-card);
  position: relative;
  flex-shrink: 0;
}

.acc-catalog-check__box--radio {
  border-radius: 4px;
}

.acc-catalog-check input:checked + .acc-catalog-check__box {
  border-color: var(--tpl-brand);
  background: var(--tpl-brand);
}

.acc-catalog-check input:checked + .acc-catalog-check__box::after,
.acc-catalog-check input:checked + .acc-catalog-check__box--radio::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
  background: none;
  border-radius: 0;
}

.acc-catalog-check input:checked ~ .acc-catalog-check__text {
  color: var(--tpl-brand);
}

.acc-catalog-check__meta {
  font-size: 12px;
  color: var(--tpl-text-muted);
}

.acc-catalog-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.acc-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 8px 16px;
  background: var(--tpl-bg-card);
  border: 1px solid var(--tpl-border);
  border-radius: var(--tpl-card-radius);
  backdrop-filter: blur(12px);
  flex-wrap: nowrap;
}

.acc-catalog-toolbar__left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.acc-catalog-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 371px;
  width: 371px;
  max-width: 371px;
  min-height: 52px;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid var(--tpl-border);
  background: var(--tpl-bg-muted);
}

.acc-catalog-search__input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--tpl-text);
  font-size: 14px;
  line-height: 20px;
  outline: none;
}

.acc-catalog-search__input::placeholder {
  color: var(--tpl-text-muted);
}

.acc-catalog-toolbar__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 21px;
  color: var(--tpl-text);
  white-space: nowrap;
}

.acc-catalog-sort {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.acc-catalog-sort__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  color: var(--tpl-text);
  font-size: 14px;
  line-height: 21px;
  cursor: pointer;
  padding: 0 0 3px;
  border-bottom: 2px solid transparent;
}

.acc-catalog-sort__btn.is-active {
  color: var(--tpl-blue);
  border-bottom-color: var(--tpl-blue);
  font-weight: 500;
}

.acc-catalog-sort__btn-icon {
  display: block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  color: inherit;
}

.acc-catalog-grid-wrap {
  position: relative;
  min-height: 200px;
}

.acc-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.acc-catalog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--tpl-bg-card);
  border-radius: var(--tpl-card-radius);
  box-shadow: var(--tpl-shadow-card);
  overflow: hidden;
}

.acc-catalog-card__media {
  position: relative;
  display: block;
  height: 209px;
  overflow: hidden;
}

.acc-catalog-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acc-catalog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
  padding: 12px 12px 14px;
}

.acc-catalog-card__title {
  margin: 0;
  min-height: 0;
}

.acc-catalog-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--tpl-text);
  word-break: break-word;
}

.acc-catalog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.acc-catalog-card__tag {
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--tpl-bg-muted);
  font-size: 10px;
  line-height: 12px;
  color: var(--tpl-text);
}

.acc-catalog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 16px;
}

.acc-catalog-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--tpl-text-secondary);
}

.acc-catalog-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.acc-catalog-card__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acc-catalog-card__now {
  font-size: 24px;
  line-height: 32px;
  color: var(--tpl-orange);
  font-weight: 600;
  font-variant-numeric: lining-nums;
}

.acc-catalog-card__was {
  font-size: 11px;
  line-height: 11px;
  color: var(--tpl-text-muted);
}

.acc-catalog-card__was s {
  text-decoration: line-through;
}

.acc-catalog-card__stock-badge,
.acc-catalog-card__save {
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(31, 198, 107, 0.12);
  color: var(--tpl-green);
  font-size: 12px;
  line-height: 15px;
  white-space: nowrap;
}

.acc-catalog-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 420px;
  padding: 120px 16px 80px;
  color: var(--tpl-text-muted);
}

.acc-catalog-empty:not([hidden]) {
  display: flex;
}

.acc-catalog-loading {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--tpl-card-radius);
}

.acc-catalog-loading:not([hidden]) {
  display: flex;
}

.acc-catalog-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--tpl-blue);
  border-radius: 50%;
  animation: acc-catalog-spin 0.8s linear infinite;
}

@keyframes acc-catalog-spin {
  to { transform: rotate(360deg); }
}

.acc-catalog-pager {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.acc-catalog-pager .page,
.acc-catalog-pager .pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.acc-catalog-pager .page li,
.acc-catalog-pager .pagination li {
  list-style: none;
}

.acc-catalog-pager .page li a,
.acc-catalog-pager .page li span,
.acc-catalog-pager .pagination li a,
.acc-catalog-pager .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid var(--tpl-border);
  background: var(--tpl-bg-card);
  color: var(--tpl-text);
  text-decoration: none;
  cursor: pointer;
}

.acc-catalog-pager .pagination li a.acc-catalog-pager__nav,
.acc-catalog-pager .pagination li span.acc-catalog-pager__nav,
.acc-catalog-pager .page li a.acc-catalog-pager__nav,
.acc-catalog-pager .page li span.acc-catalog-pager__nav {
  font-size: 0;
  line-height: 0;
  color: var(--tpl-text);
}

.acc-catalog-pager__nav::before {
  content: '';
  display: block;
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.acc-catalog-pager__nav--prev::before {
  transform: rotate(-135deg);
  margin-left: 2px;
}

.acc-catalog-pager__nav--next::before {
  transform: rotate(45deg);
  margin-right: 2px;
}

.acc-catalog-pager .page li.active span,
.acc-catalog-pager .pagination li.active span {
  border-color: var(--tpl-blue);
  background: var(--tpl-blue);
  color: #fff;
}

.acc-catalog-pager .page li.disabled span,
.acc-catalog-pager .pagination li.disabled span {
  opacity: 0.45;
  cursor: default;
}

.acc-catalog-filters-toggle,
.acc-catalog-filters-drawer {
  display: none;
}
