/* Yangze Tracking Plugin Styles */

/* 容器样式 - 高度自适应 */
.time-traking-box .tracking-text {
    min-height: 50px;
    height: auto !important;
    overflow: visible;
}

/* 加载状态 */
.yangze-tracking-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #666;
    font-size: 14px;
}

.yangze-tracking-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: yangze-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes yangze-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误提示 */
.yangze-tracking-error {
    padding: 15px 20px;
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    color: #c53030;
    text-align: center;
    font-size: 14px;
}

/* 结果容器 */
.yangze-tracking-result {
    padding: 0;
}

/* 状态摘要部分 */
.tracking-status-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.tracking-status-summary h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.tracking-status-summary .status-info p {
    margin: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.tracking-status-summary .label {
    opacity: 0.85;
    min-width: 80px;
    flex-shrink: 0;
}

.tracking-status-summary .value {
    font-weight: 500;
}

.tracking-status-summary .status-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* 物流轨迹部分 */
.tracking-timeline {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.tracking-timeline h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

/* 时间线列表 */
.timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 20px;
    border-left: 2px solid #e2e8f0;
    margin-left: 8px;
}

.timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline-item.first {
    border-left-color: #667eea;
}

/* 时间线标记点 */
.timeline-marker {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: #e2e8f0;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e2e8f0;
}

.timeline-item.first .timeline-marker {
    background: #667eea;
    box-shadow: 0 0 0 2px #667eea;
    animation: yangze-pulse 2s infinite;
}

@keyframes yangze-pulse {
    0% {
        box-shadow: 0 0 0 2px #667eea;
    }
    50% {
        box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.3);
    }
    100% {
        box-shadow: 0 0 0 2px #667eea;
    }
}

/* 时间线内容 */
.timeline-content {
    background: #f7fafc;
    border-radius: 8px;
    padding: 12px 15px;
}

.timeline-item.first .timeline-content {
    background: #ebf4ff;
    border: 1px solid #c3dafe;
}

.timeline-time {
    font-size: 12px;
    color: #718096;
    margin-bottom: 5px;
    font-weight: 500;
}

.timeline-item.first .timeline-time {
    color: #4c51bf;
}

.timeline-desc {
    font-size: 14px;
    color: #2d3748;
    line-height: 1.5;
    margin-bottom: 5px;
}

.timeline-status {
    display: inline-block;
    font-size: 12px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* 响应式适配 */
@media (max-width: 480px) {
    .tracking-status-summary {
        padding: 15px;
    }
    
    .tracking-status-summary .status-info p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tracking-status-summary .label {
        margin-bottom: 2px;
    }
    
    .timeline-content {
        padding: 10px 12px;
    }
}
