* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: #333;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 14px;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  border: 0;
  outline: 0;
  font: inherit;
  background: none;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quality-page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 83px 0 88px;
}

.page-title {
  margin: 0 0 41px;
  font-family:
    Microsoft YaHei,
    Microsoft YaHei;
  font-weight: bold;
  font-size: 32px;
  color: #d10707;
}

.filter-panel {
  position: relative;
  z-index: 3;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(var(--filter-count, 4), 1fr);
  width: 100%;
  height: 60px;
  border: 1px solid #e4e4e4;
  border-right: 0;
}

.filter-select {
  position: relative;
  height: 58px;
  border-right: 1px solid #e4e4e4;
  background: #fff;
}

.filter-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 58px;
  padding: 0;
  color: #333;
  text-align: left;
}

.filter-trigger span {
  display: flex;
  align-items: center;
  flex: 0 0 calc(100% - 54px);
  width: calc(100% - 54px);
  height: 100%;
  min-width: 0;
  padding: 0 8px 0 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family:
    Microsoft YaHei,
    Microsoft YaHei;
  font-weight: 400;
  font-size: 16px;
  color: #222222;
  cursor: pointer;
}

.filter-trigger i {
  position: relative;
  flex: 0 0 54px;
  width: 54px;
  height: 100%;
  margin-left: 0;
  cursor: pointer;
}

.filter-trigger i::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: translate(-50%, -65%) rotate(45deg);
}

.filter-select.is-active,
.filter-select.has-value {
  background: linear-gradient(90deg, #f33333 0%, #c11111 100%);
  border-color: #df171b;
}

.filter-select.is-active .filter-trigger span,
.filter-select.has-value .filter-trigger span {
  color: #fff;
}

.filter-select.is-active .filter-trigger,
.filter-select.has-value .filter-trigger {
  color: #fff;
  font-weight: 700;
}

.filter-select.is-active .filter-trigger i::before,
.filter-select.has-value .filter-trigger i::before {
  border-color: #fff;
}

.filter-select.is-open .filter-trigger i::before {
  transform: translate(-50%, -35%) rotate(225deg);
}

button:focus:not(:focus-visible) {
  outline: none;
}

.select-menu {
  display: none;
  position: absolute;
  top: 58px;
  left: 0;
  width: 100%;
  min-width: 240px;
  padding-top: 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 0;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  z-index: 100;
}

.filter-select.is-open .select-menu {
  display: block;
}

.select-search {
  height: 34px;
  padding: 0 9px 5px;
}

.select-search input {
  width: 100%;
  height: 29px;
  padding: 0 10px;
  color: #666;
  border: 1px solid #d7d7d7;
  border-radius: 2px;
  font-size: 13px;
}

.select-search input::placeholder,
.keyword-box input::placeholder {
  color: #aaa;
}

.keyword-box img {
  width: 20px;
  height: 20px;
}

.select-menu ul {
  position: relative;
  max-height: 337px;
  overflow-y: auto;
  padding-bottom: 3px;
}

.select-menu ul::-webkit-scrollbar {
  width: 3px;
}

.select-menu ul::-webkit-scrollbar-track {
  background: #dfdfdf;
}

.select-menu ul::-webkit-scrollbar-thumb {
  background: #9e9e9e;
  border-radius: 3px;
}

.select-menu li {
  height: auto;
  padding: 0 10px;
  color: #333;
  font-size: 13px;
  line-height: 1.7em;
  /* white-space: nowrap; */
  cursor: pointer;
}

.select-menu li.selected,
.select-menu li:hover {
  color: #fff;
  background: #d90000;
  font-weight: 700;
}

.select-menu li.is-empty {
  color: #999;
  cursor: default;
}

.select-menu li.is-empty:hover {
  color: #999;
  background: #fff;
  font-weight: 400;
}

.search-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 94px;
  border-bottom: 1px solid #e2e2e2;
}

.keyword-box {
  display: flex;
  align-items: center;
  width: min(593px, calc(100% - 116px));
  height: 58px;
  padding-left: 13px;
}

.keyword-box input {
  width: 100%;
  height: 38px;
  padding-left: 14px;
  color: #333;
  font-size: 13px;
}

