/* 移动端补货管理样式 */

.smart-replenish {
    margin-bottom: 24px;
}

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

.replenish-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.replenish-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-icon {
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-content p {
    font-size: 13px;
    opacity: 0.9;
}

.btn-action {
    padding: 10px 20px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* 路线区域 */
.route-section {
    margin-bottom: 24px;
}

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

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.btn-text {
    background: none;
    border: none;
    color: #667eea;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e0e7ff;
    color: #667eea;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.route-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.route-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.route-info p {
    font-size: 13px;
    color: #6b7280;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.in-progress {
    background: #dbeafe;
    color: #2563eb;
}

.route-timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
    position: relative;
}

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

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    width: 2px;
    height: calc(100% - 20px);
    background: #f3f4f6;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-item.completed .timeline-marker {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.timeline-item.current .timeline-marker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.timeline-item.pending .timeline-marker {
    background: #f3f4f6;
}

.marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
}

.timeline-content {
    flex: 1;
    padding-top: 4px;
}

.store-name {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.store-time {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.store-items {
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
}

.btn-small {
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    align-self: flex-start;
}

.btn-small.btn-outline {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

/* 物流跟踪 */
.tracking-section {
    margin-bottom: 24px;
}

.tracking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tracking-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.shipping-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shipping-id {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.shipping-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.shipping-status.delivering {
    background: #dbeafe;
    color: #2563eb;
}

.shipping-time {
    font-size: 12px;
    color: #6b7280;
}

.tracking-content {
    margin-bottom: 12px;
}

.route-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 500;
}

.point-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.point-marker.start {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.point-marker.end {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.route-line {
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #d1d5db 0px,
        #d1d5db 4px,
        transparent 4px,
        transparent 8px
    );
}

.tracking-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

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

.detail-label {
    font-size: 11px;
    color: #6b7280;
}

.detail-value {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}

.tracking-actions {
    display: flex;
    gap: 8px;
}

/* 历史记录 */
.history-section {
    margin-bottom: 80px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.history-content {
    flex: 1;
}

.history-content h4 {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.history-content p {
    font-size: 12px;
    color: #6b7280;
}

.history-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 11px;
    color: #9ca3af;
}
