:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f6fb;
  color: #1f2a37;
}

.page {
  width: min(1200px, calc(100vw - 32px));
  margin: 20px auto;
  display: grid;
  gap: 14px;
}

.toolbar-card,
.result-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.store-banner {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  border-radius: 14px;
  padding: 20px 16px;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.25);
}

.store-title {
  margin: 0;
  text-align: center;
  color: #ffffff;
  font-size: clamp(38px, 8vw, 64px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 2px;
}

.toolbar-row {
  display: flex;
  gap: 10px;
  align-items: end;
}

.toolbar-row + .toolbar-row {
  margin-top: 10px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 240px;
}

.field-grow {
  flex: 1;
}

.field-label {
  font-size: 13px;
  color: #4b5563;
}

select,
input,
button {
  height: 38px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

select,
input {
  width: 100%;
  padding: 0 10px;
  background: #fff;
}

select:focus,
input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

button {
  min-width: 88px;
  padding: 0 16px;
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.title {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.rule {
  margin: 8px 0 0;
  color: #0f766e;
  font-size: 13px;
}

.meta {
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}

.status {
  min-height: 20px;
  margin: 8px 0 0;
  color: #b45309;
  font-size: 13px;
}

.table-wrap {
  margin-top: 10px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
  background: #fff;
}

thead tr {
  background: #f8fafc;
}

th,
td {
  border-bottom: 1px solid #eef2f7;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}

tbody tr:hover {
  background: #f8fbff;
}

.num {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .page {
    width: calc(100vw - 16px);
    margin: 10px auto;
  }

  .toolbar-card,
  .result-card {
    padding: 12px;
    border-radius: 10px;
  }

  .store-banner {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .store-title {
    font-size: clamp(30px, 11vw, 44px);
    letter-spacing: 1px;
  }

  .title {
    font-size: 20px;
  }

  .toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .field {
    min-width: 100%;
  }

  button {
    width: 100%;
  }

  table {
    min-width: 620px;
  }

  th,
  td {
    padding: 9px 10px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .page {
    width: calc(100vw - 12px);
    margin: 8px auto;
    gap: 10px;
  }

  .toolbar-card,
  .result-card {
    padding: 10px;
  }

  .field-label,
  .meta,
  .status {
    font-size: 12px;
  }

  select,
  input,
  button {
    height: 36px;
    font-size: 13px;
  }

  .title {
    font-size: 18px;
  }

  table {
    min-width: 560px;
  }
}
