* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ups-brown: #351c15;
  --ups-gold: #ffb500;
  --ups-gray: #646464;
  --ups-light: #f4f1ee;
  --ups-border: #e0d8d0;
  --ups-text: #1a1a1a;
  --ups-muted: #8a8a8a;
  --green: #2e8b3d;
  --bg: #f5f3f0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ups-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 顶部双层导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
/* 上层工具条:语言/地区 + 登录 */
.util-bar {
  background: #2a160f;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.util-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.util-left {
  display: flex;
  gap: 18px;
}
.util-right {
  display: flex;
  gap: 18px;
  align-items: center;
}
.util-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.util-link:hover {
  color: var(--ups-gold);
}
.util-cta {
  background: var(--ups-gold);
  color: var(--ups-brown) !important;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
}
.util-cta:hover {
  color: var(--ups-brown) !important;
  opacity: 0.9;
}
/* 下层主导航:Logo + 菜单 + 按钮 */
.main-nav {
  background: var(--ups-brown);
  color: #fff;
}
.main-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  overflow: hidden;
}
.main-nav .brand {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.main-nav .brand span {
  color: var(--ups-gold);
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
}
.primary-nav {
  display: flex;
  gap: 26px;
  flex: 1;
  margin-left: 20px;
}
.nav-item {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-item:hover {
  color: var(--ups-gold);
  border-bottom-color: var(--ups-gold);
}
.nav-item.active {
  color: #fff;
  border-bottom-color: var(--ups-gold);
}
.nav-track-btn {
  background: var(--ups-gold);
  color: var(--ups-brown);
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-track-btn:hover {
  opacity: 0.9;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* 首页 */
.hero {
  text-align: center;
  padding: 56px 0 36px;
}
.hero h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--ups-brown);
  margin-bottom: 8px;
}
.hero .subtitle {
  font-size: 15px;
  color: var(--ups-muted);
  letter-spacing: 1px;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 580px;
  margin: 0 auto 16px;
}
.search-input {
  flex: 1;
  height: 54px;
  padding: 0 18px;
  border: 2px solid var(--ups-border);
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.search-input:focus {
  outline: none;
  border-color: var(--ups-brown);
  box-shadow: 0 0 0 3px rgba(53, 28, 21, 0.1);
}
.search-btn {
  height: 54px;
  padding: 0 32px;
  border: none;
  border-radius: 6px;
  background: var(--ups-brown);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.search-btn:hover {
  background: #4a2a20;
}

.hint {
  text-align: center;
  font-size: 13px;
  color: var(--ups-muted);
}
.hint a {
  color: var(--ups-brown);
  text-decoration: none;
  font-weight: 500;
}
.hint a:hover {
  text-decoration: underline;
}

/* 首页服务特性卡 */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 48px 0 40px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--ups-border);
  border-radius: 10px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(53, 28, 21, 0.08);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ups-brown);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--ups-gray);
  line-height: 1.55;
}

/* 品牌介绍 */
.brand-intro {
  max-width: 680px;
  margin: 0 auto 20px;
  text-align: center;
  padding: 28px 20px;
}
.brand-intro h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ups-brown);
  margin-bottom: 12px;
}
.brand-intro p {
  font-size: 14px;
  color: var(--ups-gray);
  line-height: 1.75;
}

/* 状态摘要横幅 */
.status-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--ups-border);
  border-left: 5px solid var(--ups-gold);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.status-summary.delivered {
  border-left-color: var(--green);
}
.ss-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff4e0;
  color: var(--ups-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.status-summary.delivered .ss-icon {
  background: #eaf6ec;
  color: var(--green);
}
.ss-text {
  flex: 1;
}
.ss-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ups-brown);
  margin-bottom: 2px;
}
.status-summary.delivered .ss-title {
  color: var(--green);
}
.ss-sub {
  font-size: 13px;
  color: var(--ups-gray);
  line-height: 1.5;
}
.ss-stage {
  text-align: right;
  flex-shrink: 0;
}
.ss-stage-num {
  display: block;
  font-size: 12px;
  color: var(--ups-muted);
  font-weight: 500;
}
.ss-stage-name {
  display: block;
  font-size: 13px;
  color: var(--ups-brown);
  font-weight: 600;
  margin-top: 2px;
}

