/* 增强表单容器 */
.track17-container {
  background: var(--background);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

/* 动态输入框效果 */
.track17-input:focus {
  box-shadow: 0 0 0 3px rgba(197, 70, 74, 0.2);
}

/* 按钮动效增强 */
.track17-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.track17-button:hover {
  box-shadow: 0 4px 12px rgba(197, 70, 74, 0.3);
}

.track17-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.5s;
}

/* 卡片悬浮效果升级 */
.package-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* 时间线视觉优化 */
.timeline-container {
  border-left: 3px solid var(--primary);
}

.timeline-marker {
  box-shadow: 0 0 0 4px rgba(197, 70, 74, 0.1);
}

/* 加载动画优化 */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading-spinner p {
  animation: pulse 1.5s infinite;
}

/* 新增骨架加载效果 */
.skeleton-loader {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
  to { background-position: -200% 0; }
}
/* 表单容器样式 */
.track17-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* 输入框和按钮容器 */
.track17-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

/* 输入框样式 */
.track17-input {
    width: 80%;
    height: 42px;
    padding-left: 13px;
    border: 2px solid #c5464a;
    border-radius: 8px;
    background: transparent;
    box-sizing: border-box;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.track17-button {
    height: 42px;
    width: 100px;
    cursor: pointer;
    background: #c5464a;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 13px;
    color: #F9F0DA;
    font-weight: bold;
    text-transform: uppercase;
}


.track17-button {
    height: 42px;
    width: 100px;
    cursor: pointer;
    background: #c5464a;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 13px;
    color: #F9F0DA;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 10px; /* 和 .track17-select 间距 */
}


/* 加载中动画 */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c5464a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin-right: 15px; /* 圆圈和文字之间的间距 */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    display: inline-block;
    font-size: 16px;
    color: #333;
}

/* 物流卡片容器 */
.package-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

/* 悬停时卡片上移 */
.package-card:hover {
    transform: translateY(-5px);
}

/* 状态标签样式 */
.status-tag {
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-right: 10px;
}

/* 状态标签颜色 */
.status-tag.info-received { background: #3f51b5; }
.status-tag.in-transit { background: #ff9800; }
.status-tag.delivered { background: #4caf50; }
.status-tag.exception { background: #ff4081; }
.status-tag.delivery-failure { background: #f44336; }

/* 进度条样式 */
.progress-container {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #c5464a;
    transition: width 0.5s ease;
}

/* 时间线容器 */
.timeline-container {
    margin-top: 30px;
    position: relative;
    padding-left: 50px;
}

/* 里程碑样式 */
.milestone {
    position: relative;
    padding: 20px 0;
    margin-left: 20px;
}

/* 时间线标记 */
.timeline-marker {
    position: absolute;
    left: -30px;
    top: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #c5464a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* 时间线内容 */
.timeline-content {
    margin-left: 40px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 时间线日期 */
.timeline-date {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

/* 时间线描述 */
.timeline-description {
    font-size: 14px;
    color: #444;
}

/* 响应式 */
@media (max-width: 768px) {
    .track17-container {
        padding: 15px;
        max-width: 100%;
    }

    .track17-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .track17-input, .track17-select {
        width: 100%;
        margin-bottom: 10px;
    }
}
.track17-error {
    color: #c5464a; /* 红色字体，与你的主色调保持一致 */
    font-size: 14px;
    background-color: #fff0f0; /* 淡红色背景，突出提示但不刺眼 */
    border: 1px solid #c5464a;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block; /* 保持内嵌效果 */
    margin: 10px 0;
}
