/* 物流轨迹时间轴样式 - 清爽风格 */

.tracking-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.tracking-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.tracking-header h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.tracking-number {
  font-size: 14px;
  color: #666;
}

.tracking-number span {
  color: #E31837;
  font-weight: 600;
}

.timeline {
  padding: 20px 0;
}

.timeline-item {
  display: flex;
  margin-bottom: 30px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.icon-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e5e9f2;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.icon-line {
  width: 2px;
  flex: 1;
  background: #e5e9f2;
  margin-top: 4px;
  min-height: 30px;
}

/* 状态颜色 */
.timeline-item.done .icon-circle {
  background: #19be6b;
}

.timeline-item.done .icon-line {
  background: #19be6b;
}

.timeline-item.processing .icon-circle {
  background: #2d8cf0;
  box-shadow: 0 0 0 6px rgba(45, 140, 240, 0.15);
  animation: pulse 2s infinite;
}

.timeline-item.processing .icon-line {
  background: #e5e9f2;
}

.timeline-item.pending .icon-circle {
  background: #e5e9f2;
}

.timeline-item.pending .icon-line {
  background: #e5e9f2;
}

/* 脉冲动画 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 140, 240, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(45, 140, 240, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 140, 240, 0);
  }
}

.timeline-content {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
}

.timeline-content:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.timeline-content .time {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
  font-family: "Courier New", monospace;
}

.timeline-content .title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.timeline-content .desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* 进行中状态的特殊样式 */
.timeline-item.processing .timeline-content {
  border-color: #2d8cf0;
  background: #f8fbff;
}

.timeline-item.processing .title {
  color: #2d8cf0;
}

/* 已完成状态 */
.timeline-item.done .timeline-content {
  border-color: #e8f5e9;
}

/* 查询区域样式 */
.track-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.track-form h3 {
  margin-bottom: 20px;
  color: #333;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: #E31837;
}

.input-group button {
  padding: 12px 30px;
  background: #E31837;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.input-group button:hover {
  background: #c41230;
}

/* 加载状态 */
.loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* 响应式 */
@media (max-width: 768px) {
  .tracking-container {
    margin: 20px auto;
  }

  .timeline-content {
    padding: 12px 16px;
  }

  .timeline-icon {
    margin-right: 12px;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group button {
    width: 100%;
  }
}
