* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f5f7fb 0%, #eef1f6 100%);
  color: #1f2a37;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px 72px;
  gap: 28px;
}

.hero {
  max-width: 860px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #eef2f7;
  box-shadow: 0 6px 18px rgba(31, 42, 55, 0.08);
}

.brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.hero-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b7280;
}

.hero-title {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
}

.hero-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.panel {
  width: min(980px, 100%);
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(31, 42, 55, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.query {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.input-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.input {
  flex: 1;
  min-width: 240px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 14px;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder {
  color: #9ca3af;
}

.input:focus {
  outline: none;
  border-color: #8fa3ff;
  box-shadow: 0 0 0 3px rgba(143, 163, 255, 0.18);
  background: #ffffff;
}

.btn {
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  background: #5468ff;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-secondary {
  background: #eef2ff;
  color: #1f2a37;
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(84, 104, 255, 0.25);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.input-hint {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: #f7f8fb;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 0 0 1px #eef2f7;
}

.card-label {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.card-value {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

.card-caption {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.status {
  padding: 12px 14px;
  background: #f3f4f6;
  border-radius: 12px;
}

.status-text {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.records {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.records-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.records-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.records-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.records-subtitle {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.select {
  height: 32px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0 10px;
  font-size: 12px;
  color: #111827;
}

.table-wrapper {
  background: #f9fafb;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #eef2f7;
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table thead th {
  text-align: left;
  font-weight: 600;
  color: #4b5563;
  padding: 10px 8px;
  border-bottom: 1px solid #e5e7eb;
}

.table thead th:nth-child(3),
.table thead th:nth-child(4),
.table tbody td:nth-child(3),
.table tbody td:nth-child(4) {
  text-align: right;
}

.table tbody td {
  padding: 10px 8px;
  color: #1f2a37;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.empty-text {
  margin: 10px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

.pagination {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-info {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #6b7280;
}

.page-actions {
  display: flex;
  gap: 10px;
}

.page-actions .btn {
  height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .panel {
    padding: 20px;
  }

  .hero-title {
    font-size: 26px;
  }
}
