:root {
  --blue: #5361f6;
  --blue-dark: #243185;
  --ink: #172033;
  --muted: #747d90;
  --line: #e8ecf5;
  --card: #ffffff;
  --yellow: #ffd32a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f4f7fd;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.shell {
  width: min(1190px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 72px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  color: #12356f;
  font-weight: 900;
}

.brand-mark {
  font-size: 31px;
  font-style: italic;
  letter-spacing: -1px;
}

.brand-mark span {
  color: #ffbb17;
}

.brand small {
  color: #ff9d21;
  font-size: 10px;
  font-weight: 800;
  margin-left: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex: 1;
  font-size: 14px;
  color: #1f2741;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links .active {
  color: var(--blue-dark);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.lang-toggle {
  min-width: 46px;
  height: 32px;
  border: 1px solid rgba(83, 97, 246, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue);
  font-weight: 800;
}

.pill-link,
.primary-button {
  border: 0;
  border-radius: 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 12px 25px;
  box-shadow: 0 12px 28px rgba(83, 97, 246, 0.2);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  padding-top: 72px;
  background:
    radial-gradient(circle at 19% 30%, rgba(204, 235, 255, 0.92), transparent 22%),
    radial-gradient(circle at 74% 23%, rgba(198, 240, 254, 0.8), transparent 20%),
    radial-gradient(circle at 60% 56%, rgba(237, 247, 255, 0.95), transparent 28%),
    linear-gradient(115deg, #eaf8ff 0%, #fff9f7 46%, #f9fbff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(244, 247, 253, 0), #f4f7fd 80%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 150px;
  text-align: center;
}

.hero-inner p {
  margin: 80px 0 16px;
  color: #171d32;
  font-size: 16px;
  font-weight: 700;
}

.hero-inner h1 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 900;
}

.hero-orbit {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 38px solid rgba(94, 111, 250, 0.16);
  filter: blur(1px);
}

.hero-orbit-left {
  left: -148px;
  bottom: 30px;
}

.hero-orbit-right {
  right: -94px;
  top: 198px;
  border-color: rgba(120, 103, 255, 0.12);
}

.tracking-area {
  position: relative;
  z-index: 2;
  margin-top: -82px;
  padding-bottom: 104px;
}

.status-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 70px;
}

.status-tabs {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.status-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #687286;
  padding: 0 0 8px;
  font-size: 13px;
}

.status-tab.active {
  color: #20283d;
  border-bottom-color: var(--blue);
  font-weight: 800;
}

.status-dot {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.toolbar-actions {
  display: flex;
  gap: 13px;
  display:none;
}

.toolbar-actions button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #7d8595;
}

.tracking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  align-items: start;
  gap: 28px;
}

.result-list {
  display: grid;
  gap: 22px;
}

.track-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(38, 49, 97, 0.045);
}

.track-summary {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 172px 22px;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 116px;
  border: 0;
  background: #fff;
  color: inherit;
  padding: 27px 32px;
  text-align: left;
}

.track-id {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475269;
  font-size: 14px;
  font-weight: 800;
  word-break: break-all;
}

.box-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 2px solid #6572e9;
  color: #6572e9;
  font-size: 10px;
  flex: 0 0 auto;
}

.track-status {
  margin: 6px 0 8px;
  color: #111827;
  font-size: 33px;
  line-height: 1.1;
  font-weight: 900;
}

.track-date {
  margin: 0;
  color: #6c7688;
  font-size: 15px;
  font-weight: 600;
}

.route {
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  align-items: center;
  gap: 16px;
  color: #3a4356;
  font-size: 13px;
  text-align: center;
}

.route strong {
  display: block;
  color: #1f2937;
  font-size: 14px;
  margin-bottom: 4px;
}

.route span {
  color: var(--blue);
  font-weight: 800;
}

.arrow {
  color: #bec5d2;
}

.expand-icon {
  color: #a0a8b7;
  font-size: 26px;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.track-card.open .expand-icon {
  transform: rotate(90deg);
}

.track-detail {
  display: none;
  padding: 0 32px 28px;
}

.track-card.open .track-detail {
  display: block;
}

.progress-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  margin: 2px 0 14px;
}

.progress-node {
  position: relative;
  display: flex;
  align-items: center;
}

.progress-node::before {
  content: "";
  width: 100%;
  height: 4px;
  background: var(--line);
}

.progress-node.done::before {
  background: var(--blue);
}

.progress-node.current::before {
  background: linear-gradient(to right, var(--blue), var(--yellow));
}

