/* 货物追踪页面样式 */

.tracking-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 18px;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.9);
}

.tracking-search {
    max-width: 700px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.search-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-tips {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 追踪结果区 */
.tracking-results {
    padding: 60px 0 100px;
    background: var(--bg-light);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.result-header h2 {
    font-size: 32px;
    font-weight: 700;
}

.tracking-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    border-bottom: 2px solid var(--border-color);
}

.container-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.container-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-in-transit {
    background: #dbeafe;
    color: #1e40af;
}

.status-delivered {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.btn-export {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-export:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 概览信息 */
.tracking-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 32px;
    border-bottom: 2px solid var(--border-color);
}

.overview-item {
    display: flex;
    gap: 16px;
}

.item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
}

.item-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.item-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* 地图区域 */
.tracking-map {
    padding: 32px;
    border-bottom: 2px solid var(--border-color);
}

.map-placeholder {
    height: 400px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 64px;
    margin-bottom: 16px;
}

/* 时间轴 */
.tracking-timeline {
    padding: 32px;
    border-bottom: 2px solid var(--border-color);
}

.tracking-timeline h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 0;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--border-color);
    border-radius: 50%;
}

.timeline-item.completed .timeline-marker {
    background: var(--success-color);
    border-color: var(--success-color);
}

.timeline-item.active .timeline-marker {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1);
    }
}

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

.timeline-time {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.timeline-location {
    font-size: 14px;
    color: var(--text-gray);
}

/* 详细信息 */
.tracking-details {
    padding: 32px;
}

.tracking-details h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-size: 13px;
    color: var(--text-light);
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* 响应式 */
@media (max-width: 968px) {
    .tracking-overview {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .page-title {
        font-size: 32px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .search-tabs {
        flex-direction: column;
    }
    
    .card-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .container-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}
