:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --nav: #111827;
  --nav-soft: #1f2937;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

* {
  box-sizing: border-box;
}

.tracking-home-body {
  min-height: 100vh;
  margin: 0;
  background: #eef3f7;
  color: #172033;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.tracking-home {
  width: min(1040px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tracking-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 6px 2px;
}

.tracking-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.tracking-brand:hover strong {
  color: #2563eb;
}

.tracking-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, .10);
}

.tracking-brand strong,
.tracking-brand span {
  display: block;
}

.tracking-brand strong {
  color: #172033;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

.tracking-brand span {
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
}

.tracking-top-status {
  flex: 0 0 auto;
  border: 1px solid #d5e0eb;
  border-radius: 999px;
  background: #fff;
  color: #35605a;
  padding: 8px 13px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(23, 32, 51, .06);
}

.tracking-query-panel {
  border: 1px solid #dbe6f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(23, 32, 51, .10);
  padding: 34px;
  display: grid;
  gap: 22px;
}

.tracking-query-copy {
  max-width: 720px;
}

.tracking-query-copy span {
  display: block;
  color: #167b67;
  font-size: 13px;
  font-weight: 900;
}

.tracking-query-copy h1 {
  margin: 8px 0 0;
  color: #111827;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.tracking-query-copy p {
  margin: 12px 0 0;
  color: #5f7187;
  font-size: 16px;
  line-height: 1.75;
}

.tracking-query-form {
  display: grid;
  gap: 10px;
}

.tracking-query-form label {
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}

.tracking-query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

.tracking-query-row input {
  width: 100%;
  min-width: 0;
  height: 58px;
  border: 1px solid #cbd8e5;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 17px;
  color: #172033;
  background: #f8fbfd;
  outline: none;
}

.tracking-query-row input:focus {
  border-color: #167b67;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 123, 103, .12);
}

.tracking-query-row button {
  height: 58px;
  border: 0;
  border-radius: 12px;
  background: #167b67;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(22, 123, 103, .22);
  cursor: pointer;
}

.tracking-query-row button:hover {
  background: #116c5a;
}

.tracking-home-tip {
  min-height: 64px;
  border: 1px solid #dce6ef;
  border-radius: 12px;
  background: #f7fafc;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  color: #26374a;
}

.tracking-home-tip span {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e3eee9;
  color: #167b67;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.tracking-home-tip strong {
  display: block;
  font-size: 15px;
}

.tracking-home-tip p {
  margin: 3px 0 0;
  color: #6f7f91;
  font-size: 13px;
}

.tracking-result-card {
  background: #fff;
  border: 1px solid #dbe6f0;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(23, 32, 51, .08);
  padding: 24px;
}

.tracking-result-card.is-error {
  display: grid;
  gap: 8px;
  border-color: #f2c99f;
  background: #fff8f0;
}

.tracking-result-card.is-error strong {
  color: #a55310;
  font-size: 17px;
}

.tracking-result-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e6edf5;
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.tracking-result-title span,
.tracking-result-title em {
  color: #6b7280;
  font-style: normal;
}

.tracking-result-title strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: #111827;
  overflow-wrap: anywhere;
}

.tracking-result-title em {
  border-radius: 999px;
  background: #e7f6f1;
  color: #116c5a;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
}

.tracking-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.tracking-summary div {
  border: 1px solid #e3ebf2;
  border-radius: 12px;
  background: #f8fbfd;
  padding: 12px;
  min-width: 0;
}

.tracking-summary span {
  display: block;
  color: #6f7f91;
  font-size: 12px;
}

.tracking-summary strong {
  display: block;
  margin-top: 4px;
  color: #172033;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.tracking-timeline {
  display: grid;
  gap: 0;
}

.tracking-node {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding-bottom: 22px;
}

.tracking-node::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: #dce5ef;
}

.tracking-node:last-child::before {
  display: none;
}

.tracking-node i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid #cbd5e1;
  background: #fff;
  margin-top: 2px;
}

.tracking-node.is-latest i {
  border-color: #167b67;
  box-shadow: 0 0 0 4px rgba(22, 123, 103, .13);
}

.tracking-node time {
  color: #6f7f91;
  font-size: 13px;
}

.tracking-node strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: #172033;
}

.tracking-node p {
  margin: 6px 0 0;
  color: #64748b;
}

.tracking-empty {
  color: #64748b;
}

.tracking-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tracking-guide-grid div {
  border: 1px solid #dbe6f0;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, .06);
}

.tracking-guide-grid span,
.tracking-guide-grid strong,
.tracking-guide-grid p {
  display: block;
}

.tracking-guide-grid span {
  color: #167b67;
  font-weight: 900;
  font-size: 13px;
}

.tracking-guide-grid strong {
  margin-top: 7px;
  color: #172033;
  font-size: 16px;
  font-weight: 900;
}

.tracking-guide-grid p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.6;
}

.tracking-home footer {
  margin-top: auto;
  text-align: center;
  color: #7f8fa3;
  font-size: 14px;
  padding: 10px 0 0;
}

.tracking-home footer a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.tracking-home footer a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.home-toast-box {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.home-toast {
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(217, 119, 6, .22);
  border-radius: 12px;
  background: #fffbeb;
  box-shadow: 0 16px 42px rgba(23, 32, 51, .16);
  color: #92400e;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
  padding: 12px 15px;
  animation: home-toast-in .18s ease-out;
}

.home-toast.is-error {
  border-color: rgba(220, 38, 38, .22);
  background: #fef2f2;
  color: #991b1b;
}

.home-toast.is-leaving {
  animation: home-toast-out .2s ease-in forwards;
}

@keyframes home-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes home-toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (max-width: 720px) {
  .tracking-home {
    padding: 14px;
    gap: 14px;
  }

  .tracking-topbar {
    align-items: flex-start;
  }

  .tracking-top-status {
    display: none;
  }

  .tracking-query-panel,
  .tracking-result-card {
    border-radius: 14px;
    padding: 18px;
  }

  .tracking-query-copy h1 {
    font-size: 30px;
  }

  .tracking-query-row,
  .tracking-summary,
  .tracking-guide-grid {
    grid-template-columns: 1fr;
  }

  .tracking-query-row input,
  .tracking-query-row button {
    height: 52px;
  }

  .tracking-result-title {
    flex-direction: column;
  }

}

@media (max-width: 420px) {
  .tracking-home {
    padding: 10px;
  }

  .tracking-brand img {
    width: 42px;
    height: 42px;
  }

  .tracking-brand strong {
    font-size: 18px;
  }

  .tracking-query-copy h1 {
    font-size: 27px;
  }
}