.search-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid #555;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  background: #555;
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-btn {
  width: 104px;
  height: 40px;
  background: linear-gradient(90deg, #f33333 0%, #c11111 100%);
  border-radius: 20px 20px 20px 20px;
  margin: 0 0 13px;
  font-family:
    Microsoft YaHei,
    Microsoft YaHei;
  font-weight: 400;
  font-size: 18px;
  color: #ffffff;
  line-height: 40px;
  text-align: center;
}

.report-grid {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  overflow-x: auto;
}

.report-table {
  width: 100%;
  min-width: 760px;
}

.report-table-row {
  display: grid;
  grid-template-columns: minmax(360px, 1.5fr) minmax(140px, 1fr)  minmax(500px, 1fr);
  align-items: center;
  min-height: 53px;
}

.report-table-row.cp{
   grid-template-columns: minmax(60px, 1.5fr) minmax(360px, 1fr) minmax(140px, 1fr)  minmax(500px, 1fr);
}

.report-table .report-actions a.preview-link{
  white-space: nowrap;
  width: 80px;
}

.report-table-head {
  min-height: 50px;
  color: #fff;
  background: #D10707;
  border-radius: 5px 5px 0 0;
  font-weight: 700;
}

.report-row {
  color: #4a4f56;
  background: #fff;
  transition:
    color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.report-row:nth-child(odd) {
  background: #F8F8F8;
}

.report-row:hover {
  position: relative;
  z-index: 1;
  color: #d80003;
  /* background: #fff; */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.report-cell {
  min-width: 0;
  padding: 0 24px;
  font-family: Microsoft YaHei, Microsoft YaHei;
  font-weight: 400;
  font-size: 16px;
  color: #FFFFFF;
}

.report-table-head .report-cell {
  color: #fff;
}

.report-cell {
  font-family: Microsoft YaHei, Microsoft YaHei;
  font-weight: 400;
  font-size: 16px;
  color: #212529;
}

.report-action-cell {
  display: flex;
  align-items: center;
}

.report-empty {
  height: 116px;
  color: #999;
  border: 1px solid #eee;
  font-size: 16px;
  line-height: 116px;
  text-align: center;
}

.report-actions {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 13px;
  line-height: 18px;
}

.report-table .report-actions {
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
}

.report-actions-list {
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
}

.report-file-action {
  display: grid;
  grid-template-columns: 80px 27px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.report-file-action + .report-file-action {
  margin-top: 10px;
}

.report-actions a {
  display: inline-flex;
  align-items: center;
  height: 18px;
  transition: color 0.25s ease;
}

.report-table .report-actions a {
  min-height: 0;
  padding: 0;
}

.report-table .report-actions .download-link {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.report-table .report-actions .download-link .icon2 {
  flex: 0 0 auto;
}

.report-table .report-actions .download-title {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-row:hover a {
  color: #d80003;
}

.report-row:hover .report-cell{
  color: #D80003;
}

.report-row:hover a img {
  filter: none;
  opacity: 1;
}

.divider {
  width: 1px;
  height: 16px;
  margin: 0 auto;
  background: #e5e5e5;
}

.report-table .divider {
  display: block;
}

.icon1 {
  width: 17.5px;
  margin-right: 5px;
  filter: grayscale(1);
  opacity: 0.72;
}

.icon2 {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  filter: grayscale(1);
  opacity: 0.72;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
  color: #666;
  font-size: 14px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 2px;
}

.pagination a {
  border: 1px solid #e3e3e3;
  background: #fff;
}

.pagination .active {
  color: #fff;
  border-color: #e60012;
  background: #e60012;
}

.page-arrow {
  position: relative;
}

.page-arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  transform: rotate(45deg);
}

.page-arrow.next::before {
  transform: rotate(225deg);
}

.page-disabled {
  opacity: 0.35;
}

.sms-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.56);
}

.sms-modal-layer.is-show {
  display: flex;
}

.sms-modal {
  position: relative;
  width: 440px;
  min-height: 253px;
  background: #F8F7F5;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.sms-modal-close {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.sms-modal-close::before,
.sms-modal-close::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  width: 2px;
  height: 22px;
  background: #999;
  border-radius: 2px;
}

.sms-modal-close::before {
  transform: rotate(45deg);
}

.sms-modal-close::after {
  transform: rotate(-45deg);
}

.sms-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 53px;
}

.sms-modal-title {
  margin: 0 0 20px;
  color: #222;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.sms-modal-input {
  width: 300px;
  height: 40px;
  padding: 0 12px;
  color: #222;
  border: 1px solid #bfbfbf;
  border-radius: 4px;
  font-size: 16px;
  line-height: 40px;
}

.sms-modal-back,
.sms-modal-submit {
  width: 132px;
  height: 36px;
  margin-top: 30px;
  color: #fff;
  background: #e60000;
  border-radius: 5px;
  font-size: 16px;
  line-height: 36px;
  text-align: center;
}

.sms-modal-back:hover,
.sms-modal-submit:hover {
  background: #d10000;
}

.sms-modal-body-error {
  padding-top: 44px;
}

.sms-modal-error-icon {
  width: 50px;
  height: 50px;
  color: #fff;
  background: #e60000;
  border-radius: 50%;
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  text-align: center;
}

.sms-modal-error-text {
  margin: 28px 0 0;
  color: #222;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.sms-modal-back {
  margin-top: 27px;
}

.filter-tab {
  display: flex;
}

.filter-tab .item {
  font-family:
    Microsoft YaHei,
    Microsoft YaHei;
  font-weight: 400;
  font-size: 16px;
  color: #222222;
  border-right: 1px solid #e5e5e5;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  flex: 1;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.filter-tab .item:first-child {
  border-left: 1px solid #e5e5e5;
}

.filter-tab .item:hover,
.filter-tab .item.active {
  background: linear-gradient(90deg, #f33333 0%, #c11111 100%);
  color: #fff;
}

@media (max-width: 767px) {
  .quality-page {
    width: calc(100% - 24px);
    padding: 24px 0 40px;
  }

  .page-title {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 1.2;
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    border-right: 1px solid #e4e4e4;
    border-bottom: 0;
  }

  .filter-select {
    min-width: 0;
    height: auto;
    border-bottom: 1px solid #e4e4e4;
  }

  .filter-trigger {
    height: 48px;
    padding: 0;
  }

  .filter-trigger span {
    flex-basis: calc(100% - 48px);
    width: calc(100% - 48px);
    padding: 0 6px 0 12px;
    font-size: 14px;
  }

  .filter-trigger i {
    flex-basis: 48px;
    width: 48px;
  }

  .select-menu {
    top: 48px;
    min-width: 0;
    z-index: 20;
  }

  .select-menu ul {
    max-height: 240px;
  }

  .select-menu li {
    height: 40px;
    line-height: 40px;
  }

  .search-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
    padding: 16px 0;
  }

  .keyword-box {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
  }

  .keyword-box img {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }

  .keyword-box input {
    height: 100%;
    padding-left: 10px;
    font-size: 15px;
  }

  .search-btn {
    width: 100%;
    height: 44px;
    margin: 0;
    border-radius: 8px;
    font-size: 16px;
    line-height: 44px;
  }

  .report-grid {
    margin-top: 24px;
  }

  .report-table {
    min-width: 680px;
  }

  .report-table-row {
    grid-template-columns: minmax(220px, 1.4fr) 120px 120px 170px;
  }

  .filter-tab .item:nth-child(3) {
    border-left: 1px solid #e5e5e5;
  }

  .report-table-row.cp{
    grid-template-columns: 130px 120px 120px 170px;
  }

  .report-cell {
    padding: 0 16px;
    font-size: 14px;
  }

  .report-card {
    height: auto;
    padding: 16px;
  }

  .report-card:hover {
    box-shadow: none;
    border-color: #d8dce2;
  }

  .report-main {
    padding-left: 32px;
  }

  .report-main h2 {
    font-size: 15px;
    line-height: 1.45;
  }

  .report-actions {
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 14px 0 0 32px;
  }

  .report-actions a {
    min-height: 44px;
    padding: 0 8px 0 0;
  }

  .report-table .report-actions {
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
  }

  .report-table .report-actions-list {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
  }

  .report-table .report-file-action {
    grid-template-columns: 80px 27px 130px minmax(0, 1fr);
  }

  .report-table .report-actions a {
    min-height: 0;
    padding: 0;
  }

  .report-table .divider {
    display: block;
  }

  .divider {
    display: none;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
  }

  .pagination a,
  .pagination span {
    min-width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .sms-modal {
    width: calc(100vw - 24px);
    min-height: auto;
    border-radius: 12px;
  }

  .sms-modal-close {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
  }

  .sms-modal-close::before,
  .sms-modal-close::after {
    left: 21px;
    top: 11px;
    height: 22px;
  }

  .sms-modal-body {
    padding: 52px 16px 24px;
  }

  .sms-modal-title {
    margin-bottom: 16px;
    font-size: 16px;
  }

  .sms-modal-input {
    width: 100%;
    max-width: 320px;
    height: 44px;
    font-size: 15px;
  }

  .sms-modal-back,
  .sms-modal-submit {
    width: 100%;
    max-width: 240px;
    height: 44px;
    margin-top: 20px;
    line-height: 44px;
  }

  .sms-modal-body-error {
    padding-top: 36px;
  }

  .sms-modal-error-text {
    max-width: 240px;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.4;
  }

  .filter-tab {
    flex-wrap: wrap;
  }

  .filter-tab::-webkit-scrollbar {
    display: none;
  }

  .filter-tab .item {
    flex: 0 0 50%;
    min-width: 120px;
    height: 48px;
    padding: 0 12px;
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .quality-page {
    width: calc(100% - 20px);
    padding-top: 18px;
    min-height: 65vh;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-trigger {
    height: 46px;
  }

  .select-menu {
    top: 46px;
  }

  .report-actions {
    margin-left: 0;
  }

  .report-main {
    padding-left: 28px;
  }
}

@media (max-width: 375px) {
  .quality-page {
    width: calc(100% - 16px);
    padding: 16px 0 32px;
  }

  .page-title {
    margin-bottom: 16px;
    font-size: 20px;
  }

  .filter-trigger {
    height: 44px;
    padding: 0;
  }

  .filter-trigger span {
    flex-basis: calc(100% - 44px);
    width: calc(100% - 44px);
    padding: 0 6px 0 10px;
    font-size: 13px;
  }

  .filter-trigger i {
    flex-basis: 44px;
    width: 44px;
  }

  .select-menu {
    top: 44px;
  }

  .select-menu li {
    height: 36px;
    line-height: 36px;
    font-size: 13px;
  }

  .search-row {
    gap: 10px;
    padding: 12px 0;
  }

  .keyword-box {
    height: 44px;
    padding: 0 10px;
  }

  .keyword-box img {
    width: 16px;
    height: 16px;
  }

  .keyword-box input {
    padding-left: 8px;
    font-size: 14px;
  }

  .search-btn {
    height: 40px;
    font-size: 15px;
  }

  .report-grid {
    margin-top: 20px;
  }

  .report-cell {
    padding: 0 12px;
  }

  .report-card {
    padding: 14px;
  }

  .report-main {
    padding-left: 28px;
  }

  .report-main h2 {
    font-size: 14px;
  }

  .report-icon {
    width: 18px;
    height: 20px;
  }

  .report-actions {
    gap: 6px 10px;
    margin-top: 12px;
  }

  .report-actions a {
    min-height: 40px;
    font-size: 12px;
  }

  .icon1,
  .icon2 {
    width: 15px;
  }

  .pagination {
    gap: 4px;
    margin-top: 24px;
  }

  .pagination a,
  .pagination span {
    min-width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .sms-modal {
    width: calc(100vw - 20px);
  }

  .sms-modal-close {
    top: 6px;
    right: 6px;
    width: 40px;
    height: 40px;
  }

  .sms-modal-close::before,
  .sms-modal-close::after {
    left: 19px;
    top: 9px;
    height: 22px;
  }

  .sms-modal-body {
    padding: 48px 14px 20px;
  }

  .sms-modal-title {
    margin-bottom: 14px;
    font-size: 15px;
  }

  .sms-modal-input {
    max-width: 280px;
    height: 42px;
    font-size: 14px;
  }

  .sms-modal-back,
  .sms-modal-submit {
    max-width: 220px;
    height: 42px;
    margin-top: 18px;
    line-height: 42px;
    font-size: 15px;
  }

  .sms-modal-body-error {
    padding-top: 32px;
  }

  .sms-modal-error-icon {
    width: 44px;
    height: 44px;
    font-size: 36px;
    line-height: 44px;
  }

  .sms-modal-error-text {
    max-width: 220px;
    margin-top: 16px;
    font-size: 15px;
  }

  .filter-tab .item {
    flex: 0 0 45vw;
    min-width: 100px;
    height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }
}
