:root {
  color-scheme: light;
  --ink: #112b22;
  --green: #0f523a;
  --soft: #e8f1e9;
  --muted: #65746d;
  --line: #dce5df;
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--ink);
  background: white;
}

* {
  box-sizing: border-box;
}

body, h1, h2, p, ol {
  margin: 0;
}

body {
  min-width: 280px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

button, a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid #34916a;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.frame {
  width: min(1400px,calc(100% - clamp(40px,8vw,120px)));
  margin-inline: auto;
}

header {
  border-bottom: 1px solid var(--line);
}

.bar {
  height: clamp(74px,6.6vw,100px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: clamp(20px,2.1vw,32px);
  font-weight: 750;
  letter-spacing: -.04em;
}

.mark, .record-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mark {
  width: 1.62em;
  height: 1.62em;
  background: var(--green);
  color: white;
  border-radius: .37em;
}

.parcel-icon {
  display: block;
  width: 1em;
  height: .84em;
  border: .08em solid currentColor;
  border-radius: .12em;
  position: relative;
  transform: rotate(-5deg);
}

.parcel-icon:before, .parcel-icon:after {
  content: "";
  position: absolute;
}

.parcel-icon:before {
  top: 24%;
  inset-inline: 0;
  border-top: .075em solid currentColor;
}

.parcel-icon:after {
  top: 0;
  left: 37%;
  width: 18%;
  height: 51%;
  border: solid currentColor;
  border-width: 0 .06em .06em;
}

main {
  padding-block: clamp(22px,3.2vw,48px) 48px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px,2.6vw,40px);
  min-height: clamp(300px,29vw,448px);
  padding: clamp(32px,4vw,62px);
  border-radius: clamp(20px,2vw,32px);
  background: var(--soft);
}

.intro, form {
  position: relative;
  width: 56%;
  z-index: 1;
}

h1 {
  color: #10291c;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.045em;
}

.intro h1 {
  font-size: clamp(50px,5.9vw,90px);
}

.intro p, .summary p {
  color: #455c4d;
  font-size: clamp(15px,1.4vw,21px);
  line-height: 1.7;
  margin-top: clamp(10px,1.2vw,18px);
}

.art {
  position: absolute;
  z-index: -1;
  width: 45%;
  right: 2%;
  height: 94%;
  top: 3%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  filter: drop-shadow(0 10px 7px #2f432920);
}

.route {
  position: absolute;
  width: 101%;
  height: 29%;
  top: 38%;
  border: 2px dashed #95b39a;
  border-radius: 50%;
  transform: rotate(-17deg);
}

.route:before, .route:after {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  border: 2px solid #7aa384;
  background: var(--soft);
  border-radius: 50%;
  top: 45%;
}

.route:before {
  left: -5px;
}

.route:after {
  right: -5px;
}

form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 9px;
}

.field {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  min-width: 0;
  height: clamp(53px,4.6vw,70px);
  border: 1px solid #b6c6bc;
  border-radius: 11px;
  padding: 0 clamp(13px,1.5vw,23px);
  cursor: text;
}

.field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #155b3824;
}

.barcode {
  width: 24px;
  height: 19px;
  flex: none;
  background: repeating-linear-gradient(90deg,#68786d 0 2px,transparent 2px 4px,#68786d 4px 5px,transparent 5px 7px,#68786d 7px 10px,transparent 10px 12px);
}

input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none !important;
  color: var(--ink);
  font-size: clamp(16px,1.3vw,20px);
  background: transparent;
  padding: 8px 0;
}

input::placeholder {
  color: #6b776e;
}

.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 clamp(19px,2.15vw,34px);
  border: 0;
  border-radius: 11px;
  background: var(--green);
  color: white;
  font-size: clamp(16px,1.4vw,22px);
  font-weight: 650;
  cursor: pointer;
}

.primary:hover {
  background: #093f2b;
}

.primary:active {
  transform: translateY(1px);
}

.primary [aria-hidden] {
  font-size: 1.16em;
}

.feedback {
  grid-column: 1/-1;
  color: #943f2b;
  font-size: 14px;
  line-height: 1.55;
}

.feedback:empty {
  display: none;
}

.history, .trajectory {
  margin-top: clamp(28px,3.4vw,52px);
  padding-inline: clamp(0px,1.1vw,16px);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(24px,2.25vw,34px);
  letter-spacing: -.055em;
  line-height: 1.4;
}

.section-head>span {
  font-size: 13px;
  color: var(--muted);
}

.record {
  display: flex;
  align-items: center;
  gap: clamp(14px,1.8vw,26px);
  padding: clamp(19px,1.65vw,25px) 6px;
  border-bottom: 1px solid var(--line);
}

.record:hover {
  background: #f6f9f5;
}

.record-icon {
  width: clamp(42px,4.5vw,64px);
  aspect-ratio: 1;
  border-radius: 13px;
  background: #e9f2e9;
  color: var(--green);
  font-size: clamp(22px,2vw,29px);
}