.progress-node i {
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 4px solid #6171f7;
  background: #fff;
}

.progress-node.current i {
  border-color: var(--yellow);
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 211, 42, 0.2);
}

.time-note {
  margin: 0 0 32px;
  color: #9aa2b1;
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: 32px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border: 2px solid #e5e9f1;
  border-radius: 50%;
  background: #fff;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 22px;
  width: 1px;
  height: calc(100% + 9px);
  background: #edf0f6;
}

.timeline li:last-child::after {
  display: none;
}

.timeline strong {
  display: block;
  margin-bottom: 5px;
  color: #30394d;
  font-size: 15px;
}

.timeline p {
  margin: 0;
  color: #7b8494;
  font-size: 13px;
  line-height: 1.55;
}

.card-tools {
  display: flex;
  gap: 34px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #edf0f6;
}

.card-tools button {
  border: 0;
  background: transparent;
  color: #6f7788;
  font-size: 13px;
}

.side-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 22px;
}

.query-card,
.help-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(38, 49, 97, 0.045);
}

.query-card {
  padding: 10px;
}

.query-card textarea {
  width: 100%;
  min-height: 216px;
  max-height: 360px;
  resize: vertical;
  border: 2px solid var(--blue);
  border-radius: 7px;
  outline: 0;
  color: #596274;
  line-height: 1.8;
  padding: 10px 14px;
  font-size: 14px;
}

.primary-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 50px;
  margin-top: 12px;
  border-radius: 6px;
}

.promo-card {
  min-height: 212px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 45, 114, 0.95), rgba(27, 52, 130, 0.55)),
    linear-gradient(135deg, #21385d 0%, #09162f 48%, #d2a264 49%, #ba7e3d 100%);
  padding: 102px 28px 24px;
}

.promo-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}

.promo-card p {
  max-width: 260px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.promo-card button,
.yellow-button {
  display: inline-block;
  border: 0;
  border-radius: 7px;
  background: var(--yellow);
  color: #2b2a18;
  font-weight: 800;
  padding: 11px 22px;
}

.help-card {
  padding: 26px 28px;
}

.help-card h2 {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 17px;
}

.help-card a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: #6c7587;
  font-size: 14px;
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 82px 0 88px;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 70px solid rgba(255, 255, 255, 0.08);
}

.cta-band::before {
  width: 440px;
  height: 440px;
  left: 80px;
  bottom: -280px;
}

.cta-band::after {
  width: 220px;
  height: 220px;
  right: -50px;
  top: -70px;
}

.cta-band .shell {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin: 0 0 28px;
  font-size: 35px;
  font-weight: 500;
}

.cta-band p {
  max-width: 620px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.9;
}

.footer {
  background: #fff;
  padding: 78px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 170px 170px 170px;
  gap: 90px;
}

.footer-about p {
  max-width: 430px;
  margin: 28px 0 26px;
  color: #667085;
  font-size: 14px;
  line-height: 1.9;
}

.socials {
  display: flex;
  gap: 18px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eff3f9;
  color: #718098;
  font-size: 13px;
  font-weight: 800;
}

.footer h3 {
  margin: 14px 0 25px;
  color: #252f43;
  font-size: 14px;
}

.footer-grid > div:not(.footer-about) a {
  display: block;
  margin-bottom: 20px;
  color: #6b7486;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 76px;
  padding-top: 28px;
  border-top: 1px solid #edf0f5;
  color: #7d8595;
  font-size: 13px;
}

.footer-bottom nav {
  display: flex;
  gap: 34px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .tracking-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 1190px);
  }

  .site-header {
    position: relative;
    background: #f7fbff;
  }

  .nav {
    gap: 14px;
  }

  .nav-actions {
    gap: 12px;
  }

  .nav-actions > a:not(.pill-link) {
    display: none;
  }

  .pill-link {
    padding: 10px 16px;
  }

  .hero {
    min-height: 330px;
    padding-top: 0;
  }

  .hero-inner {
    min-height: 260px;
  }

  .hero-inner p {
    margin-top: 20px;
  }

  .tracking-area {
    margin-top: -24px;
    padding-bottom: 64px;
  }

  .status-toolbar {
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .toolbar-actions {
    display: none;
  }

  .track-summary {
    grid-template-columns: 1fr 20px;
    padding: 22px 20px;
  }

  .route {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .track-detail {
    padding: 0 20px 24px;
  }

  .track-status {
    font-size: 28px;
  }

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

  .footer-bottom {
    flex-direction: column;
    margin-top: 44px;
  }
}