/* 配送路线概览 */
.route-overview {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ups-border);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.route-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.route-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ups-border);
  background: #fff;
}
.route-dot.done {
  background: var(--ups-brown);
  border-color: var(--ups-brown);
}
.route-dot.active {
  background: var(--ups-gold);
  border-color: var(--ups-gold);
  box-shadow: 0 0 0 4px rgba(255, 181, 0, 0.25);
}
.route-label {
  display: flex;
  flex-direction: column;
}
.route-cap {
  font-size: 11px;
  color: var(--ups-muted);
  letter-spacing: 0.5px;
}
.route-city {
  font-size: 14px;
  font-weight: 600;
  color: var(--ups-brown);
}
.route-line-wrap {
  flex: 1;
  padding: 0 16px;
  text-align: center;
}
.route-line {
  height: 4px;
  background: var(--ups-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.route-line-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ups-brown), var(--ups-gold));
  border-radius: 2px;
  transition: width 0.5s;
}
.route-vehicle {
  font-size: 13px;
  color: var(--ups-gray);
}
.route-pct {
  font-weight: 600;
  color: var(--ups-brown);
  margin-left: 6px;
}

/* 运单信息卡片 */
.shipment-card {
  background: #fff;
  border: 1px solid var(--ups-border);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.shipment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ups-border);
}
.shipment-no code {
  font-size: 20px;
  font-weight: 700;
  color: var(--ups-brown);
  letter-spacing: 0.5px;
}
.meta-label {
  display: block;
  font-size: 12px;
  color: var(--ups-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.shipment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 16px;
}
.meta-value {
  font-size: 14px;
  color: var(--ups-text);
  font-weight: 500;
}

.status-badge {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.status-badge.in-transit {
  background: #fff4e0;
  color: #b8740a;
  border: 1px solid #ffd599;
}
.status-badge.delivered {
  background: #eaf6ec;
  color: var(--green);
  border: 1px solid #b8e0bf;
}

/* 水平 5 阶段进度条 */
.progress-stages {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--ups-border);
  border-radius: 10px;
  padding: 24px 20px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 64px;
}
.stage-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--ups-border);
  background: #fff;
  color: var(--ups-muted);
  position: relative;
}
.stage.done .stage-circle {
  background: var(--ups-brown);
  border-color: var(--ups-brown);
  color: #fff;
}
.stage.active .stage-circle {
  background: var(--ups-gold);
  border-color: var(--ups-gold);
  color: var(--ups-brown);
}
.stage.active .stage-circle .stage-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--ups-gold);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}
.stage-label {
  text-align: center;
  margin-top: 10px;
  line-height: 1.3;
}
.stage-cn {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ups-text);
}
.stage.done .stage-cn,
.stage.active .stage-cn {
  color: var(--ups-brown);
}
.stage.pending .stage-cn {
  color: var(--ups-muted);
}
.stage-en {
  display: block;
  font-size: 10px;
  color: var(--ups-muted);
}
.stage-bar {
  flex: 1;
  height: 3px;
  background: var(--ups-border);
  margin: 17px 6px 0;
  border-radius: 2px;
}
.stage-bar.filled {
  background: var(--ups-brown);
}

/* 活动时间线 */
.activity-section {
  background: #fff;
  border: 1px solid var(--ups-border);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ups-brown);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ups-border);
}
.section-title span {
  color: var(--ups-muted);
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
}

.activity-list {
  position: relative;
}
.activity-item {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
}
.activity-item:last-child {
  padding-bottom: 0;
}
.activity-item:last-child .act-line {
  display: none;
}
.act-left {
  position: relative;
  width: 14px;
  flex-shrink: 0;
}
.act-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ups-border);
  background: #fff;
  position: relative;
  z-index: 1;
  margin-top: 4px;
}
.act-line {
  position: absolute;
  left: 5px;
  top: 18px;
  bottom: -4px;
  width: 2px;
  background: var(--ups-border);
}
.activity-item.past .act-dot {
  background: var(--ups-brown);
  border-color: var(--ups-brown);
}
.activity-item.current .act-dot {
  background: var(--ups-gold);
  border-color: var(--ups-gold);
  box-shadow: 0 0 0 4px rgba(255, 181, 0, 0.25);
}

