.media-catalog-page {
  min-width: 320px;
  color: var(--ink);
  background: #f5f8fc;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog-main { min-height: calc(100vh - 180px); }

.catalog-search-band {
  padding: 34px 0 38px;
  border-bottom: 1px solid #cfe0f6;
  background: #e8f2ff;
}

.catalog-search-inner {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(460px, 1.22fr);
  align-items: end;
  gap: 64px;
}

.catalog-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.catalog-search-inner h1 {
  margin: 7px 0 5px;
  font-size: 30px;
  line-height: 1.25;
}

.catalog-search-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  height: 54px;
  border: 1px solid #9fc4f5;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(32, 100, 190, .08);
}

.catalog-search input {
  min-width: 0;
  padding: 0 20px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.catalog-search input::placeholder { color: #96a5b8; }

.catalog-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.catalog-search button:hover { background: var(--blue-dark); }
.catalog-search button svg { width: 19px; height: 19px; }

.catalog-tool {
  margin-top: 24px;
  margin-bottom: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(26, 68, 126, .06);
}

.catalog-tool-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
}

.catalog-tool-head > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.catalog-tool-head strong { font-size: 18px; }
.catalog-tool-head span { color: var(--muted); font-size: 12px; }
.catalog-tool-actions { display: flex; gap: 8px; }

.catalog-tool-actions button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #bfd2eb;
  border-radius: 4px;
  color: #50647d;
  background: #fff;
}

.catalog-tool-actions button:hover { border-color: var(--blue); color: var(--blue); }

.catalog-filters {
  padding: 14px 22px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.catalog-filters.collapsed { display: none; }
.catalog-loading { padding: 24px; color: var(--muted); text-align: center; }

.catalog-filter-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 34px;
  align-items: start;
  gap: 10px;
}

.catalog-filter-label {
  padding-top: 6px;
  color: #52647a;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.catalog-filter-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 5px;
}

.catalog-filter-options button {
  min-height: 27px;
  padding: 0 9px;
  border: 0;
  border-radius: 3px;
  color: #4f5968;
  background: transparent;
  font-size: 12px;
}

.catalog-filter-options button:hover { color: var(--blue); background: #eaf3ff; }
.catalog-filter-options button.active { color: #fff; background: var(--blue); }

.catalog-price-inputs {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
}

.catalog-price-inputs input {
  width: 82px;
  height: 29px;
  padding: 0 8px;
  border: 1px solid #c8d4e2;
  border-radius: 3px;
  outline: 0;
}

.catalog-price-inputs input:focus { border-color: var(--blue); }

.catalog-price-inputs button {
  color: #fff;
  background: var(--blue);
}

.catalog-result-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 74px;
  align-items: center;
  gap: 22px;
  padding: 14px 22px;
}

.catalog-sort { display: flex; gap: 8px; }

.catalog-sort button {
  height: 36px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #66758a;
  background: #f4f7fb;
}

.catalog-sort button:hover,
.catalog-sort button.active { border-color: #8bb9f5; color: var(--blue); background: #edf5ff; }
.catalog-result-toolbar p { margin: 0; color: #728198; font-size: 12px; white-space: nowrap; }
.catalog-result-toolbar p strong { color: var(--ink); font-size: 17px; }
.catalog-result-toolbar > a { color: #e8463a; font-size: 13px; font-weight: 700; white-space: nowrap; }

.catalog-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }

.catalog-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: fixed;
}

.catalog-table th,
.catalog-table td {
  padding: 13px 11px;
  border-right: 1px solid #e0e8f3;
  border-bottom: 1px solid #e0e8f3;
  color: #41536d;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  vertical-align: middle;
}

.catalog-table th {
  height: 50px;
  color: #38516f;
  background: #edf5ff;
  font-weight: 700;
}

.catalog-table th:first-child { width: 180px; }
.catalog-table th:nth-child(3) { width: 104px; }
.catalog-table th:nth-child(10) { width: 240px; }
.catalog-table th:last-child { width: 106px; }
.catalog-table td:first-child,
.catalog-table td:nth-child(10) { text-align: left; }
.catalog-table tbody tr:hover { background: #f7fbff; }

.catalog-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
}

.catalog-resource-link::before { color: #ff7b25; content: "热"; font-size: 10px; }
.catalog-price-login {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}

.catalog-price-login:hover { text-decoration: underline; }
.catalog-record { color: #f26722 !important; }

.catalog-weight {
  display: inline-flex;
  min-width: 38px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.catalog-login-action {
  display: inline-grid;
  min-width: 76px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 4px;
  color: var(--blue);
  background: #fff;
}

.catalog-login-action:hover { color: #fff; background: var(--blue); }
.catalog-empty { height: 160px; color: var(--muted) !important; text-align: center !important; }

.catalog-pagination {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 20px;
}

.catalog-pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d4deeb;
  border-radius: 4px;
  color: #5b6b80;
  background: #fff;
}

.catalog-pagination button:hover:not(:disabled),
.catalog-pagination button.active { border-color: var(--blue); color: #fff; background: var(--blue); }
.catalog-pagination button:disabled { cursor: not-allowed; opacity: .45; }
.catalog-page-summary { margin-left: 10px; color: var(--muted); font-size: 12px; }

.catalog-footer {
  display: grid;
  min-height: 76px;
  padding: 20px 24px;
  place-items: center;
  color: rgba(255, 255, 255, 0.64);
  background: #07172f;
  text-align: center;
}
.catalog-footer p { margin: 0; font-size: 12px; }

.catalog-toast {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  display: none;
  padding: 12px 18px;
  border-radius: 4px;
  color: #fff;
  background: #243b60;
  box-shadow: 0 10px 28px rgba(18, 45, 82, .2);
}

@media (max-width: 900px) {
  .catalog-search-band { padding: 26px 0 30px; }
  .catalog-search-inner { grid-template-columns: 1fr; gap: 20px; }
  .catalog-search-inner h1 { font-size: 26px; }
  .catalog-tool { width: min(calc(100% - 24px), var(--shell)); margin-top: 16px; }
  .catalog-filter-row { grid-template-columns: 1fr; gap: 2px; padding: 6px 0; border-bottom: 1px solid #e8eef6; }
  .catalog-filter-row:last-child { border-bottom: 0; }
  .catalog-filter-label { padding-top: 0; text-align: left; }
  .catalog-result-toolbar { grid-template-columns: 1fr auto; gap: 12px; }
  .catalog-result-toolbar > a { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .catalog-search-inner p { line-height: 1.6; }
  .catalog-search { grid-template-columns: minmax(0, 1fr) 82px; }
  .catalog-search button span { display: none; }
  .catalog-tool-head { align-items: flex-start; padding: 13px 14px; }
  .catalog-tool-head > div:first-child { display: grid; gap: 2px; }
  .catalog-tool-actions button { padding: 0 10px; }
  .catalog-filters { padding: 10px 14px 12px; }
  .catalog-filter-options { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .catalog-filter-options button { flex: 0 0 auto; }
  .catalog-price-inputs { flex: 0 0 auto; }
  .catalog-result-toolbar { display: flex; align-items: flex-start; flex-direction: column; padding: 13px 14px; }
  .catalog-sort { width: 100%; }
  .catalog-sort button { min-width: 0; flex: 1; padding: 0 7px; font-size: 11px; }
  .catalog-table th,
  .catalog-table td { font-size: 11px; }
  .catalog-footer .shell { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; }
}
