:root {
  --page-bg: #f4f7fb;
  --panel-bg: rgba(255, 255, 255, 0.92);
  --panel-border: rgba(148, 163, 184, 0.22);
  --panel-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --text-main: #0f172a;
  --text-subtle: #475569;
  --text-soft: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --table-head: #eef4ff;
  --table-row: rgba(255, 255, 255, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--page-bg) 55%, #edf2f7 100%);
}

.page {
  max-width: 1520px;
  margin: 0 auto;
  padding: 42px 36px 72px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  padding: 30px 34px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--panel-shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 14px 0 0;
  max-width: 820px;
  color: var(--text-subtle);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

input,
button {
  font: inherit;
}

input[type="text"],
input[type="number"] {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

button {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

button:active {
  transform: translateY(0);
}

button.ghost,
.filter {
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: none;
}

.filter.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.toolbar,
.panel {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(14px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.panel-note {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.search-row,
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filters {
  margin-top: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.card {
  padding: 22px 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.card span {
  display: block;
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 13px;
}

.card strong {
  display: block;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.panel h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.table-wrap {
  overflow: auto;
  border-radius: 20px;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

th,
td {
  padding: 16px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  text-align: left;
  font-size: 14px;
  background: var(--table-row);
}

th {
  position: sticky;
  top: 0;
  background: var(--table-head);
  color: #0f172a;
  font-weight: 700;
}

tbody tr:hover td {
  background: #f8fbff;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

pre {
  margin: 0;
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0f172a, #172036);
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
}

@media (max-width: 1280px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page {
    padding: 18px 14px 40px;
  }

  .hero,
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  h1 {
    font-size: 34px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .panel,
  .hero {
    padding: 18px;
    border-radius: 20px;
  }

  .card strong {
    font-size: 32px;
  }
}