.act-content {
  flex: 1;
  padding-top: 0;
}
.act-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.act-day {
  font-size: 12px;
  color: var(--ups-muted);
  font-weight: 600;
  background: var(--ups-light);
  padding: 2px 8px;
  border-radius: 4px;
}
.activity-item.current .act-day {
  background: #fff4e0;
  color: #b8740a;
}
.act-time {
  font-size: 12px;
  color: var(--ups-muted);
}
.act-status {
  font-size: 15px;
  font-weight: 700;
  color: var(--ups-text);
  margin-bottom: 2px;
}
.activity-item.current .act-status {
  color: var(--ups-brown);
}
.activity-item.past .act-status {
  color: var(--ups-gray);
}
.act-remark {
  font-size: 14px;
  color: var(--ups-gray);
  margin-bottom: 4px;
}
.act-location {
  font-size: 12px;
  color: var(--ups-muted);
  margin-top: 4px;
  letter-spacing: 0.2px;
}
.activity-item.past .act-location {
  color: var(--ups-muted);
  opacity: 0.8;
}
.activity-item.current .act-location {
  color: var(--ups-brown);
  font-weight: 500;
}
.act-status-en {
  font-size: 12px;
  color: var(--ups-muted);
  margin-top: 2px;
}
.act-remark-en {
  font-size: 12px;
  color: var(--ups-muted);
  opacity: 0.85;
}
.activity-item.past .act-remark,
.activity-item.past .act-status-en,
.activity-item.past .act-remark-en {
  color: var(--ups-muted);
}

/* 签收横幅 */
.delivered-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--ups-brown), #4a2a20);
  color: #fff;
  padding: 18px 24px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.db-check {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ups-gold);
  color: var(--ups-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.db-title {
  font-size: 16px;
  font-weight: 700;
}
.db-sub {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.back-link {
  display: inline-block;
  color: var(--ups-brown);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.back-link:hover {
  text-decoration: underline;
}

.btn-primary {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 28px;
  background: var(--ups-brown);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.btn-primary:hover {
  background: #4a2a20;
}

/* 404 */
.not-found {
  text-align: center;
  padding: 72px 20px;
}
.nf-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ups-light);
  color: var(--ups-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 18px;
}
.not-found h2 {
  font-size: 22px;
  color: var(--ups-brown);
  margin-bottom: 10px;
}
.not-found p {
  color: var(--ups-muted);
  margin-bottom: 8px;
}
.not-found code {
  background: var(--ups-light);
  padding: 3px 10px;
  border-radius: 4px;
  color: var(--ups-brown);
  font-weight: 600;
}

/* 页脚 */
.site-footer {
  background: var(--ups-brown);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 40px;
}
.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 44px 20px 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand-col {
  max-width: 240px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand span {
  color: var(--ups-gold);
  font-weight: 400;
  font-size: 13px;
  margin-left: 5px;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 18px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.social-link:hover {
  background: var(--ups-gold);
  color: var(--ups-brown);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 9px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--ups-gold);
}
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
}
.footer-bottom-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.3px;
}
.footer-meta {
  color: rgba(255, 255, 255, 0.4);
}

/* 响应式 */
@media (max-width: 768px) {
  .util-left {
    display: none;
  }
  .util-inner {
    justify-content: center;
  }
  .primary-nav {
    display: none;
  }
  .main-nav-inner {
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
  }
  .main-nav .brand {
    font-size: 17px;
  }
  .nav-track-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 14px 16px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 16px 14px 48px;
  }
  .hero {
    padding: 36px 0 24px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .search-form {
    flex-direction: column;
  }
  .search-btn {
    width: 100%;
  }
  .shipment-card,
  .activity-section {
    padding: 18px 16px;
  }
  .shipment-meta {
    gap: 18px;
  }
  /* 进度条:手机端缩小 */
  .progress-stages {
    padding: 18px 8px;
  }
  .stage {
    width: 48px;
  }
  .stage-circle {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .stage-cn {
    font-size: 10px;
  }
  .stage-en {
    font-size: 9px;
  }
  .stage-bar {
    margin: 14px 3px 0;
  }
  .activity-item {
    gap: 12px;
    padding-bottom: 20px;
  }
  /* 服务特性卡:手机端单列 */
  .features {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 32px 0 28px;
  }
  .feature-card {
    padding: 20px 18px;
  }
  /* 状态摘要:竖排 */
  .status-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ss-stage {
    text-align: left;
  }
  /* 路线概览:简化 */
  .route-overview {
    padding: 16px 14px;
  }
  .route-line-wrap {
    padding: 0 8px;
  }
  .route-city {
    font-size: 12px;
  }
  /* 页脚:手机端单列 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .util-right {
    gap: 12px;
    font-size: 11px;
  }
}
