:root {
  color-scheme: light;
  --bg: #f7f8f3;
  --panel: #ffffff;
  --ink: #182018;
  --muted: #667061;
  --line: #dfe5d8;
  --brand: #76b900;
  --brand-deep: #315d0b;
  --accent: #007c89;
  --warn: #b85c00;
  --shadow: 0 18px 50px rgba(28, 42, 25, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 320px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #10170f;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 23, 15, 0.95), rgba(16, 23, 15, 0.48)),
    radial-gradient(circle at 82% 22%, rgba(118, 185, 0, 0.24), transparent 30%),
    linear-gradient(135deg, #1b2a18, #0b0f0b);
}

.chip-grid {
  position: absolute;
  right: clamp(24px, 8vw, 120px);
  top: 34px;
  width: min(44vw, 560px);
  height: 230px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  transform: perspective(760px) rotateX(56deg) rotateZ(-28deg);
  opacity: 0.72;
}

.chip-grid span {
  border: 1px solid rgba(169, 255, 62, 0.32);
  background:
    linear-gradient(135deg, rgba(118, 185, 0, 0.3), rgba(0, 124, 137, 0.14)),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 255, 255, 0.08) 12px 13px);
  box-shadow: inset 0 0 28px rgba(118, 185, 0, 0.1);
}

.hero__content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #a9ff3e;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}

.workspace {
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 56px;
  position: relative;
}

.filters,
.summary-row,
.results,
.pagination {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field--wide {
  grid-column: span 2;
}

.field span,
.page-size span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd8c6;
  border-radius: 6px;
  background: #fbfcf8;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(118, 185, 0, 0.18);
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  justify-content: flex-end;
}

.button,
.icon-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:active,
.icon-button:active {
  transform: translateY(1px);
}

.button {
  padding: 0 18px;
  font-weight: 800;
}

.button--primary {
  background: var(--brand);
  color: #102000;
}

.button--ghost {
  background: #eef4e7;
  color: var(--brand-deep);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
  border-bottom: 0;
}

.summary-row strong {
  font-size: 1.7rem;
  color: var(--brand-deep);
}

.page-size {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-size select {
  width: 82px;
}

.results {
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.driver-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 134px 126px 120px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.driver-row:first-child {
  border-top: 0;
}

.driver-title {
  min-width: 0;
}

.driver-title h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf5e5;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.date {
  color: var(--muted);
}

.link-group {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.text-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 12px;
  color: #ffffff65;
  background: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.text-link--secondary {
  color: var(--brand-deep);
  background: #eaf3e2;
}

.text-link--disabled {
  color: var(--muted);
  background: rgba(102,112,97,0.06); /* 很淡的灰绿色背景 */
  text-decoration: line-through;
  text-decoration-color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.9;
}

.empty {
  padding: 44px 18px;
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: none;
}

.icon-button {
  width: 42px;
  background: #eef4e7;
  color: var(--brand-deep);
  font-size: 1.7rem;
  line-height: 1;
}

.icon-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .driver-row {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .date {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .link-group {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 286px;
  }

  .chip-grid {
    width: 380px;
    right: -120px;
    opacity: 0.46;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: span 1;
  }

  .filter-actions {
    justify-content: stretch;
  }

  .filter-actions .button {
    flex: 1;
  }

  .summary-row {
    align-items: flex-end;
  }

  .driver-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .date {
    grid-column: auto;
    grid-row: auto;
    text-align: left;
  }

  .link-group {
    justify-content: stretch;
  }

  .text-link {
    flex: 1;
  }
}
