/* 标题 */
.page-title {
  padding: 150px 0 20px;
  text-align: center;
  
}

.page-title .cn {
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
}

.page-title .en {
  margin-top: 6px;
  font-size: 14px;
  color: #909399;
}

/* 物流轨迹搜索主容器 */
.track-container {
  width: 100%;
  height: 100vh;              /* ✅ 固定高度 */
  background-image: url('../img/track-query.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 0 120px 0;
  margin: 0;
  overflow: hidden; /* ❗非常关键，阻止内容溢出到 footer */
}

/* 轨迹结果容器（避免与主容器样式冲突） */
#trackResult {
  padding-left: 20px;
  background: transparent;
  max-height: 320px;
  overflow-y: auto;
}

/* 白色主体区域 */
.query-wrapper {
  width: 80%;
  height: calc(100% - 25%); /* 预留标题 / padding 空间 */
  display: flex;
  flex-direction: column;
  margin: 0 auto 60px;
  background: rgba(255, 255, 255, 0.9); /* 添加白色半透明背景，提高内容可读性 */
  padding: 30px 40px 40px;
  border-radius: 6px;
}

/* 查询物流 */
.query-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 查询框 */
.query-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  margin-top: 100px;
}

.query-box select {
  width: 140px;
  height: 44px;
  background: #f2f3f5;
  border: 1px solid #dcdfe6;
  border-radius: 4px 0 0 4px;
  padding-left: 10px;
}

.query-box input {
  width: 360px;
  height: 44px;
  border: 1px solid #dcdfe6;
  border-left: none;
  padding: 0 12px;
  font-size: 14px;
  background: #ffffff;
}

.search-icon {
  width: 50px;
  height: 44px;
  border: 1px solid #dcdfe6;
  border-left: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #409eff;
  color: #fff;
  border-radius: 0 4px 4px 0;
}

#trackResult {
  flex: 1;                 /* 吃掉剩余高度 */
  overflow-y: auto;        /* 只在这里滚动 */
  padding-right: 10px;
}

/* 轨迹结果滚动条 */
#trackResult::-webkit-scrollbar {
  width: 6px;
}

#trackResult::-webkit-scrollbar-thumb {
  background: rgba(64, 158, 255, 0.6);
  border-radius: 4px;
}

#trackResult::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

/* 时间轴 */
.track-item {
  display: flex;
  position: relative;
  padding-bottom: 30px;
}

.track-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  width: 2px;
  height: 100%;
  background: rgba(228, 231, 237, 0.8);
}

.track-item:last-child::before {
  display: none;
}

.track-dot {
  width: 14px;
  height: 14px;
  background: #c0c4cc;
  border-radius: 50%;
  margin-right: 20px;
}

.track-item.active .track-dot {
  background: #409eff;
}

.track-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 15px;
  border-radius: 4px;
}

.track-status {
  font-size: 14px;
  color: #303133;
}

.track-item.active .track-status {
  color: #409eff;
  font-weight: 500;
}

.track-time {
  font-size: 12px;
  color: #909399;
  margin-top: 4px;
}

/* 弹窗整体 */
.track-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

/* 遮罩 */
.track-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* 弹窗内容 */
.track-modal-content {
  position: relative;
  width: 720px;
  max-height: 80vh;
  background: #fff;
  border-radius: 8px;
  margin: 200px auto;
  display: flex;
  flex-direction: column;
}

/* 头部 */
.track-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

.close-btn {
  cursor: pointer;
  font-size: 22px;
}

/* 单号信息 */
.track-modal-info {
  padding: 12px 20px;
  font-size: 14px;
  background: #f7f8fa;
}

/* 轨迹内容区（关键：滚动） */
.track-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* 隐藏 */
.hidden {
  display: none;
}