:root {
  color-scheme: light;
  --text: #30383f;
  --muted: #889198;
  --line: #e4e8eb;
  --blue: #2787cd;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  margin: 0;
  background: #f5f6f7;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  flex-shrink: 0;
}

button svg {
  pointer-events: none;
}

.container {
  width: calc(100% - 48px);
  max-width: 980px;
  margin-inline: auto;
}

.site-header {
  background: #303438;
  color: white;
  text-align: center;
  padding: 29px 0 31px;
}

.test-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  border: 1px solid #bca46b70;
  border-radius: 4px;
  color: #e6cc92;
  font-size: 11px;
}

.test-badge > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e6cc92;
}

h1 {
  margin: 15px 0 7px;
  font-size: 32px;
  line-height: 1.45;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-header p {
  margin: 0;
  color: #b8bec3;
  font-size: 13px;
}

main {
  padding-top: 23px;
}

.test-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: #927641;
  font-size: 12px;
}

.test-notice svg {
  width: 15px;
  height: 15px;
}

.test-notice p {
  margin: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 17px;
  background: white;
  border: 1px solid #dce2e6;
  border-radius: 6px;
  color: #929da5;
}

.search-box:focus-within {
  border-color: #75b6e1;
  box-shadow: 0 0 0 3px #2787cd0a;
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 14px;
}

.search-box input::placeholder {
  color: #9ba5ac;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

#clear-search {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #f3f5f6;
  color: #7e8a93;
}

#clear-search:hover {
  background: #e9eef1;
}

#clear-search svg {
  width: 15px;
  height: 15px;
}

.pack-list {
  margin-top: 27px;
}

.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.list-heading h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.list-heading > span {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 288px;
  padding: 35px 15px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #a6b7c3;
}

.empty-icon svg {
  width: 43px;
  height: 43px;
  stroke-width: 1.2;
}

.empty-state h3 {
  margin: 15px 0 5px;
  font-size: 17px;
  font-weight: 500;
}

.empty-state p {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

#reset-search {
  padding: 5px 12px;
  margin-top: 15px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
}

#reset-search:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 21px;
  font-size: 12px;
  color: var(--muted);
}

.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  min-width: 83px;
  padding: 5px 10px;
  border: 1px solid #e1e5e8;
  border-radius: 4px;
  background: #f9fafb;
  color: #abb3b9;
  font-size: 12px;
  white-space: nowrap;
}

.pagination svg {
  width: 13px;
  height: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 43px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
  color: #949ea5;
  font-size: 11px;
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 36px);
  }

  .site-header {
    padding: 25px 0 27px;
  }

  h1 {
    font-size: 24px;
    margin-top: 14px;
  }

  .site-header p {
    font-size: 12px;
  }

  main {
    padding-top: 19px;
  }

  .test-notice {
    font-size: 11px;
    gap: 7px;
  }

  .search-box {
    min-height: 49px;
    padding-inline: 13px;
    gap: 9px;
  }

  .search-box input {
    height: 47px;
    font-size: 13px;
  }

  .pack-list {
    margin-top: 23px;
  }

  .list-heading h2 {
    font-size: 16px;
  }

  .empty-state {
    min-height: 264px;
  }

  .pagination {
    gap: 13px;
    font-size: 11px;
  }

  .pagination button {
    min-width: 76px;
    font-size: 11px;
  }

  .site-footer {
    margin-top: 31px;
    font-size: 10px;
    gap: 10px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 22px;
  }

  .pagination {
    gap: 9px;
  }

  .pagination button {
    min-width: 66px;
    padding-inline: 7px;
  }
}
