:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --ink: #172033;
  --muted: #667085;
  --line: #e5e7eb;
  --page: #f5f7fa;
  --white: #fff;
  --green: #087443;
  --orange: #b54708;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

body {
  background: #f5f7fa;
}

header {
  height: 64px !important;
  background: #fff !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 1px 4px rgba(16, 24, 40, .04) !important;
}

.nav {
  width: min(1260px, calc(100% - 40px)) !important;
  height: 64px !important;
  margin: auto !important;
  padding: 0 !important;
}

.logo {
  color: #172033 !important;
  font-size: 19px !important;
  font-weight: 700 !important;
}

.logo::before {
  width: 29px !important;
  height: 29px !important;
  background: var(--blue) !important;
  border-radius: 7px !important;
}

.nav span {
  color: var(--muted) !important;
  font-size: 13px !important;
}

main {
  width: min(1260px, calc(100% - 40px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 28px 0 60px !important;
}

.media-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.media-heading h1 {
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 25px !important;
  line-height: 1.3 !important;
}

.media-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.filter-box {
  margin-bottom: 18px;
  padding: 18px 22px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .035);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  min-height: 38px;
  border-bottom: 1px dashed #edf0f3;
}

.filter-row:last-child {
  border-bottom: 0;
}

.filter-label {
  flex: 0 0 82px;
  padding-top: 7px;
  color: #475467;
  font-weight: 600;
}

.filter-values {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.filter-item {
  min-width: 68px;
  padding: 6px 10px;
  color: #475467;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1.4;
  text-align: center;
}

.filter-item:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.filter-item.active {
  color: var(--blue);
  background: var(--blue-light);
  font-weight: 650;
}

.filter-expand {
  flex: 0 0 48px;
  padding-top: 7px;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  text-align: right;
}

.filter-row.collapsed .filter-item:nth-child(n+9) {
  display: none;
}

.toolbar-new {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toolbar-new input,
.toolbar-new select {
  height: 38px;
  padding: 0 11px;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  outline: none;
  font: inherit;
}

.toolbar-new input {
  width: 250px;
}

.toolbar-new input:focus,
.toolbar-new select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.toolbar-new button,
.media-table button {
  min-height: 36px;
  padding: 7px 14px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.toolbar-new button:hover,
.media-table button:hover {
  background: var(--blue-dark);
}

.result-info {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.media-table th {
  height: 46px;
  color: #475467;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.media-table td {
  min-height: 76px;
  padding: 14px 12px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: top;
}

.media-table tr:last-child td {
  border-bottom: 0;
}

.media-table tbody tr:hover {
  background: #fbfdff;
}

.media-table th:first-child,
.media-table td:first-child {
  width: 28%;
  padding-left: 18px;
}

.media-table th:nth-child(2),
.media-table td:nth-child(2) {
  width: 11%;
}

.media-table th:nth-child(3),
.media-table td:nth-child(3) {
  width: 12%;
}

.media-table th:nth-child(4),
.media-table td:nth-child(4),
.media-table th:nth-child(5),
.media-table td:nth-child(5) {
  width: 8%;
  text-align: center;
}

.media-table th:nth-child(6),
.media-table td:nth-child(6) {
  width: 13%;
}

.media-table th:nth-child(7),
.media-table td:nth-child(7) {
  width: 9%;
}

.media-table th:last-child,
.media-table td:last-child {
  width: 11%;
  padding-right: 18px;
  text-align: center;
}

.media-name {
  display: block;
  margin-bottom: 5px;
  color: #1d4ed8;
  font-weight: 650;
  line-height: 1.45;
}

.media-name:hover {
  text-decoration: underline;
}

.media-remark {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.media-price {
  color: #e5484d;
  font-size: 15px;
  font-weight: 700;
}

.media-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 5px;
  color: var(--green);
  background: #ecfdf3;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

.weight {
  color: #344054;
  font-weight: 650;
  text-align: center;
}

.rate {
  color: var(--green);
  font-weight: 650;
}

.empty-row {
  padding: 48px !important;
  color: var(--muted);
  text-align: center !important;
}

.pagination-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.pagination-new button {
  min-width: 34px;
  height: 34px;
  color: #475467;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.pagination-new button.active,
.pagination-new button:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

@media (max-width: 700px) {
  .nav,
  main {
    width: calc(100% - 28px) !important;
  }

  main {
    padding-top: 20px !important;
  }

  .media-heading {
    display: block;
  }

  .filter-box {
    padding: 14px 12px;
  }

  .filter-label {
    flex-basis: 68px;
  }

  .filter-item {
    min-width: 62px;
    padding: 5px 7px;
    font-size: 12px;
  }

  .toolbar-new {
    flex-wrap: wrap;
  }

  .toolbar-new input,
  .toolbar-new select,
  .toolbar-new button {
    width: 100%;
  }

  .result-info {
    width: 100%;
    margin-left: 0;
  }
}