.record-info {
  min-width: 0;
  margin-right: auto;
  display: grid;
  gap: 5px;
}

.record-info b, .waybill strong {
  font-family: "SFMono-Regular",Consolas,monospace;
  letter-spacing: .005em;
  overflow-wrap: anywhere;
}

.record-info b {
  font-size: clamp(17px,1.65vw,25px);
}

.record-info small {
  font-size: clamp(13px,1.1vw,16px);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pill {
  white-space: nowrap;
  border-radius: 99px;
  padding: 5px 13px;
  background: #deefee;
  color: #175c58;
  font-size: clamp(12px,1vw,15px);
  font-weight: 650;
}

.pill.signed {
  background: #e4f1db;
  color: #365c30;
}

.chevron {
  margin-right: 6px;
  width: 9px;
  height: 9px;
  border: solid #6a7c6e;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
  flex: none;
}

.details {
  max-width: 980px;
  margin: auto;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--green);
}

.summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px,4vw,54px);
  border-radius: 24px;
  background: var(--soft);
}

.summary h1 {
  font-size: clamp(38px,4.4vw,64px);
}

.summary p {
  font-size: 17px;
}

.waybill {
  display: grid;
  gap: 9px;
  border-left: 1px solid #bdcfc1;
  padding-left: 28px;
}

.waybill span {
  font-size: 13px;
  color: var(--muted);
}

.waybill strong {
  font-size: clamp(17px,1.6vw,23px);
}

.trajectory ol {
  list-style: none;
  padding: 8px 0 0;
}

.trajectory li {
  position: relative;
  padding: 2px 0 26px 31px;
  color: #45574e;
  font-size: 16px;
  line-height: 1.6;
}

.trajectory li:before {
  content: "";
  position: absolute;
  top: 10px;
  left: 4px;
  width: 9px;
  height: 9px;
  background: #b7c9bc;
  border-radius: 50%;
}

.trajectory li:not(:last-child):after {
  content: "";
  position: absolute;
  left: 8px;
  top: 22px;
  bottom: -5px;
  border-left: 1px solid #ccdbce;
}

.trajectory li:first-child {
  color: var(--green);
  font-weight: 650;
}

.trajectory li:first-child:before {
  background: var(--green);
  box-shadow: 0 0 0 4px #e0eee3;
}

.trajectory time {
  display: block;
  font-size: 13px;
  font-weight: 400;
  margin-top: 3px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .frame {
    width: calc(100% - 32px);
  }

  .bar {
    height: 66px;
  }

  .brand {
    font-size: 20px;
    gap: 8px;
  }

  main {
    padding-top: 18px;
  }

  .hero {
    padding: 26px 21px 21px;
    min-height: 0;
    gap: 0;
  }

  .intro {
    width: 67%;
    min-height: 128px;
    align-content: center;
  }

  .intro h1 {
    font-size: clamp(35px,8.8vw,48px);
  }

  .intro p {
    font-size: 14px;
    max-width: 15em;
    margin-top: 9px;
  }

  .art {
    width: 42%;
    right: -1%;
    top: 10px;
    height: 140px;
  }

  .route {
    display: none;
  }

  .art img {
    filter: drop-shadow(0 4px 3px #2f432919);
  }

  form {
    width: 100%;
    margin-top: 20px;
    gap: 7px;
  }

  .field {
    height: 50px;
    gap: 9px;
    padding: 0 11px;
  }

  .barcode {
    width: 17px;
    height: 15px;
  }

  .primary {
    gap: 5px;
    padding: 0 15px;
  }

  .history, .trajectory {
    padding: 0 2px;
  }

  .section-head {
    margin-bottom: 3px;
  }

  .record {
    gap: 11px;
    padding: 18px 0;
  }

  .record-icon {
    width: 39px;
    border-radius: 10px;
  }

  .record-info b {
    font-size: 16px;
  }

  .record-info small {
    font-size: 12px;
  }

  .chevron {
    width: 7px;
    height: 7px;
    margin-right: 3px;
  }

  .pill {
    font-size: 12px;
    padding: 4px 9px;
  }

  .summary {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }

  .summary p {
    font-size: 15px;
  }

  .waybill {
    border: 0;
    border-top: 1px solid #c6d7c9;
    width: 100%;
    padding: 15px 0 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  .back {
    margin-bottom: 7px;
  }

  .trajectory ol {
    padding-top: 17px;
  }
}

@media (max-width: 350px) {
  .brand {
    font-size: 18px;
  }

  .hero {
    padding-inline: 15px;
  }

  .intro {
    width: 63%;
  }

  .record {
    gap: 7px;
  }

  .record-icon {
    width: 30px;
  }

  .record-info b {
    font-size: 15px;
  }

  .primary {
    padding-inline: 12px;
  }
}

.empty {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--line);
}

.primary:disabled {
  cursor: wait;
  opacity: .75;
}
